mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 07:14:50 +01:00
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:
parent
1ff2b31838
commit
c329fa49cb
2 changed files with 5 additions and 5 deletions
2
.github/workflows/java.yml
vendored
2
.github/workflows/java.yml
vendored
|
@ -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 }}
|
||||||
|
|
8
dist/java/build.gradle
vendored
8
dist/java/build.gradle
vendored
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue