From c27100e96e0d6609339baaadb7d73589d2d1586d Mon Sep 17 00:00:00 2001 From: Filip Wiesner Date: Sun, 6 Dec 2020 11:04:24 +0100 Subject: [PATCH] Introduce project init task --- build.gradle | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index a706fa8..7242a11 100644 --- a/build.gradle +++ b/build.gradle @@ -98,8 +98,10 @@ bintray { } } -publishToMavenLocal.doFirst { - project.version = System.getenv('btVersion') +task initProject { + println "Initializing project ${GROUP_ID}:${System.getenv('btVersion')}" + version System.getenv('btVersion') + group GROUP_ID } bintrayUpload.doFirst { @@ -110,4 +112,5 @@ bintrayUpload.doFirst { } } -bintrayUpload.dependsOn publishToMavenLocal \ No newline at end of file +publishToMavenLocal.dependsOn initProject +bintrayUpload.dependsOn publishToMavenLocal