Skip to content

Commit

Permalink
Introduce project init task
Browse files Browse the repository at this point in the history
  • Loading branch information
filwiesner committed Dec 6, 2020
1 parent c84497b commit c27100e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -110,4 +112,5 @@ bintrayUpload.doFirst {
}
}

bintrayUpload.dependsOn publishToMavenLocal
publishToMavenLocal.dependsOn initProject
bintrayUpload.dependsOn publishToMavenLocal

0 comments on commit c27100e

Please sign in to comment.