Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do NOT include compilation dependencies in production jar #13745

Open
codeconsole opened this issue Oct 12, 2024 · 2 comments
Open

Do NOT include compilation dependencies in production jar #13745

codeconsole opened this issue Oct 12, 2024 · 2 comments

Comments

@codeconsole
Copy link
Contributor

codeconsole commented Oct 12, 2024

Amongst other things, javax.servlet is being bundled in the production jar/war. This is supposed to be provided by the container and adds an extra 30MB++ dependency to the final distribution. api is NOT a replacement for provided

Numerous dependencies should not be part of the final build:

    95505  10-10-2024 05:33   BOOT-INF/lib/javax.servlet-api-4.0.1.jar
   141302  10-09-2024 06:27   BOOT-INF/lib/ant-junit-1.10.14.jar
   384581  10-09-2024 06:16   BOOT-INF/lib/junit-4.13.2.jar
    78743  10-11-2024 06:28   BOOT-INF/lib/javax.el-api-3.0.1-b06.jar
   237335  10-10-2024 05:33   BOOT-INF/lib/javax.el-3.0.1-b12.jar
   792399  10-10-2024 05:33   BOOT-INF/lib/spring-test-5.3.39.jar
    15071  10-10-2024 05:33   BOOT-INF/lib/jta-1.1.jar
    82803  10-10-2024 05:31   BOOT-INF/lib/groovy-ant-3.0.21.jar
  2303167  10-09-2024 06:27   BOOT-INF/lib/ant-1.10.14.jar
    18871  10-09-2024 06:27   BOOT-INF/lib/ant-launcher-1.10.14.jar
@codeconsole
Copy link
Contributor Author

codeconsole commented Oct 12, 2024

// These dependencies are not required, but due to a Groovy compiler bug they are loaded by Groovy and hence
// have to be on the path for compilation even though they shouldn't be

37a284d

@codeconsole
Copy link
Contributor Author

Deferred until 7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant