Files
sdkman-cli/gradle/release.gradle
2024-06-18 17:17:06 +02:00

53 lines
1.1 KiB
Groovy

apply plugin: 'org.jreleaser'
jreleaser {
project {
name = 'sdkman-cli'
version = sdkmanVersion
description = 'Sdkman - The Software Development Kit Manager'
website = 'https://sdkman.io'
authors = ['Marco Vermeulen']
license = 'Apache-2.0'
extraProperties.put('inceptionYear', '2012')
}
release {
github {
overwrite = true
tagName = '{{projectVersion}}'
changelog {
formatted = 'ALWAYS'
format = '- {{commitShortHash}} {{commitTitle}}'
contributors {
format = '- {{contributorName}}'
}
contentTemplate = file('src/jreleaser/changelog.tpl')
hide {
contributors = ['GitHub']
}
}
}
}
distributions {
'sdkman-cli' {
distributionType = 'BINARY'
artifact {
path = "build/distributions/{{distributionName}}-${sdkmanVersion}.zip"
extraProperties.put("universal", "true")
}
}
}
announce {
twitter {
active = 'RELEASE'
status = 'Released version {{tagName}} of SDKMAN! {{releaseNotesUrl}}'
}
mastodon {
active = 'RELEASE'
status = 'Released version {{tagName}} of SDKMAN! {{releaseNotesUrl}}'
host = 'https://fosstodon.org'
}
}
}