From 0625a1f2983820990db16f854d0a74d2ddcfc63f Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 28 Aug 2018 01:48:49 +0200 Subject: [PATCH] code polish. added comments --- build.gradle | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 703db43..a47b645 100644 --- a/build.gradle +++ b/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'