Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Change publishArtifact to publish to bintray as well as to the gradle…
Browse files Browse the repository at this point in the history
… plugins repo
  • Loading branch information
tobiasheine committed Mar 7, 2018
1 parent 31eb2e6 commit e7f0351
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,32 +97,35 @@ task printChangelog {
}
}

task publishArtifact {
description = "Publish artifact for plugin version: $tag"
task publishArtifacts {
description = "Publish artifacts for plugin version: $tag"
group = 'release'
project.afterEvaluate { dependsOn bintrayUpload }
project.afterEvaluate {
dependsOn bintrayUpload
dependsOn publishPlugins
}
mustRunAfter prepareRelease
}

task publishGroovydoc {
description = "Deploy groovydoc for plugin version: $tag"
group = 'release'
dependsOn publishGhPages
mustRunAfter publishArtifact
mustRunAfter publishArtifacts
}

task publishRelease {
description = "Publish release for plugin version: $tag"
group = 'release'
if (project.hasProperty('dryRun') && project['dryRun'] == 'false') {
dependsOn prepareRelease, publishArtifact, publishGroovydoc, publishPlugins
dependsOn prepareRelease, publishArtifacts, publishGroovydoc
doLast {
grgit.push {
tags = true
}
}
} else {
dependsOn publishArtifact
dependsOn publishArtifacts
}
}

0 comments on commit e7f0351

Please sign in to comment.