Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

0.11.0-M1

Pre-release
Pre-release

Choose a tag to compare

@spring-builds spring-builds released this 05 Oct 13:41
· 646 commits to main since this release

This first milestone is an opportunity for the team to receive feedback on the new Ahead-Of-Time Engine. The AOT engine generates at build time an optimized equivalent of the ApplicationContext, leading to faster build time and lower runtime memory footprint.

We expect this new approach to provide better compatibility, so please provide feedback if you see regressions on supported libraries.

Please note that this first milestone does not support testing yet, and should be used with Spring Boot 2.6.0-M3 and Spring Cloud 2021.0.0-M2, see the reference documentation for more details.

⭐ New Features

  • Bring back native-agent mode #1125
  • No need for FunctionalSpringApplication anymore #1120
  • Modifying SpringApplication on the fly #1099
  • Handle init callbacks #1059
  • Generate reflection metadata for Configuration Properties sub-namespace #1052
  • Handle destroy callback #1048
  • Allow to build samples only in JVM AOT mode without native #1043
  • Introduce contract for identifying the need for reflection and resources in native images #1028
  • Generate reflection and resources entries for bean definitions automatically #1023
  • Update AOT remote debug option in maven plugin #1011
  • Replace NativeListener by proper AOT implementation #988
  • Add support for PropertyValue #980
  • Leverage Gradle debug options for codeGenDebugPort #978
  • Add codeGenDebugPort property to debug Spring AOT plugins #972
  • Support for Gradle toolchains in Spring AOT Gradle plugin #958
  • Remove the need for SpringAotApplication #943
  • Configure properly Spring AOT log level defined in the plugin #942
  • Remove reflection config for classes instantiated programmatically in StaticSpringFactories #931

⭐ Compatibility

  • Please add type hints for Reactor's Traces class #1098
  • Update reflection config for the data-rest sample. #1086
  • Fix hints for r2dbc and guard hint processor against ClassNotFoundException. #1044
  • Spring Cloud Square #891
  • Failed to add additional Message Converters from child context #816
  • Runtime exception when setting @EnableMongoAuditing #445

⭐ Optimizations

  • Allow BeanUtils#instantiateClass inlining #834

🐞 Bug Fixes

  • InitDestroyBeanPostProcessor should not handle AutoCloseable explicitly #1124
  • Reflection hint declared on bean definition type are not usable on bean implementation #1121
  • Lifecycle methods hints are not defined properly if the method is defined in a parent #1108
  • Append context initializers in aot mode #1100
  • Wrong org.springframework.boot version is being resolved #1095
  • EventListener registration does not work with package private annotated types #1089
  • ImportAware links are being called inconsistently #1079
  • Spring AOT Plugin crashes in project with module-info.java #1066
  • Building a sample with --aot-only does not detect an application startup failure #1054
  • spring.main.web-application-type is not detected consistently #1053
  • Fix native hint trigger for reactive-/auditing configuration. #1039
  • Creator detection does not take collection and array types into account #1036
  • Unable to detect constructor with multiple matches #1035
  • Runtime exception causes HTTP 404 status in native 0.11 #1029
  • Reflection metadata is not considered for inner bean definitions #1026
  • Differentiate main and application classes #1024
  • Redirect logs from AOT processing #1020
  • Avoid ambiguous calls to BeanDefinitionRegistrar#instanceSupplier #1018
  • AOT generates ambiguous calls to constructors #1017
  • Bean definitions with several constructors and constructor arguments cannot be instantiated #1015
  • Lifecycle of bean instantiation is not the same as regular runtime context #1014
  • Retain FactoryMethod metadata link in generated BeanDefinition #1001
  • Fix broken gradle bootBuildImage #1000
  • Add reflection configuration for Actuator endpoints #999
  • Populate correctly the environment in BootstrapCodeGenerator #992
  • Pass the AOT options from the plugin to BootstrapCodeGeneratorRunner #989
  • Add scoped beans support #981
  • Add ByteBuddy to the classpath of maven code generation process #971
  • ConditionsEvaluator should tolerate a null BeanRegistry #953
  • Fix maven plugin test-generate in 0.11.x #951
  • Fix non-static nested classes support #925
  • AOT plugin picks up dependencies from Gradle buildSrc #627

📔 Documentation

  • "Freeze GraalVM Version" section in documentation uses an older, incompatible version of GraalVM #1129
  • Add note on Config Client support. #1107
  • Update Spring Cloud support docs. #1081

🔨 Dependency Upgrades

  • Upgrade to ASM 9.2 #1092
  • Upgrade to Spring Boot 2.6.0-M3 #853
  • Upgrade to Spring Cloud 2021.0.0-M2 #1127

❤️ Contributors

We'd like to thank all the contributors who worked on this release!