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:
name: codemp-java-${{ matrix.platform.target }}
path: dist/java/build/libs
- run: gradle publishAllPublicationsToMavenCentralRepository
- run: gradle publish
working-directory: dist/java
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}

View file

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