File tree Expand file tree Collapse file tree 6 files changed +63
-52
lines changed Expand file tree Collapse file tree 6 files changed +63
-52
lines changed Original file line number Diff line number Diff line change 6
6
- master
7
7
pull_request :
8
8
9
+ env :
10
+ GRADLE_OPTS : " -Dorg.gradle.console=plain -Dorg.gradle.daemon=false -Dorg.gradle.stacktrace=always"
11
+
9
12
jobs :
10
13
gradle :
11
14
strategy :
28
31
add-job-summary-as-pr-comment : on-failure
29
32
30
33
- name : Execute Gradle build
31
- run : ./gradlew --console=plain --no-daemon --stacktrace -- continue build
34
+ run : ./gradlew --continue build
32
35
33
36
- name : Upload Test Report
34
37
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change 10
10
description : ' Next version after release (-SNAPSHOT will be added automatically)'
11
11
required : true
12
12
13
+ env :
14
+ GRADLE_OPTS : " -Dorg.gradle.console=plain -Dorg.gradle.daemon=false -Dorg.gradle.stacktrace=always"
15
+
13
16
jobs :
14
17
release :
15
18
runs-on : ubuntu-latest
31
34
- name : Setup Gradle
32
35
uses : gradle/actions/setup-gradle@v4
33
36
34
- - name : JReleaser full release
37
+ - name : Gradle build and publish to local
38
+ run : ./gradlew publish -Pversion=${{ github.event.inputs.version }}
39
+
40
+ - name : JReleaser full-release
41
+ uses : jreleaser/release-action@v2
42
+ with :
43
+ setup-java : false
35
44
env :
45
+ JRELEASER_STRICT : " true"
46
+ JRELEASER_OUTPUT_DIRECTORY : " build/"
36
47
JRELEASER_PROJECT_VERSION : ${{ github.event.inputs.version }}
37
48
JRELEASER_GITHUB_TOKEN : ${{ secrets.JRELEASER_GITHUB_TOKEN }}
38
49
JRELEASER_MAVENCENTRAL_USERNAME : ${{ secrets.JRELEASER_MAVENCENTRAL_USERNAME }}
41
52
JRELEASER_GPG_PASSPHRASE : ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
42
53
JRELEASER_GPG_PUBLIC_KEY : ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
43
54
JRELEASER_GPG_SECRET_KEY : ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
44
- run : ./gradlew --console=plain --no-daemon --stacktrace jreleaserFullRelease -Pversion=${{ github.event.inputs.version }}
45
55
46
- - name : JReleaser release output
56
+ - name : JReleaser upload output
47
57
if : always()
48
58
uses : actions/upload-artifact@v4
49
59
with :
Original file line number Diff line number Diff line change 1
1
java=21.0.5-tem
2
+ jreleaser=1.15.0
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id(" base" )
3
3
id(" idea" )
4
- id(" org.jreleaser" ) version (" 1.15.0" )
5
- id(" org.barfuin.gradle.taskinfo" ) version (" 2.2.0" ) // ./gradlew tiTree jreleaserFullRelease
4
+ id(" org.barfuin.gradle.taskinfo" ) version (" 2.2.0" ) // ./gradlew tiTree publish
6
5
id(" be.vbgn.ci-detect" ) version (" 0.5.0" )
7
6
}
8
7
@@ -23,47 +22,8 @@ tasks.withType<Wrapper> {
23
22
distributionType = Wrapper .DistributionType .ALL
24
23
}
25
24
26
- jreleaser {
27
- strict = true
28
- signing {
29
- active = org.jreleaser.model.Active .ALWAYS
30
- armored = true
31
- mode = if (ci.isCi) org.jreleaser.model.Signing .Mode .MEMORY else org.jreleaser.model.Signing .Mode .COMMAND
32
- files = true
33
- artifacts = true
34
- checksums = true
35
- }
36
- deploy {
37
- maven {
38
- pomchecker {
39
- version = " 1.14.0"
40
- failOnWarning = true
41
- failOnError = true
42
- }
43
- mavenCentral {
44
- create(" sonatype" ) {
45
- active = org.jreleaser.model.Active .ALWAYS
46
- url = " https://central.sonatype.com/api/v1/publisher"
47
- stagingRepository(" build/staging-deploy" )
48
- applyMavenCentralRules = true
49
- sign = true
50
- namespace.set(" org.framefork" )
51
- retryDelay = 30
52
- maxRetries = 100
53
- }
54
- }
55
- }
56
- }
57
- release {
58
- github {
59
- enabled = true
60
- tagName = " v{{projectVersion}}"
61
- releaseName = " {{tagName}}"
62
- }
63
- }
64
- }
65
-
66
25
tasks.register<Delete >(" cleanAllPublications" ) {
26
+ outputs.upToDateWhen { false }
67
27
setDelete(rootProject.layout.buildDirectory.dir(" staging-deploy" ))
68
28
}
69
29
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id(" framefork.java" )
3
3
`maven- publish`
4
- signing
5
4
}
6
5
7
6
java {
@@ -62,8 +61,3 @@ publishing {
62
61
tasks.named(" publish" ) {
63
62
dependsOn(rootProject.tasks.named(" cleanAllPublications" ))
64
63
}
65
-
66
- val publishTask = tasks.named(" publish" )
67
- rootProject.tasks.matching({ it.name.startsWith(" jreleaser" ) }).configureEach {
68
- dependsOn(publishTask)
69
- }
Original file line number Diff line number Diff line change
1
+ project :
2
+ vendor : Framefork
3
+ name : typed-ids
4
+ java :
5
+ groupId : " org.framefork"
6
+ multiProject : true
7
+
8
+ checksum :
9
+ individual : true
10
+
11
+ signing :
12
+ active : ALWAYS
13
+ mode : MEMORY
14
+ armored : true
15
+ checksums : false
16
+
17
+ deploy :
18
+ maven :
19
+ pomchecker :
20
+ version : " 1.14.0"
21
+ failOnError : true
22
+ failOnWarning : true
23
+ mavenCentral :
24
+ sonatype :
25
+ active : RELEASE
26
+ url : https://central.sonatype.com/api/v1/publisher
27
+ applyMavenCentralRules : true
28
+ sign : true
29
+ retryDelay : 30
30
+ maxRetries : 100
31
+ namespace : " org.framefork"
32
+ stagingRepositories :
33
+ - build/staging-deploy
34
+
35
+ release :
36
+ github :
37
+ enabled : true
38
+ overwrite : true
39
+ tagName : " v{{projectVersion}}"
40
+ releaseName : " {{tagName}}"
41
+ commitAuthor :
42
+ name : ' Framefork BOT'
43
+
You can’t perform that action at this time.
0 commit comments