mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Be defensive when accessing properties in SpringRepositorySupport.groovy
See gh-42333
This commit is contained in:
@@ -36,8 +36,17 @@ def apply(settings) {
|
||||
}
|
||||
|
||||
private def property(settings, name) {
|
||||
def value = settings.gradle.parent?.rootProject?.findProperty(name)
|
||||
value = (value != null) ? value : settings.ext.find(name)
|
||||
def value = null
|
||||
try {
|
||||
value = settings.gradle.parent?.rootProject?.findProperty(name)
|
||||
}
|
||||
catch (Exception ex) {
|
||||
}
|
||||
try {
|
||||
value = (value != null) ? value : settings.ext.find(name)
|
||||
}
|
||||
catch (Exception ex) {
|
||||
}
|
||||
value = (value != null) ? value : loadProperty(settings, name)
|
||||
return value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user