Skip to content

Commit ba7dc22

Browse files
committed
simpler publishing
1 parent df60ecb commit ba7dc22

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
PUBLISH_USER: ${{ secrets.PUBLISH_USER }}
8888
PUBLISH_KEY: ${{ secrets.PUBLISH_KEY }}
8989
run: |
90-
./gradlew publishSnapshot
90+
./gradlew publishToSonatype
9191
./gradlew --stop
9292
9393
- name: archive test results

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ jobs:
3737
SIGN_KEY: ${{ secrets.SIGN_KEY }}
3838
SIGN_PWD: ${{ secrets.SIGN_PWD }}
3939
run: |
40-
./gradlew publishRelease
40+
./gradlew publishToSonatype closeSonatypeStagingRepository
4141
./gradlew --stop

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ plugins {
1111
id 'org.jetbrains.kotlin.jvm' version '1.5.0'
1212
id 'org.unbroken-dome.test-sets' version '4.0.0'
1313
id "com.github.ben-manes.versions" version "0.38.0"
14+
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
1415
}
1516

1617
group projectGroupId
@@ -160,6 +161,15 @@ sonarqube {
160161
}
161162
}
162163

164+
nexusPublishing {
165+
repositories {
166+
sonatype() {
167+
username = publishUser
168+
password = publishKey
169+
}
170+
}
171+
}
172+
163173
apply plugin: VersionPlugin
164174
apply from: "${rootProject.rootDir}/gradle/publishing.gradle"
165175
apply from: "${rootProject.rootDir}/gradle/publishing.tasks.gradle.kts"

0 commit comments

Comments
 (0)