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 {
|
||||
// load properties from custom location
|
||||
def propsFile = Paths.get("${projectDir}/../../gradle.properties").normalize()
|
||||
if (propsFile.toFile().canRead()) {
|
||||
def propsFile = Paths.get("${projectDir}/../../gradle.properties").normalize().toFile()
|
||||
if (propsFile.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)}
|
||||
} else {
|
||||
ext.sonatypeUsername = ""
|
||||
ext.sonatypePassword = ""
|
||||
}
|
||||
|
||||
|
||||
// for plugin publishing and license sources
|
||||
repositories {
|
||||
maven {url "https://plugins.gradle.org/m2/"}
|
||||
|
@ -256,8 +260,8 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
// utilities only
|
||||
compileOnly project.ext['utilitiesDeps']
|
||||
// utilities dependencies compile only (this is so the IDE can compile the util source)
|
||||
compileOnly project.ext['utilities']
|
||||
|
||||
|
||||
api 'com.dorkbox:ShellExecutor:1.1'
|
||||
|
|
Loading…
Reference in New Issue
Block a user