Repository navigation
⚠️ Attention Required
initializr-version-resolvernow uses Maven 3.10.1 and Maven Resolver 2.x.maven-resolver-transport-httphas been replaced bymaven-resolver-transport-apache. If your application manages Maven or Maven Resolver versions, or has Maven Resolver 1.x on the classpath, align it with these versions. #1878- The
initializr-web-*-stubs.jarartifact is no longer published. If you rely on it, record your own stubs against a running instance. #1866 DefaultProjectAssetGeneratornow deletes the project root directory if generation fails. If yourProjectDirectoryFactoryreturns an existing directory, that directory and its contents are removed on failure. #1863- Register
@ProjectGenerationConfigurationclasses inMETA-INF/spring/io.spring.initializr.generator.project.ProjectGenerationConfiguration.imports, one fully qualified class name per line. Registration inMETA-INF/spring.factoriesstill works, but it's deprecated, logs a warning and will be removed in a future release. #1855 - Generating
application.yamlnow fails with anIllegalStateExceptionif a property is both a value and the parent of nested properties. For example,spring.datasourceandspring.datasource.urltogether used to silently drop one of them. Remove the conflicting property from yourApplicationPropertiesCustomizer.application.propertiesisn't affected. #1840 - In generated Maven Java projects,
ANNOTATION_PROCESSORandTEST_ANNOTATION_PROCESSORdependencies are no longer added to<dependencies>. They are now configured asannotationProcessorPathsof themaven-compiler-plugindefault-compileanddefault-testCompileexecutions. If a processor is also a library (Lombok, for example), declare it a second time with theCOMPILE_ONLYscope. Remove any custom code that configuresannotationProcessorPathsitself. #1781 - Generated Gradle builds no longer make
compileOnlyextendannotationProcessor, andGradleAnnotationProcessorScopeBuildCustomizerhas been removed. A dependency with theANNOTATION_PROCESSORscope is no longer on the compile classpath. If it's also a library (Lombok, for example), declare it a second time with theCOMPILE_ONLYscope. #1780
⭐ New Features
- Use Gradle 9.9.2 for generated projects #1883
- Use Maven 3.10.1 for generated projects #1879
- Make sure the sample works out-of-the-box #1876
- Add ability to customize Kotlin compiler args #1874
- Add service-url to pin generated links #1862
- Escape user-controlled values in Gradle scripts #1860
- Set HTTP timeouts for Maven version resolution #1857
- Add lifecycle methods to MavenVersionResolver so it can be closed #1852
- Write YAML properties in insertion order #1841
- Fix incorrect project URLs in published Maven POMs #1823
- Drop -Xannotation-default-target parameter for Kotlin 2.4 or later #1815
- Add support for source set and Spring profile specific application properties #1807
- Don't display the parameters table when serviceCapabilitiesText is called for AgentId.SPRING_BOOT_CLI #1800
- Allow major and minor versions for bootVersion parameter #1797
- Use Gradle 8.14.5 for generated Spring Boot 3 projects #1793
- Add support for Docker Compose healthcheck block #1778
- Add support for Gradle's testCompileOnly dependencies #1777
- Add ability to record reasons for the JVM version change #1742
- Allow annotation processors to be made available to tests when using Gradle #1380
🐞 Bug Fixes
- Exclusion validates groupId twice and misses artifactId #1865
- Non-integer java versions breaks Gradle toolchain syntax #1861
- Nested annotations generate invalid Kotlin code #1846
- Kotlin code doesn't compile for array annotation attributes with a single value #1845
- Codeblock fails on null arguments #1842
- Enum constants with class bodies as annotation values emit invalid code #1837
- MustacheTemplateRenderer doesn't close the reader #1822
- initializr.dependency-metadata cache has no TTL set #1813
- User-supplied base directory isn't validated #1811
- User-supplied application name is not validated #1810
- File creation outside root directory is possible #1809
- Lombok and spring-boot-configuration-processor are ordered contrary to Boot's docs #1796
📔 Documentation
🔨 Dependency Upgrades
- Upgrade Spring Boot to 4.1.3 #1884
❤️ Contributors
Thank you to all the contributors who worked on this release:
@525600Cloud2, @Ash-718, @YangSiJun528, @denisfalqueto, @eddumelendez, @ngocnhan-tran1996, and @sri1873