Skip to content

Commit

Permalink
Remove publication and signing of maven relocation 0.51.0-FINAL (#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-dingemans authored Oct 19, 2023
1 parent a26f014 commit 77526fb
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 648 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/publish-relocations.yml

This file was deleted.

61 changes: 0 additions & 61 deletions ktlint-cli-reporter-baseline/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,64 +9,3 @@ dependencies {

testImplementation(projects.ktlintTest)
}

// TODO: Remove in release after ktlint 1.0.1
publishing {
publications {
create<MavenPublication>("relocation-ktlint-cli-reporter-baseline") {
pom {
// Old artifact coordinates
groupId = "com.pinterest.ktlint"
artifactId = "ktlint-reporter-baseline"
version = "0.51.0-FINAL"

name = artifactId
description = providers.gradleProperty("POM_DESCRIPTION")
url = providers.gradleProperty("POM_URL")
licenses {
license {
name = providers.gradleProperty("POM_LICENSE_NAME")
url = providers.gradleProperty("POM_LICENSE_URL")
distribution = "repo"
}
}
developers {
developer {
id = providers.gradleProperty("POM_DEVELOPER_ID")
name = providers.gradleProperty("POM_DEVELOPER_NAME")
}
}
scm {
url = providers.gradleProperty("POM_SCM_URL")
connection = providers.gradleProperty("POM_SCM_CONNECTION")
developerConnection = providers.gradleProperty("POM_SCM_DEV_CONNECTION")
}

distributionManagement {
relocation {
// New artifact coordinates
artifactId.set("ktlint-cli-reporter-baseline")
version.set("1.0.0")
message.set("artifactId has been changed")
}
}
}
}
}
}

// TODO: Remove in release after ktlint 1.0.1
signing {
// Uncomment following line to use gpg-agent for signing
// See https://docs.gradle.org/current/userguide/signing_plugin.html#sec:using_gpg_agent how to configure it
// useGpgCmd()

val signingKeyId = System.getenv("ORG_GRADLE_PROJECT_signingKeyId")
val signingKey = System.getenv("ORG_GRADLE_PROJECT_signingKey")
val signingPassword = System.getenv("ORG_GRADLE_PROJECT_signingKeyPassword")
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)

sign(publishing.publications["relocation-ktlint-cli-reporter-baseline"])

isRequired = true
}
61 changes: 0 additions & 61 deletions ktlint-cli-reporter-checkstyle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,64 +7,3 @@ dependencies {

testImplementation(projects.ktlintTest)
}

// TODO: Remove in release after ktlint 1.0.1
publishing {
publications {
create<MavenPublication>("relocation-ktlint-cli-reporter-checkstyle") {
pom {
// Old artifact coordinates
groupId = "com.pinterest.ktlint"
artifactId = "ktlint-reporter-checkstyle"
version = "0.51.0-FINAL"

name = artifactId
description = providers.gradleProperty("POM_DESCRIPTION")
url = providers.gradleProperty("POM_URL")
licenses {
license {
name = providers.gradleProperty("POM_LICENSE_NAME")
url = providers.gradleProperty("POM_LICENSE_URL")
distribution = "repo"
}
}
developers {
developer {
id = providers.gradleProperty("POM_DEVELOPER_ID")
name = providers.gradleProperty("POM_DEVELOPER_NAME")
}
}
scm {
url = providers.gradleProperty("POM_SCM_URL")
connection = providers.gradleProperty("POM_SCM_CONNECTION")
developerConnection = providers.gradleProperty("POM_SCM_DEV_CONNECTION")
}

distributionManagement {
relocation {
// New artifact coordinates
artifactId.set("ktlint-cli-reporter-checkstyle")
version.set("1.0.0")
message.set("artifactId has been changed")
}
}
}
}
}
}

// TODO: Remove in release after ktlint 1.0.1
signing {
// Uncomment following line to use gpg-agent for signing
// See https://docs.gradle.org/current/userguide/signing_plugin.html#sec:using_gpg_agent how to configure it
// useGpgCmd()

val signingKeyId = System.getenv("ORG_GRADLE_PROJECT_signingKeyId")
val signingKey = System.getenv("ORG_GRADLE_PROJECT_signingKey")
val signingPassword = System.getenv("ORG_GRADLE_PROJECT_signingKeyPassword")
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)

sign(publishing.publications["relocation-ktlint-cli-reporter-checkstyle"])

isRequired = true
}
61 changes: 0 additions & 61 deletions ktlint-cli-reporter-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,64 +1,3 @@
plugins {
id("ktlint-publication-library")
}

// TODO: Remove in release after ktlint 1.0.1
publishing {
publications {
create<MavenPublication>("relocation-ktlint-cli-reporter-core") {
pom {
// Old artifact coordinates
groupId = "com.pinterest.ktlint"
artifactId = "ktlint-cli-reporter"
version = "0.51.0-FINAL"

name = artifactId
description = providers.gradleProperty("POM_DESCRIPTION")
url = providers.gradleProperty("POM_URL")
licenses {
license {
name = providers.gradleProperty("POM_LICENSE_NAME")
url = providers.gradleProperty("POM_LICENSE_URL")
distribution = "repo"
}
}
developers {
developer {
id = providers.gradleProperty("POM_DEVELOPER_ID")
name = providers.gradleProperty("POM_DEVELOPER_NAME")
}
}
scm {
url = providers.gradleProperty("POM_SCM_URL")
connection = providers.gradleProperty("POM_SCM_CONNECTION")
developerConnection = providers.gradleProperty("POM_SCM_DEV_CONNECTION")
}

distributionManagement {
relocation {
// New artifact coordinates
artifactId.set("ktlint-cli-reporter-core")
version.set("1.0.0")
message.set("artifactId has been changed")
}
}
}
}
}
}

// TODO: Remove in release after ktlint 1.0.1
signing {
// Uncomment following line to use gpg-agent for signing
// See https://docs.gradle.org/current/userguide/signing_plugin.html#sec:using_gpg_agent how to configure it
// useGpgCmd()

val signingKeyId = System.getenv("ORG_GRADLE_PROJECT_signingKeyId")
val signingKey = System.getenv("ORG_GRADLE_PROJECT_signingKey")
val signingPassword = System.getenv("ORG_GRADLE_PROJECT_signingKeyPassword")
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)

sign(publishing.publications["relocation-ktlint-cli-reporter-core"])

isRequired = true
}
77 changes: 0 additions & 77 deletions ktlint-cli-reporter-format/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import java.net.URI

plugins {
id("ktlint-publication-library")
}
Expand All @@ -9,78 +7,3 @@ dependencies {

testImplementation(projects.ktlintTest)
}

// TODO: Remove in release after ktlint 1.0.1
publishing {
publications {
create<MavenPublication>("relocation-ktlint-cli-reporter-format") {
pom {
// Old artifact coordinates
groupId = "com.pinterest.ktlint"
artifactId = "ktlint-reporter-format"
version = "0.51.0-FINAL"

name = artifactId
description = providers.gradleProperty("POM_DESCRIPTION")
url = providers.gradleProperty("POM_URL")
licenses {
license {
name = providers.gradleProperty("POM_LICENSE_NAME")
url = providers.gradleProperty("POM_LICENSE_URL")
distribution = "repo"
}
}
developers {
developer {
id = providers.gradleProperty("POM_DEVELOPER_ID")
name = providers.gradleProperty("POM_DEVELOPER_NAME")
}
}
scm {
url = providers.gradleProperty("POM_SCM_URL")
connection = providers.gradleProperty("POM_SCM_CONNECTION")
developerConnection = providers.gradleProperty("POM_SCM_DEV_CONNECTION")
}

distributionManagement {
relocation {
// New artifact coordinates
artifactId.set("ktlint-cli-reporter-format")
version.set("1.0.0")
message.set("artifactId has been changed")
}
}

repositories {
maven {
name = "mavenCentral"
url = URI.create("https://oss.sonatype.org/service/local/staging/deploy/maven2/")

credentials {
username = providers.gradleProperty("SONATYPE_NEXUS_USERNAME").orNull
?: System.getenv("SONATYPE_NEXUS_USERNAME")
password = providers.gradleProperty("SONATYPE_NEXUS_PASSWORD").orNull
?: System.getenv("SONATYPE_NEXUS_PASSWORD")
}
}
}
}
}
}
}

// TODO: Remove in release after ktlint 1.0.1
signing {
// Uncomment following line to use gpg-agent for signing
// See https://docs.gradle.org/current/userguide/signing_plugin.html#sec:using_gpg_agent how to configure it
// useGpgCmd()

val signingKeyId = System.getenv("ORG_GRADLE_PROJECT_signingKeyId")
val signingKey = System.getenv("ORG_GRADLE_PROJECT_signingKey")
val signingPassword = System.getenv("ORG_GRADLE_PROJECT_signingKeyPassword")
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)

sign(publishing.publications["relocation-ktlint-cli-reporter-format"])

isRequired = true
}
61 changes: 0 additions & 61 deletions ktlint-cli-reporter-html/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,64 +7,3 @@ dependencies {

testImplementation(projects.ktlintTest)
}

// TODO: Remove in release after ktlint 1.0.1
publishing {
publications {
create<MavenPublication>("relocation-ktlint-cli-reporter-html") {
pom {
// Old artifact coordinates
groupId = "com.pinterest.ktlint"
artifactId = "ktlint-reporter-html"
version = "0.51.0-FINAL"

name = artifactId
description = providers.gradleProperty("POM_DESCRIPTION")
url = providers.gradleProperty("POM_URL")
licenses {
license {
name = providers.gradleProperty("POM_LICENSE_NAME")
url = providers.gradleProperty("POM_LICENSE_URL")
distribution = "repo"
}
}
developers {
developer {
id = providers.gradleProperty("POM_DEVELOPER_ID")
name = providers.gradleProperty("POM_DEVELOPER_NAME")
}
}
scm {
url = providers.gradleProperty("POM_SCM_URL")
connection = providers.gradleProperty("POM_SCM_CONNECTION")
developerConnection = providers.gradleProperty("POM_SCM_DEV_CONNECTION")
}

distributionManagement {
relocation {
// New artifact coordinates
artifactId.set("ktlint-cli-reporter-html")
version.set("1.0.0")
message.set("artifactId has been changed")
}
}
}
}
}
}

// TODO: Remove in release after ktlint 1.0.1
signing {
// Uncomment following line to use gpg-agent for signing
// See https://docs.gradle.org/current/userguide/signing_plugin.html#sec:using_gpg_agent how to configure it
// useGpgCmd()

val signingKeyId = System.getenv("ORG_GRADLE_PROJECT_signingKeyId")
val signingKey = System.getenv("ORG_GRADLE_PROJECT_signingKey")
val signingPassword = System.getenv("ORG_GRADLE_PROJECT_signingKeyPassword")
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)

sign(publishing.publications["relocation-ktlint-cli-reporter-html"])

isRequired = true
}
Loading

0 comments on commit 77526fb

Please sign in to comment.