mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user