Skip to content

Commit

Permalink
Property springBootVersion not setting version in buildSrc
Browse files Browse the repository at this point in the history
- Fixes #1148
  • Loading branch information
jvalkeal committed Mar 15, 2024
1 parent 451f12a commit d76f9dc
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ repositories {
}

ext {
def propertiesFile = new File(new File("$projectDir").parentFile, "gradle.properties")
propertiesFile.withInputStream {
def properties = new Properties()
properties.load(it)
set("springBootVersion", properties["springBootVersion"])
if (project.hasProperty('springBootVersion')) {
set("springBootVersion", springBootVersion)
}
else {
def propertiesFile = new File(new File("$projectDir").parentFile, "gradle.properties")
propertiesFile.withInputStream {
def properties = new Properties()
properties.load(it)
set("springBootVersion", properties["springBootVersion"])
}
}
}

Expand Down

0 comments on commit d76f9dc

Please sign in to comment.