Skip to content

v0.25.0

Latest

Choose a tag to compare

@spring-builds spring-builds released this 20 Nov 10:45
· 15 commits to main since this release
3f26931

⚠️ Attention Required

  • initializr-version-resolver now uses Maven 3.10.1 and Maven Resolver 2.x. maven-resolver-transport-http has been replaced by maven-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.jar artifact is no longer published. If you rely on it, record your own stubs against a running instance. #1866
  • DefaultProjectAssetGenerator now deletes the project root directory if generation fails. If your ProjectDirectoryFactory returns an existing directory, that directory and its contents are removed on failure. #1863
  • Register @ProjectGenerationConfiguration classes in META-INF/spring/io.spring.initializr.generator.project.ProjectGenerationConfiguration.imports, one fully qualified class name per line. Registration in META-INF/spring.factories still works, but it's deprecated, logs a warning and will be removed in a future release. #1855
  • Generating application.yaml now fails with an IllegalStateException if a property is both a value and the parent of nested properties. For example, spring.datasource and spring.datasource.url together used to silently drop one of them. Remove the conflicting property from your ApplicationPropertiesCustomizer. application.properties isn't affected. #1840
  • In generated Maven Java projects, ANNOTATION_PROCESSOR and TEST_ANNOTATION_PROCESSOR dependencies are no longer added to <dependencies>. They are now configured as annotationProcessorPaths of the maven-compiler-plugin default-compile and default-testCompile executions. If a processor is also a library (Lombok, for example), declare it a second time with the COMPILE_ONLY scope. Remove any custom code that configures annotationProcessorPaths itself. #1781
  • Generated Gradle builds no longer make compileOnly extend annotationProcessor, and GradleAnnotationProcessorScopeBuildCustomizer has been removed. A dependency with the ANNOTATION_PROCESSOR scope is no longer on the compile classpath. If it's also a library (Lombok, for example), declare it a second time with the COMPILE_ONLY scope. #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

  • Fix typos in documentation #1833
  • Add missing Javadoc #1600

🔨 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