Skip to content

Commit

Permalink
added version calculation for githubRelease
Browse files Browse the repository at this point in the history
  • Loading branch information
tompahoward committed Sep 1, 2016
1 parent 612f39b commit b672892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ version = 'LOCAL'
// need to iterate over the subprojects, setting the version
// for them as well.
gradle.taskGraph.whenReady {taskGraph ->
def uploadTasks = taskGraph.getAllTasks().findAll { task -> task.name.startsWith('upload') || task.name.endsWith('printVersion') || task.name.endsWith('printSnapshotVersion') }
def uploadTasks = taskGraph.getAllTasks().findAll { task -> task.name.startsWith('upload') || task.name.endsWith('githubRelease') || task.name.endsWith('printVersion') || task.name.endsWith('printSnapshotVersion') }
if(!uploadTasks.empty) {
URL url = new URL( "https://oss.sonatype.org/service/local/artifact/maven/redirect?g=${project.group}&a=${project.name}&v=LATEST&r=releases" )
logger.lifecycle("url: " + url)
Expand Down

0 comments on commit b672892

Please sign in to comment.