Update jreleaser

This commit is contained in:
Christopher Schnick 2022-10-11 19:07:28 +02:00
parent bca63a8495
commit 531cee5669
2 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,5 @@
plugins { plugins {
id 'org.jreleaser' version '1.0.0' id 'org.jreleaser' version '1.2.0'
} }
if(project == rootProject) { if(project == rootProject) {

View file

@ -26,8 +26,8 @@ jreleaser {
release { release {
github { github {
skipTag = !isFullRelease skipTag = !isFullRelease
owner = 'xpipe-io' repoOwner = 'xpipe-io'
overwrite = false overwrite = true
tagName = '{{projectVersion}}' tagName = '{{projectVersion}}'
releaseName = '{{tagName}}' releaseName = '{{tagName}}'
token = proj.hasProperty("XPIPE_GITHUB_TOKEN") ? proj.property("XPIPE_GITHUB_TOKEN") : System.getenv("XPIPE_GITHUB_TOKEN") token = proj.hasProperty("XPIPE_GITHUB_TOKEN") ? proj.property("XPIPE_GITHUB_TOKEN") : System.getenv("XPIPE_GITHUB_TOKEN")
@ -44,6 +44,10 @@ jreleaser {
contentTemplate = isFullRelease ? file('misc/github_full.tpl') : file('misc/github_pre.tpl') contentTemplate = isFullRelease ? file('misc/github_full.tpl') : file('misc/github_pre.tpl')
} }
} }
prerelease {
enabled = !isFullRelease
}
} }
} }
distributions { distributions {