Skip to content

Commit 6d35551

Browse files
committed
Preparing for final test
1 parent 8259abe commit 6d35551

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Publish
2424
run: |
2525
chmod +x gradlew
26-
./gradlew uploadArchives closeAndReleaseRepository
26+
./gradlew publish closeAndReleaseRepository
2727
env:
2828
ORG_GRADLE_PROJECT_nexusUsername: ${{ secrets.NEXUS_USERNAME }}
2929
ORG_GRADLE_PROJECT_nexusPassword: ${{ secrets.NEXUS_PASSWORD }}

‎build.gradle‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,17 @@ publishing {
152152
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
153153

154154
credentials {
155-
username = project.hasProperty('nexusUsername') ? project.getProperty('nexusUsername') : ''
156-
password = project.hasProperty('nexusPassword') ? project.getProperty('nexusPassword') : ''
155+
username = project.findProperty('nexusUsername') ?: ''
156+
password = project.findProperty('nexusPassword') ?: ''
157157
}
158158
}
159159
}
160160
}
161161

162162
signing {
163-
def signingKey = project.hasProperty('signingKey') ? project.getProperty('signingKey') : ''
164-
def signingPassword = project.hasProperty('signingPassword') ? project.getProperty('signingPassword') : ''
163+
def signingKey = project.findProperty('signingKey') ?: ''
164+
def signingPassword = project.findProperty('signingPassword') ?: ''
165+
165166
useInMemoryPgpKeys(signingKey, signingPassword)
166167

167168
sign publishing.publications.mavenJava

0 commit comments

Comments
 (0)