File tree Expand file tree Collapse file tree 4 files changed +61
-1
lines changed Expand file tree Collapse file tree 4 files changed +61
-1
lines changed Original file line number Diff line number Diff line change 11plugins {
22 id(' groovy' )
3+ id(' org.jreleaser' ). version(' 0.8.0' ). apply(false )
34}
45
56String userHome = System . getProperty(' user.home' )
@@ -24,10 +25,11 @@ ext.sdkmanVersion = ext.release == 'latest' ? "latest+${ext.hash}".toString() :
2425println (" Environment is set to: $environment " )
2526println (" Short git hash: $hash " )
2627println (" Release set to: $release " )
27- println (" Candidtes API: $candidatesApi " )
28+ println (" Candidates API: $candidatesApi " )
2829println (" Version: $sdkmanVersion " )
2930
3031apply from : ' gradle/archive.gradle'
32+ apply from : ' gradle/release.gradle'
3133
3234repositories {
3335 mavenCentral()
Original file line number Diff line number Diff line change 1+ apply plugin : ' org.jreleaser'
2+
3+ jreleaser {
4+ project {
5+ name = ' sdkman-cli'
6+ version = sdkmanVersion
7+ description = ' Sdkman - The Software Development Kit Manager'
8+ website = ' https://sdkman.io'
9+ authors = [' Marco Vermeulen' ]
10+ license = ' Apache-2.0'
11+ extraProperties. put(' inceptionYear' , ' 2012' )
12+ }
13+
14+ release {
15+ github {
16+ overwrite = true
17+ tagName = ' {{projectVersion}}'
18+ skipTag = true
19+ changelog {
20+ formatted = ' ALWAYS'
21+ format = ' - {{commitShortHash}} {{commitTitle}}'
22+ contributors {
23+ format = ' - {{contributorName}}'
24+ }
25+ contentTemplate = file(' src/jreleaser/changelog.tpl' )
26+ hide {
27+ contributors = [' GitHub' ]
28+ }
29+ }
30+ }
31+ }
32+
33+ distributions {
34+ ' sdkman-cli' {
35+ distributionType = ' BINARY'
36+ artifact {
37+ path = " build/distributions/{{distributionName}}-${ sdkmanVersion} .zip"
38+ }
39+ sdkman {
40+ active = ' RELEASE'
41+ }
42+ }
43+ }
44+ }
Original file line number Diff line number Diff line change 1+ pluginManagement {
2+ repositories {
3+ mavenLocal()
4+ gradlePluginPortal()
5+ mavenCentral()
6+ }
7+ }
8+
19rootProject. name = " sdkman-cli"
Original file line number Diff line number Diff line change 1+ LOREM IPSUM DOLOR SIT AMET
2+
3+ ## Changelog
4+
5+ { {changelogChanges} }
6+ { {changelogContributors} }
You can’t perform that action at this time.
0 commit comments