ci(java): does publishing to central work?

packages take some time to appear, 10~30 mins i read? so idk ill find
out tomorrow if this worked
This commit is contained in:
əlemi 2024-09-18 04:34:14 +02:00
parent 1ff2b31838
commit c329fa49cb
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 5 additions and 5 deletions

View file

@ -40,7 +40,7 @@ jobs:
with: with:
name: codemp-java-${{ matrix.platform.target }} name: codemp-java-${{ matrix.platform.target }}
path: dist/java/build/libs path: dist/java/build/libs
- run: gradle publishAllPublicationsToMavenCentralRepository - run: gradle publish
working-directory: dist/java working-directory: dist/java
env: env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}

View file

@ -6,7 +6,7 @@ plugins {
} }
group = 'mp.code' group = 'mp.code'
version = '0.0.1-SNAPSHOT' version = '0.0.1'
java { java {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
@ -15,13 +15,13 @@ java {
import com.vanniktech.maven.publish.SonatypeHost import com.vanniktech.maven.publish.SonatypeHost
mavenPublishing { mavenPublishing {
publishToMavenCentral(SonatypeHost.S01) // for snapshots // publishToMavenCentral(SonatypeHost.S01) // for snapshots
// publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) // central repository publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) // central repository
// publishToMavenCentral(SonatypeHost.DEFAULT) // ???? // publishToMavenCentral(SonatypeHost.DEFAULT) // ????
signAllPublications() signAllPublications()
coordinates("mp.code", "codemp", "0.0.1-SNAPSHOT") coordinates("mp.code", "codemp", "0.0.1")
pom { pom {
name = "codemp" name = "codemp"