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:
|
||||
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 }}
|
||||
|
|
8
dist/java/build.gradle
vendored
8
dist/java/build.gradle
vendored
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue