Skip to content

Commit

Permalink
Merge pull request #67 from Netflix/rpalcolea-patch-1
Browse files Browse the repository at this point in the history
wire publish plugin to nebula release
  • Loading branch information
paulbakker authored Mar 10, 2021
2 parents 62e9524 + dacac32 commit 3c75379
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion graphql-dgs-codegen-gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,17 @@ project.afterEvaluate {
}.each {
it.enabled = false
}
}
}

TaskProvider validatePluginsTask = project.tasks.named('validatePlugins')
TaskProvider publishPluginsTask = project.tasks.named('publishPlugins')
project.plugins.withId('nebula.release') {
project.tasks.withType(PublishToMavenRepository).configureEach {
def releasetask = project.rootProject.tasks.findByName('release')
if (releasetask) {
it.mustRunAfter(releasetask)
it.dependsOn(validatePluginsTask)
it.dependsOn(publishPluginsTask)
}
}
}

0 comments on commit 3c75379

Please sign in to comment.