Skip to content

Commit

Permalink
fix stagingRepositoryId check (#703)
Browse files Browse the repository at this point in the history
* fix stagingRepositoryId check

* Revert "use new tasks"

This reverts commit 21de520.
  • Loading branch information
gabrielittner authored Jan 6, 2024
1 parent 21de520 commit 55c7960
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: gradle/gradle-build-action@v2

- name: Publish
run: ./gradlew publishAndReleaseToMavenCentral
run: ./gradlew publish
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: gradle/gradle-build-action@v2

- name: Publish
run: ./gradlew publishToMavenCentral
run: ./gradlew publish
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx2g
org.gradle.parallel=true

SONATYPE_HOST=DEFAULT
SONATYPE_AUTOMATIC_RELEASE=true
RELEASE_SIGNING_ENABLED=true

GROUP=com.vanniktech
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ moshi = "1.15.0"
retrofit = "2.9.0"
junit = "5.10.1"
truth = "1.2.0"
maven-publish = "0.27.0-rc1"
maven-publish = "0.26.0"
ktlint = "12.0.3"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ internal abstract class SonatypeRepositoryBuildService :

private var stagingRepositoryId: String? = null
set(value) {
check(field != null && field != value) {
check(field == null || field == value) {
"stagingRepositoryId was already set to '$field', new value '$value'"
}
field = value
Expand Down

0 comments on commit 55c7960

Please sign in to comment.