Skip to content

Commit

Permalink
Upload relocation publications to ReleaseRepo instead of SnapshotRepo (
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-dingemans authored Oct 14, 2023
1 parent 24d2f8c commit 3712c88
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 30 deletions.
4 changes: 1 addition & 3 deletions ktlint-cli-reporter-baseline/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ publishing {

repositories {
maven {
val releasesRepoUrl = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
val snapshotsRepoUrl = URI.create("https://oss.sonatype.org/content/repositories/snapshots/")
name = "mavenCentral"
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
url = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")

credentials {
username = providers.gradleProperty("SONATYPE_NEXUS_USERNAME").orNull
Expand Down
4 changes: 1 addition & 3 deletions ktlint-cli-reporter-checkstyle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ publishing {

repositories {
maven {
val releasesRepoUrl = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
val snapshotsRepoUrl = URI.create("https://oss.sonatype.org/content/repositories/snapshots/")
name = "mavenCentral"
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
url = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")

credentials {
username = providers.gradleProperty("SONATYPE_NEXUS_USERNAME").orNull
Expand Down
4 changes: 1 addition & 3 deletions ktlint-cli-reporter-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ publishing {

repositories {
maven {
val releasesRepoUrl = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
val snapshotsRepoUrl = URI.create("https://oss.sonatype.org/content/repositories/snapshots/")
name = "mavenCentral"
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
url = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")

credentials {
username = providers.gradleProperty("SONATYPE_NEXUS_USERNAME").orNull
Expand Down
4 changes: 1 addition & 3 deletions ktlint-cli-reporter-format/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ publishing {

repositories {
maven {
val releasesRepoUrl = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
val snapshotsRepoUrl = URI.create("https://oss.sonatype.org/content/repositories/snapshots/")
name = "mavenCentral"
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
url = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")

credentials {
username = providers.gradleProperty("SONATYPE_NEXUS_USERNAME").orNull
Expand Down
4 changes: 1 addition & 3 deletions ktlint-cli-reporter-html/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ publishing {

repositories {
maven {
val releasesRepoUrl = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
val snapshotsRepoUrl = URI.create("https://oss.sonatype.org/content/repositories/snapshots/")
name = "mavenCentral"
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
url = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")

credentials {
username = providers.gradleProperty("SONATYPE_NEXUS_USERNAME").orNull
Expand Down
4 changes: 1 addition & 3 deletions ktlint-cli-reporter-json/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ publishing {

repositories {
maven {
val releasesRepoUrl = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
val snapshotsRepoUrl = URI.create("https://oss.sonatype.org/content/repositories/snapshots/")
name = "mavenCentral"
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
url = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")

credentials {
username = providers.gradleProperty("SONATYPE_NEXUS_USERNAME").orNull
Expand Down
4 changes: 1 addition & 3 deletions ktlint-cli-reporter-plain-summary/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ publishing {

repositories {
maven {
val releasesRepoUrl = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
val snapshotsRepoUrl = URI.create("https://oss.sonatype.org/content/repositories/snapshots/")
name = "mavenCentral"
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
url = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")

credentials {
username = providers.gradleProperty("SONATYPE_NEXUS_USERNAME").orNull
Expand Down
4 changes: 1 addition & 3 deletions ktlint-cli-reporter-plain/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ publishing {

repositories {
maven {
val releasesRepoUrl = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
val snapshotsRepoUrl = URI.create("https://oss.sonatype.org/content/repositories/snapshots/")
name = "mavenCentral"
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
url = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")

credentials {
username = providers.gradleProperty("SONATYPE_NEXUS_USERNAME").orNull
Expand Down
4 changes: 1 addition & 3 deletions ktlint-cli-reporter-sarif/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ publishing {

repositories {
maven {
val releasesRepoUrl = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
val snapshotsRepoUrl = URI.create("https://oss.sonatype.org/content/repositories/snapshots/")
name = "mavenCentral"
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
url = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")

credentials {
username = providers.gradleProperty("SONATYPE_NEXUS_USERNAME").orNull
Expand Down
4 changes: 1 addition & 3 deletions ktlint-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,8 @@ publishing {

repositories {
maven {
val releasesRepoUrl = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
val snapshotsRepoUrl = URI.create("https://oss.sonatype.org/content/repositories/snapshots/")
name = "mavenCentral"
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
url = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")

credentials {
username = providers.gradleProperty("SONATYPE_NEXUS_USERNAME").orNull
Expand Down

0 comments on commit 3712c88

Please sign in to comment.