Skip to content

Commit 0703b05

Browse files
committed
chore: improve version check message for snapshot publishing
1 parent d7894b9 commit 0703b05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gradle-tasks/snapshot.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ tasks.register("publishSnapshot") {
1010
"Publish task must be present to publish a $artifactId snapshot"
1111
}
1212

13-
require(project.version.toString().contains("-SNAPSHOT")) {
14-
"$artifactId version must contain -SNAPSHOT to publish snapshots."
13+
require(version.contains("-SNAPSHOT")) {
14+
"$artifactId:$version version must contain -SNAPSHOT to publish snapshots."
1515
}
1616

1717
dependsOn("${project.name}:publish")

0 commit comments

Comments
 (0)