Skip to content

Commit a9032b3

Browse files
committed
Fix publishing
1 parent 4b96efc commit a9032b3

5 files changed

Lines changed: 13 additions & 7 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
java-version: '17'
2020

2121
- name: Publish Maven Libraries
22-
run: ./gradlew modulefs:publishToSonatype closeAndReleaseSonatypeStagingRepository
22+
run: ./gradlew publishToSonatype
2323
env:
2424
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
2525
GPG_KEY: ${{ secrets.GPG_KEY }}

‎build.gradle‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@ plugins {
33
}
44

55
group 'io.xpipe'
6-
7-
def user = project.hasProperty('sonatypeUsername') ? project.property('sonatypeUsername') : System.getenv('SONATYPE_USERNAME')
8-
def pass = project.hasProperty('sonatypePassword') ? project.property('sonatypePassword') : System.getenv('SONATYPE_PASSWORD')
6+
version '0.1.7'
97

108
tasks.withType(GenerateModuleMetadata).configureEach {
119
enabled = false
1210
}
1311

12+
def user = project.hasProperty('sonatypeUsername') ? project.property('sonatypeUsername') : System.getenv('SONATYPE_USERNAME')
13+
def pass = project.hasProperty('sonatypePassword') ? project.property('sonatypePassword') : System.getenv('SONATYPE_PASSWORD')
14+
1415
nexusPublishing {
1516
repositories {
1617
sonatype {
18+
stagingProfileId = "3296258e-7ae3-4559-9365-00733c4b6db0"
1719
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
1820
snapshotRepositoryUrl.set(uri('https://central.sonatype.com/repository/maven-snapshots/'))
1921
username = user
2022
password = pass
2123
}
2224
}
23-
useStaging = true
2425
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

‎modulefs/build.gradle‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ plugins {
55
}
66

77
version '0.1.7'
8+
group 'io.xpipe'
89
base.archivesName = 'modulefs'
910

1011
apply from: 'publish.gradle'
@@ -29,3 +30,7 @@ javadoc {
2930
addBooleanOption('html5', true)
3031
}
3132
}
33+
34+
test {
35+
failOnNoDiscoveredTests = false
36+
}

‎modulefs/publish.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ publishing {
3737

3838
def signingKeyId = project.hasProperty('signingKeyId') ? project.property("signingKeyId") : System.getenv('GPG_KEY_ID')
3939
def signingKey = project.hasProperty('signingKeyFile') ? file(project.property("signingKeyFile")).text : System.getenv('GPG_KEY')
40-
def signingPassword = project.hasProperty('signingPassword') ? project.property("signingPassword") : System.getenv('GPG_KEY_PASSWORD')
40+
def signingPassword = project.hasProperty('signingKeyPassword') ? project.property("signingKeyPassword") : System.getenv('GPG_KEY_PASSWORD')
4141

4242
signing {
4343
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword != null ? signingPassword : '')

0 commit comments

Comments
 (0)