We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7894b9 commit 0703b05Copy full SHA for 0703b05
gradle-tasks/snapshot.gradle.kts
@@ -10,8 +10,8 @@ tasks.register("publishSnapshot") {
10
"Publish task must be present to publish a $artifactId snapshot"
11
}
12
13
- require(project.version.toString().contains("-SNAPSHOT")) {
14
- "$artifactId version must contain -SNAPSHOT to publish snapshots."
+ require(version.contains("-SNAPSHOT")) {
+ "$artifactId:$version version must contain -SNAPSHOT to publish snapshots."
15
16
17
dependsOn("${project.name}:publish")
0 commit comments