diff --git a/.github/workflows/publish-relocations.yml b/.github/workflows/publish-relocations.yml deleted file mode 100644 index 8d1de5057f..0000000000 --- a/.github/workflows/publish-relocations.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Publish snapshot build - -on: [ workflow_dispatch ] - -env: - SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }} - SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} - ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }} - ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }} - ORG_GRADLE_PROJECT_signingKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }} - -jobs: - publish: - runs-on: ubuntu-latest - if: github.repository == 'pinterest/ktlint' - steps: - - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 - - - uses: ./.github/actions/setup-gradle-build - - - name: Publish relocated artifacts to Maven - run: ./gradlew clean publishRelocation-ktlint-cliPublicationToMavenCentralRelocationRepository publishRelocation-ktlint-cli-reporter-baselinePublicationToMavenCentralRelocationRepository publishRelocation-ktlint-cli-reporter-checkstylePublicationToMavenCentralRelocationRepository publishRelocation-ktlint-cli-reporter-corePublicationToMavenCentralRelocationRepository publishRelocation-ktlint-cli-reporter-htmlPublicationToMavenCentralRelocationRepository publishRelocation-ktlint-cli-reporter-jsonPublicationToMavenCentralRelocationRepository publishRelocation-ktlint-cli-reporter-plain-summaryPublicationToMavenCentralRelocationRepository publishRelocation-ktlint-cli-reporter-plainPublicationToMavenCentralRelocationRepository publishRelocation-ktlint-cli-reporter-sarifPublicationToMavenCentralRelocationRepository publishRelocation-ktlint-cliPublicationToMavenCentralRelocationRepository --no-daemon --no-parallel --no-configuration-cache diff --git a/ktlint-cli-reporter-baseline/build.gradle.kts b/ktlint-cli-reporter-baseline/build.gradle.kts index 946dc88bd4..9323b9374e 100644 --- a/ktlint-cli-reporter-baseline/build.gradle.kts +++ b/ktlint-cli-reporter-baseline/build.gradle.kts @@ -9,64 +9,3 @@ dependencies { testImplementation(projects.ktlintTest) } - -// TODO: Remove in release after ktlint 1.0.1 -publishing { - publications { - create("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 -} diff --git a/ktlint-cli-reporter-checkstyle/build.gradle.kts b/ktlint-cli-reporter-checkstyle/build.gradle.kts index 3c2af8a929..589761a8c4 100644 --- a/ktlint-cli-reporter-checkstyle/build.gradle.kts +++ b/ktlint-cli-reporter-checkstyle/build.gradle.kts @@ -7,64 +7,3 @@ dependencies { testImplementation(projects.ktlintTest) } - -// TODO: Remove in release after ktlint 1.0.1 -publishing { - publications { - create("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 -} diff --git a/ktlint-cli-reporter-core/build.gradle.kts b/ktlint-cli-reporter-core/build.gradle.kts index 6308cabf42..b3bf67cc5b 100644 --- a/ktlint-cli-reporter-core/build.gradle.kts +++ b/ktlint-cli-reporter-core/build.gradle.kts @@ -1,64 +1,3 @@ plugins { id("ktlint-publication-library") } - -// TODO: Remove in release after ktlint 1.0.1 -publishing { - publications { - create("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 -} diff --git a/ktlint-cli-reporter-format/build.gradle.kts b/ktlint-cli-reporter-format/build.gradle.kts index 80520cc365..589761a8c4 100644 --- a/ktlint-cli-reporter-format/build.gradle.kts +++ b/ktlint-cli-reporter-format/build.gradle.kts @@ -1,5 +1,3 @@ -import java.net.URI - plugins { id("ktlint-publication-library") } @@ -9,78 +7,3 @@ dependencies { testImplementation(projects.ktlintTest) } - -// TODO: Remove in release after ktlint 1.0.1 -publishing { - publications { - create("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 -} diff --git a/ktlint-cli-reporter-html/build.gradle.kts b/ktlint-cli-reporter-html/build.gradle.kts index b2c67bfdff..589761a8c4 100644 --- a/ktlint-cli-reporter-html/build.gradle.kts +++ b/ktlint-cli-reporter-html/build.gradle.kts @@ -7,64 +7,3 @@ dependencies { testImplementation(projects.ktlintTest) } - -// TODO: Remove in release after ktlint 1.0.1 -publishing { - publications { - create("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 -} diff --git a/ktlint-cli-reporter-json/build.gradle.kts b/ktlint-cli-reporter-json/build.gradle.kts index 23f044285b..589761a8c4 100644 --- a/ktlint-cli-reporter-json/build.gradle.kts +++ b/ktlint-cli-reporter-json/build.gradle.kts @@ -7,64 +7,3 @@ dependencies { testImplementation(projects.ktlintTest) } - -// TODO: Remove in release after ktlint 1.0.1 -publishing { - publications { - create("relocation-ktlint-cli-reporter-json") { - pom { - // Old artifact coordinates - groupId = "com.pinterest.ktlint" - artifactId = "ktlint-reporter-json" - 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-json") - 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-json"]) - - isRequired = true -} diff --git a/ktlint-cli-reporter-plain-summary/build.gradle.kts b/ktlint-cli-reporter-plain-summary/build.gradle.kts index a217b0e7e9..589761a8c4 100644 --- a/ktlint-cli-reporter-plain-summary/build.gradle.kts +++ b/ktlint-cli-reporter-plain-summary/build.gradle.kts @@ -7,64 +7,3 @@ dependencies { testImplementation(projects.ktlintTest) } - -// TODO: Remove in release after ktlint 1.0.1 -publishing { - publications { - create("relocation-ktlint-cli-reporter-plain-summary") { - pom { - // Old artifact coordinates - groupId = "com.pinterest.ktlint" - artifactId = "ktlint-reporter-plain-summary" - 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-plain-summary") - 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-plain-summary"]) - - isRequired = true -} diff --git a/ktlint-cli-reporter-plain/build.gradle.kts b/ktlint-cli-reporter-plain/build.gradle.kts index 7aac693d1c..589761a8c4 100644 --- a/ktlint-cli-reporter-plain/build.gradle.kts +++ b/ktlint-cli-reporter-plain/build.gradle.kts @@ -7,64 +7,3 @@ dependencies { testImplementation(projects.ktlintTest) } - -// TODO: Remove in release after ktlint 1.0.1 -publishing { - publications { - create("relocation-ktlint-cli-reporter-plain") { - pom { - // Old artifact coordinates - groupId = "com.pinterest.ktlint" - artifactId = "ktlint-reporter-plain" - 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-plain") - 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-plain"]) - - isRequired = true -} diff --git a/ktlint-cli-reporter-sarif/build.gradle.kts b/ktlint-cli-reporter-sarif/build.gradle.kts index e94bcb26c4..d50bd55db9 100644 --- a/ktlint-cli-reporter-sarif/build.gradle.kts +++ b/ktlint-cli-reporter-sarif/build.gradle.kts @@ -8,64 +8,3 @@ dependencies { testImplementation(projects.ktlintTest) } - -// TODO: Remove in release after ktlint 1.0.1 -publishing { - publications { - create("relocation-ktlint-cli-reporter-sarif") { - pom { - // Old artifact coordinates - groupId = "com.pinterest.ktlint" - artifactId = "ktlint-reporter-sarif" - 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-sarif") - 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-sarif"]) - - isRequired = true -} diff --git a/ktlint-cli/build.gradle.kts b/ktlint-cli/build.gradle.kts index c1b4bfd3e5..5d39720780 100644 --- a/ktlint-cli/build.gradle.kts +++ b/ktlint-cli/build.gradle.kts @@ -172,64 +172,3 @@ sdkman { url = "https://github.com/pinterest/ktlint/releases/download/$sdkmanVersion/ktlint-$sdkmanVersion.zip" hashtag = "ktlint" } - -// TODO: Remove in release after ktlint 1.0.1 -publishing { - publications { - create("relocation-ktlint-cli") { - pom { - // Old artifact coordinates ktlint-cli - groupId = "com.pinterest" - artifactId = "ktlint" - 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 - groupId.set("com.pinterest.ktlint") - artifactId.set("ktlint-cli") - version.set("1.0.0") - message.set("groupId and artifactId have 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"]) - - isRequired = true -}