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
23 lines
451 B
Groovy
23 lines
451 B
Groovy
description = "Spring Framework (Bill of Materials)"
|
|
|
|
apply plugin: 'java-platform'
|
|
apply from: "$rootDir/gradle/publications.gradle"
|
|
|
|
group = "org.springframework"
|
|
|
|
dependencies {
|
|
constraints {
|
|
parent.moduleProjects.findAll{ it.name != 'spring-core-graalvm' }.sort { "$it.name" }.each {
|
|
api it
|
|
}
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
mavenJava(MavenPublication) {
|
|
artifactId = 'spring-framework-bom'
|
|
from components.javaPlatform
|
|
}
|
|
}
|
|
} |