Open codeconsole opened 1 week ago
Similar problem in 6.2.x https://github.com/grails/grails-core/issues/13745 that has existing since 5.0.0
This commit is forcing jakarta.servlet:jakarta.servlet-api to be resolved as an api dependency in several locations
PR #13545 updated the dependency from javax.servlet
to jakarta.servlet
, but did not modify the dependency configuration. Adjusting the configuration was outside the scope of this PR.
The most BASIC Grails 5.3.6 app requires 177 jar files and is 75M (grails create-app) The most BASIC Grails 6.2.1 app requires 174 jar files and is 133M (grails create-app) The most BASIC Spring Boot 3.3.4 app requires 31 jar files and is 19M (spring init --dependencies=web)
This commit is forcing
jakarta.servlet:jakarta.servlet-api
to be resolved as an api dependency in several locationsNumerous dependencies should not be part of the final build:
This should NOT be solved with exclusions. Dependencies should not be included in fhe first place.