Upgrade to Gradle 9.1

This commit upgrades the build to use Gradle 9.1.

To achieve that, the following changes were necessary.

- Stop using Groovy safe-navigation operator (?.) in
  framework-api.gradle due to a NullPointerException.

- Switch from the io.github.goooler.shadow plugin to the
  com.gradleup.shadow plugin, since the former is no longer maintained
  and the latter is a fork that replaces it.

Closes gh-35508
This commit is contained in:
Sam Brannen
2025-09-19 17:40:32 +02:00
parent d82a578f31
commit d038269ec3
6 changed files with 9 additions and 10 deletions
+5 -2
View File
@@ -98,9 +98,12 @@ tasks.register('schemaZip', Zip) {
moduleProjects.each { module ->
def Properties schemas = new Properties();
module.sourceSets.main.resources.find {
def schemaFile = module.sourceSets.main.resources.find {
(it.path.endsWith("META-INF/spring.schemas") || it.path.endsWith("META-INF\\spring.schemas"))
}?.withInputStream { schemas.load(it) }
}
if (schemaFile != null) {
schemaFile.withInputStream { schemas.load(it) }
}
for (def key : schemas.keySet()) {
def shortName = key.replaceAll(/http.*schema.(.*).spring-.*/, '$1')