spring-framework/gradle
Sébastien Deleuze 22a750f378 Replace build-time initialization by constant fields
This commit leverages a subset of @philwebb initial experimentation
to compute at build time the value of specific boolean static fields
in native images. This enhancement is implemented for now as a
GraalVM feature.

The goal here is to keep an optimized footprint via build time code
removal without leveraging build-time class initialization which is known
for the blocking compatibility issues it introduces due to its viral nature.

For now, the static fields initialized at build time with native are:
 - NativeDetector#imageCode
 - Fields with a name ending by "Present" in "org.springframework" package
   typically used for classpath check with ClassUtils#isPresent

Closes gh-28624
2022-06-24 13:54:20 +02:00
..
wrapper Upgrade to Gradle 7.4.2 2022-05-05 16:35:52 +02:00
docs-dokka.gradle Fix javax.servlet doc to jakarta.servlet (#27692) 2021-11-17 11:29:54 +01:00
docs.gradle Replace build-time initialization by constant fields 2022-06-24 13:54:20 +02:00
ide.gradle Merge branch '5.3.x' 2022-06-16 16:14:05 +02:00
publications.gradle Remove artifactory plugin from build 2020-04-28 14:34:40 +02:00
spring-module.gradle Upgrade to Gradle 7.2 2021-09-13 09:37:35 +02:00
toolchains.gradle Remove toolchain configuration for Kotlin 2022-02-14 13:04:09 +01:00