Skip to content

Commit

Permalink
publishing: Correct the isSnapshot check to support builds where ther…
Browse files Browse the repository at this point in the history
…e is build metadata placed after the -SNAPSHOT
  • Loading branch information
zml2008 committed Nov 23, 2020
1 parent 12adb87 commit 6ccc835
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class IndraPublishingPlugin : Plugin<Project> {
}
}

fun isSnapshot(project: Project) = project.version.toString().endsWith("-SNAPSHOT")
fun isSnapshot(project: Project) = project.version.toString().contains("-SNAPSHOT")

/**
* Verify that this project is checked out to a release version, meaning that:
Expand Down

0 comments on commit 6ccc835

Please sign in to comment.