Implemented support for custom gradle setting

This commit is contained in:
Ziver Koc 2024-09-11 16:35:03 +02:00
parent e9ccfd15de
commit b4719d2eb4
3 changed files with 29 additions and 12 deletions

View file

@ -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()