Skip to content

Commit a976a18

Browse files
switch to new central maven setup
1 parent 1e2388d commit a976a18

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/publish-jars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
distribution: 'adopt'
2424

2525
- name: Validate Gradle wrapper
26-
uses: gradle/wrapper-validation-action@v1
26+
uses: gradle/actions/wrapper-validation@v3.5.0
2727

2828
- name: Publish Packages
29-
uses: gradle/gradle-build-action@v2
29+
uses: gradle/actions/setup-gradle@v3.5.0
3030
with:
3131
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
3232
env:

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ nexusPublishing {
1111
sonatype {
1212
username.set(findProperty("MAVEN_CENTRAL_USERNAME")?.let { it as String? })
1313
password.set(findProperty("MAVEN_CENTRAL_TOKEN")?.let { it as String? })
14+
nexusUrl.set(uri("https://central.sonatype.com/api/v1/publisher"))
15+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
1416
}
1517
}
1618
}

versions.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
version.com.adarshr..gradle-test-logger-plugin=4.0.0
1010
version.junit.jupiter=5.10.1
1111
version.java3d..j3d-core=1.3.1
12-
plugin.io.github.gradle-nexus.publish-plugin=1.3.0
12+
plugin.io.github.gradle-nexus.publish-plugin=2.0.0
1313
## # available=2.0.0-rc-1
1414
version.kotlinx.coroutines=1.8.1
1515
## unused

0 commit comments

Comments
 (0)