Reduce cumulative JAR payload required for DI-only use cases (particularly ANTLR) [SPR-5721] #10391
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Ben Alex opened SPR-5721 and commented
As discussed over email, there are certain projects that use Spring Framework for dependency injection use cases only (eg the Spring Roo shell). Such projects may have distribution size minimization preferences that are easier to achieve if Spring Framework operated in a base "DI-only" mode with a minimal JAR payload.
The 3.0.0 series of Spring Framework introduced new expression language support, which as of 3.0.0.M3 has a dependency on ANTLR. In 3.0.0.M3 this amounts to 740K of JARs that would ideally be optional for "DI-only" usage. Excluding these JARs in 3.0.0.M3 causes a NoClassDefFoundError (org/antlr/runtime/RecognitionException) due to StandardBeanExpressionResolver.java:57.
It would be desirable if Spring Framework could operate without requiring expression languages JARs. Likewise, any other improvements that could be made to diminish the JAR payload requirements for DI-only use cases would be appreciated.
Affects: 3.0 M3
The text was updated successfully, but these errors were encountered: