xpipe/jreleaser.gradle

82 lines
2.2 KiB
Groovy
Raw Normal View History

2022-08-13 19:14:20 +12:00
def isFullRelease = !project.version.endsWith('-SNAPSHOT')
2022-06-18 10:29:41 +12:00
def proj = project
jreleaser {
environment {
2022-08-13 03:26:01 +12:00
properties.put('rawChangelog', file("misc/changelogs/${version}.txt").exists() ?
file("misc/changelogs/${version}.txt").text.replace('\r\n', '\n') : "")
2022-06-18 10:29:41 +12:00
}
project {
2022-06-18 11:17:08 +12:00
name = 'X-Pipe Java'
description = '<TODO>'
longDescription = '<TODO>'
website = 'https://github.com/xpipe-io/xpipe_java'
2022-06-18 10:29:41 +12:00
authors = ['Christopher Schnick']
2022-06-18 11:17:08 +12:00
license = 'MIT'
copyright = '2022, Christopher Schnick'
2022-06-18 10:29:41 +12:00
java {
2022-06-18 11:17:08 +12:00
groupId = 'io.xpipe'
version = '19'
2022-06-18 10:29:41 +12:00
multiProject = true
}
}
release {
github {
2022-10-13 05:27:36 +13:00
// skipTag = !isFullRelease
2022-10-12 06:07:28 +13:00
overwrite = true
2022-10-12 06:17:57 +13:00
tagName = proj.version
releaseName = proj.version
2022-06-18 11:17:08 +12:00
token = proj.hasProperty("XPIPE_GITHUB_TOKEN") ? proj.property("XPIPE_GITHUB_TOKEN") : System.getenv("XPIPE_GITHUB_TOKEN")
2022-06-18 10:29:41 +12:00
files = true
artifacts = true
2022-10-12 05:36:57 +13:00
checksums = true
2022-06-18 10:29:41 +12:00
signatures = false
2022-10-12 05:36:57 +13:00
if (isFullRelease) {
changelog {
enabled = true
formatted = 'ALWAYS'
contentTemplate = isFullRelease ? file('misc/github_full.tpl') : file('misc/github_pre.tpl')
}
2022-06-18 10:29:41 +12:00
}
2022-10-12 06:07:28 +13:00
prerelease {
enabled = !isFullRelease
}
2022-06-18 10:29:41 +12:00
}
}
distributions {
2022-06-18 11:17:08 +12:00
api {
artifact {
distributionType = 'SINGLE_JAR'
2022-09-02 11:41:51 +12:00
path = 'api/build/libs/xpipe-api-{{version}}.jar'
2022-06-18 10:29:41 +12:00
}
}
2022-06-18 11:55:01 +12:00
core {
artifact {
distributionType = 'SINGLE_JAR'
2022-09-02 11:41:51 +12:00
path = 'core/build/libs/xpipe-core-{{version}}.jar'
2022-06-18 11:55:01 +12:00
}
}
beacon {
artifact {
distributionType = 'SINGLE_JAR'
2022-09-02 11:41:51 +12:00
path = 'beacon/build/libs/xpipe-beacon-{{version}}.jar'
2022-06-18 11:55:01 +12:00
}
}
extension {
artifact {
distributionType = 'SINGLE_JAR'
2022-09-02 11:41:51 +12:00
path = 'extension/build/libs/xpipe-extension-{{version}}.jar'
2022-06-18 11:55:01 +12:00
}
}
2022-06-18 10:29:41 +12:00
}
}