Skip to content

Commit

Permalink
Merge pull request #14 from croz-ltd/feature/setup-publishing-ci
Browse files Browse the repository at this point in the history
Remove unneeded setupPublishPlugins task
  • Loading branch information
Dino Muharemagić authored Dec 21, 2022
2 parents f105774 + 46c335b commit f43cda2
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -131,19 +131,10 @@ val isRelease = !isSnapshot
val check = tasks.named("check")
val functionalTest = tasks.named("functionalTest")

val setupPublishPlugins = tasks.register("setupPublishPlugins") {
val key = System.getenv("GRADLE_PUBLISH_KEY")
val secret = System.getenv("GRADLE_PUBLISH_SECRET")

if (key.isNullOrEmpty() || secret.isNullOrEmpty()) {
throw RuntimeException("GRADLE_PUBLISH_KEY and/or GRADLE_PUBLISH_SECRET are not defined as environment variables")
}
}

tasks.named("publishPlugins") {
onlyIf { isRelease }

if (isRelease) {
dependsOn(check, setupPublishPlugins)
dependsOn(check)
}
}

0 comments on commit f43cda2

Please sign in to comment.