File tree Expand file tree Collapse file tree 4 files changed +12
-54
lines changed Expand file tree Collapse file tree 4 files changed +12
-54
lines changed Original file line number Diff line number Diff line change 20
20
- name : Checkout the repo
21
21
uses : actions/checkout@v4
22
22
23
+ - uses : actions/setup-java@v2
24
+ with :
25
+ distribution : " adopt"
26
+ java-version : " 17"
27
+
23
28
- name : Install msys2
24
29
if : matrix.os == 'windows-latest'
25
30
uses : msys2/setup-msys2@v2
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 39
39
restore-keys : |
40
40
${{ runner.os }}-gradle-
41
41
42
- - name : Finish Maven Central Release
43
- run : ./gradlew closeAndReleaseRepository --no-daemon --stacktrace --no-build-cache
42
+ - name : Publish Artifacts to Maven Central
43
+ run : ./gradlew publish --no-daemon --stacktrace --no-build-cache
44
44
env :
45
45
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME : ${{ secrets.SONATYPE_NEXUS_USERNAME }}
46
46
ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_NEXUS_USERNAME }}
Original file line number Diff line number Diff line change @@ -77,11 +77,8 @@ kotlin {
77
77
}
78
78
}
79
79
80
- // listOf(
81
- // "linuxX64Test",
82
- // "linuxArm64Test",
83
- // "linkDebugTestLinuxX64",
84
- // "linkDebugTestLinuxArm64",
85
- // "mingwX64Test",
86
- // "linkDebugTestMingwX64",
87
- // ).forEach { tasks.findByName(it)?.enabled = false }
80
+ mavenPublishing {
81
+ // Signing and POM are automatically handled by the plugin + gradle.properties
82
+ configureBasedOnAppliedPlugins(true , true )
83
+ publishToMavenCentral(automaticRelease = true )
84
+ }
You can’t perform that action at this time.
0 commit comments