Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Update github plugin to 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Larusso committed Feb 1, 2018
1 parent 67533b8 commit d131c80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ pluginBundle {
}

dependencies {
compile 'gradle.plugin.net.wooga.gradle:atlas-github:0.6.0'
compile 'gradle.plugin.net.wooga.gradle:atlas-github:0.6.1'
}
6 changes: 1 addition & 5 deletions src/main/groovy/wooga/gradle/plugins/PluginsPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class PluginsPlugin implements Plugin<Project> {
compile 'com.gradle.publish:plugin-publish-plugin:0.9.9'
compile 'com.netflix.nebula:nebula-release-plugin:5.0.0'
compile 'commons-io:commons-io:2.5'
compile 'gradle.plugin.net.wooga.gradle:atlas-github:0.6.0'
compile 'gradle.plugin.net.wooga.gradle:atlas-github:0.6.1'

compile gradleApi()
compile localGroovy()
Expand Down Expand Up @@ -176,12 +176,8 @@ class PluginsPlugin implements Plugin<Project> {
postReleaseTask.dependsOn publishTask
publishTask.mustRunAfter releaseTask

Configuration archives = project.configurations.maybeCreate('archives')

GithubPublish githubPublishTask = (GithubPublish) tasks.getByName(GithubPublishPlugin.PUBLISH_TASK_NAME)
githubPublishTask.onlyIf(new ProjectStatusTaskSpec('candidate', 'release'))
githubPublishTask.from(archives)
githubPublishTask.dependsOn archives
githubPublishTask.tagName = "v${project.version}"
githubPublishTask.setReleaseName(project.version.toString())
githubPublishTask.setPrerelease({ project.status != 'release' })
Expand Down

0 comments on commit d131c80

Please sign in to comment.