code polish. added comments
This commit is contained in:
parent
081fc7fe9f
commit
0625a1f298
12
build.gradle
12
build.gradle
|
@ -19,15 +19,19 @@ import java.time.Instant
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
// load properties from custom location
|
// load properties from custom location
|
||||||
def propsFile = Paths.get("${projectDir}/../../gradle.properties").normalize()
|
def propsFile = Paths.get("${projectDir}/../../gradle.properties").normalize().toFile()
|
||||||
if (propsFile.toFile().canRead()) {
|
if (propsFile.canRead()) {
|
||||||
println("Loading custom property data from: ${propsFile}")
|
println("Loading custom property data from: ${propsFile}")
|
||||||
|
|
||||||
def props = new Properties()
|
def props = new Properties()
|
||||||
propsFile.withInputStream {props.load(it)}
|
propsFile.withInputStream {props.load(it)}
|
||||||
props.each {key, val -> project.ext.set(key, val)}
|
props.each {key, val -> project.ext.set(key, val)}
|
||||||
|
} else {
|
||||||
|
ext.sonatypeUsername = ""
|
||||||
|
ext.sonatypePassword = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// for plugin publishing and license sources
|
// for plugin publishing and license sources
|
||||||
repositories {
|
repositories {
|
||||||
maven {url "https://plugins.gradle.org/m2/"}
|
maven {url "https://plugins.gradle.org/m2/"}
|
||||||
|
@ -256,8 +260,8 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// utilities only
|
// utilities dependencies compile only (this is so the IDE can compile the util source)
|
||||||
compileOnly project.ext['utilitiesDeps']
|
compileOnly project.ext['utilities']
|
||||||
|
|
||||||
|
|
||||||
api 'com.dorkbox:ShellExecutor:1.1'
|
api 'com.dorkbox:ShellExecutor:1.1'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user