Configure JReleaser

This commit is contained in:
Andres Almiray
2021-10-31 14:37:26 +01:00
committed by Marco Vermeulen
parent f7ffc9c2e6
commit 43232f96c9
4 changed files with 61 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
plugins {
id('groovy')
id('org.jreleaser').version('0.8.0').apply(false)
}
String userHome = System.getProperty('user.home')
@@ -24,10 +25,11 @@ ext.sdkmanVersion = ext.release == 'latest' ? "latest+${ext.hash}".toString() :
println("Environment is set to: $environment")
println("Short git hash: $hash")
println("Release set to: $release")
println("Candidtes API: $candidatesApi")
println("Candidates API: $candidatesApi")
println("Version: $sdkmanVersion")
apply from: 'gradle/archive.gradle'
apply from: 'gradle/release.gradle'
repositories {
mavenCentral()

44
gradle/release.gradle Normal file
View File

@@ -0,0 +1,44 @@
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}}'
skipTag = true
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"
}
sdkman {
active = 'RELEASE'
}
}
}
}

View File

@@ -1 +1,9 @@
pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
mavenCentral()
}
}
rootProject.name = "sdkman-cli"

View File

@@ -0,0 +1,6 @@
LOREM IPSUM DOLOR SIT AMET
## Changelog
{{changelogChanges}}
{{changelogContributors}}