From e7f03514e12a67304f647710d4289e75f7905858 Mon Sep 17 00:00:00 2001 From: Tobias Heine Date: Wed, 7 Mar 2018 17:02:18 +0100 Subject: [PATCH] Change publishArtifact to publish to bintray as well as to the gradle plugins repo --- gradle/publish.gradle | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/gradle/publish.gradle b/gradle/publish.gradle index ee553a1..faecc14 100644 --- a/gradle/publish.gradle +++ b/gradle/publish.gradle @@ -97,10 +97,13 @@ 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 } @@ -108,21 +111,21 @@ 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 } }