Fixed issue when custom build props are not available
This commit is contained in:
parent
f2fa0fe1f8
commit
95fa4b5502
@ -19,12 +19,14 @@ import java.time.Instant
|
||||
|
||||
buildscript {
|
||||
// load properties from custom location
|
||||
def propsFile = Paths.get("${projectDir}/../../gradle.properties").toAbsolutePath().normalize().toFile()
|
||||
def propsFile = Paths.get("${projectDir}/../../gradle.properties").normalize()
|
||||
if (propsFile.toFile().canRead()) {
|
||||
println("Loading custom property data from: ${propsFile}")
|
||||
|
||||
def props = new Properties()
|
||||
propsFile.withInputStream {props.load(it)}
|
||||
props.each {key, val -> project.ext.set(key, val)}
|
||||
}
|
||||
|
||||
// for plugin publishing and license sources
|
||||
repositories {
|
||||
|
Loading…
Reference in New Issue
Block a user