Skip to content

Commit

Permalink
Rollback task configuration avoidance for nebula-bintray hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalcolea committed Jan 8, 2020
1 parent 45fc8cf commit 2e52e34
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main/groovy/nebula/plugin/release/ReleasePlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -321,17 +321,15 @@ class ReleasePlugin implements Plugin<Project> {
@CompileDynamic
void configureBintrayTasksIfPresent() {
project.plugins.withId('nebula.nebula-bintray') {
TaskCollection mavenPublishTasks = project.tasks.withType(PublishToMavenRepository)
mavenPublishTasks.configureEach { task ->
project.tasks.withType(PublishToMavenRepository) { Task task ->
project.plugins.withType(JavaPlugin) {
task.dependsOn(project.tasks.named('build'))
task.dependsOn(project.tasks.build)
}
}
project.rootProject.tasks.named('postRelease').configure {
it.dependsOn(mavenPublishTasks)
project.rootProject.tasks.getByName('postRelease').dependsOn(task)
}
}


project.plugins.withId('com.jfrog.bintray') {
TaskCollection bintrayUploadTasks = project.tasks.withType(Class.forName('com.jfrog.bintray.gradle.tasks.BintrayUploadTask'))
bintrayUploadTasks.configureEach { Task task ->
Expand Down

0 comments on commit 2e52e34

Please sign in to comment.