Implemented support for custom gradle setting
This commit is contained in:
parent
e9ccfd15de
commit
b4719d2eb4
3 changed files with 29 additions and 12 deletions
12
build.gradle
12
build.gradle
|
|
@ -5,6 +5,18 @@ plugins {
|
|||
|
||||
apply from: 'build_publish.gradle'
|
||||
|
||||
// Load custom properties
|
||||
if (project.hasProperty('customProperties')) {
|
||||
project.logger.info("Loading custom properties from: ${project.property('customProperties')}")
|
||||
def props = new Properties()
|
||||
file(project.property('customProperties')).withInputStream { props.load(it) }
|
||||
|
||||
props.each {key, value ->
|
||||
project.logger.info("Updating property: ${key}")
|
||||
project.ext[key] = value
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue