File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -379,21 +379,19 @@ githubRelease {
379379 owner = " JLLeitschuh"
380380 repo = " ktlint-gradle"
381381 overwrite = true
382- releaseAssets(
383- tasks.named(" shadowJar" )
384- )
382+ releaseAssets(tasks.named(" shadowJar" ))
385383
386384 fun isPreReleaseVersion (): Boolean {
387385 val version = project.version.toString()
388- return version.endsWith (" -rc" ) ||
386+ return version.contains (" -rc" ) ||
389387 version.contains(" -dev" ) ||
390388 version.contains(" -SNAPSHOT" )
391389 }
392390
393391 prerelease.set(provider { isPreReleaseVersion() })
394392 body.set(
395393 provider {
396- // If publishing a rc version use the [Unreleased] section of the changelog
394+ // If publishing a rc version, use the [Unreleased] section of the changelog
397395 if (isPreReleaseVersion()) {
398396 projectDir.resolve(" ../CHANGELOG.md" )
399397 .readText()
@@ -418,8 +416,8 @@ tasks.named<GithubReleaseTask>("githubRelease") {
418416 doLast {
419417 if (tagName.get().startsWith(" v0.1.0" )) {
420418 throw GradleException (
421- " Release version (${tagName.get()} ) was not correcly detected. " +
422- " Please check that the git repository is corretly initialized and the tag is correct. " +
419+ " Release version (${tagName.get()} ) was not correctly detected. " +
420+ " Please check that the git repository is correctly initialized and the tag is correct. " +
423421 " For GiHub Actions environments, check the fetch-depth setting in the actions/checkout step."
424422 )
425423 }
You can’t perform that action at this time.
0 commit comments