Skip to content

Commit

Permalink
chore: update release conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
error418 committed Dec 18, 2020
1 parent eb22529 commit 0125fac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ publishing {
}
}

project.tasks.release.onlyIf { !project.ext.isSnapshot }
project.tasks.release.onlyIf { !project.version.endsWith("-SNAPSHOT") }
tasks.withType(PublishToMavenRepository) {
onlyIf { !project.ext.isSnapshot }
onlyIf { !project.version.endsWith("-SNAPSHOT") }
dependsOn project.tasks.release
}

0 comments on commit 0125fac

Please sign in to comment.