From 8e9a4100c3432e7df7fd0cffb08f4661f39169cf Mon Sep 17 00:00:00 2001 From: James Daugherty Date: Tue, 3 Dec 2024 13:53:09 -0500 Subject: [PATCH] switch to grails-publish --- .github/workflows/gradle.yml | 5 +++-- .github/workflows/release.yml | 7 ++++--- build.gradle | 6 ------ gradle.properties | 2 +- spring-security-rest-testapp-profile/gradle.properties | 2 +- 5 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index f8630063..9bfea40b 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -45,8 +45,9 @@ jobs: uses: gradle/actions/setup-gradle@v3 env: GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} - ORG_GRADLE_PROJECT_artifactoryPublishUsername: ${{ secrets.ARTIFACTORY_USERNAME }} - ORG_GRADLE_PROJECT_artifactoryPublishPassword: ${{ secrets.ARTIFACTORY_PASSWORD }} + MAVEN_PUBLISH_USERNAME: ${{ secrets.MAVEN_PUBLISH_USERNAME }} + MAVEN_PUBLISH_PASSWORD: ${{ secrets.MAVEN_PUBLISH_PASSWORD }} + MAVEN_PUBLISH_URL: ${{ secrets.MAVEN_PUBLISH_SNAPSHOT_URL }} with: arguments: | -Dorg.gradle.internal.publish.checksums.insecure=true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2bdf4fc8..f79b8554 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,9 +35,10 @@ jobs: id: publish uses: gradle/gradle-build-action@v3 env: - ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} - ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} - ORG_GRADLE_PROJECT_sonatypeStagingProfileId: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} + NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }} + NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PUBLISH_PASSWORD }} + NEXUS_PUBLISH_NEXUS_URL: ${{ secrets.NEXUS_PUBLISH_RELEASE_URL }} + NEXUS_PUBLISH_STAGING_PROFILE_ID: ${{ secrets.NEXUS_PUBLISH_STAGING_PROFILE_ID }} SIGNING_KEY: ${{ secrets.SIGNING_KEY }} SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} SECRING_FILE: ${{ secrets.SECRING_FILE }} diff --git a/build.gradle b/build.gradle index 73ad423e..81c301f9 100644 --- a/build.gradle +++ b/build.gradle @@ -1,9 +1,5 @@ -import io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository -import org.grails.gradle.plugin.publishing.RepositoryType - buildscript { repositories { - mavenLocal() maven { url "https://plugins.gradle.org/m2/" } maven { url "https://repo.grails.org/grails/core" } } @@ -57,7 +53,6 @@ subprojects { Project project -> ext.set('isProfile', project.name.endsWith('-profile')) repositories { - mavenLocal() mavenCentral() maven { url "https://repo.grails.org/grails/core" } } @@ -123,7 +118,6 @@ subprojects { Project project -> title = "Spring Security REST plugin" desc = "Grails plugin to implement token-based, RESTful authentication using Spring Security" developers = [alvarosanchez:"Alvaro Sanchez-Mariscal", jameskleeh: "James Kleeh", jdaugherty: "James Daugherty"] - snapshotRepoType = RepositoryType.ARTIFACTORY } } } diff --git a/gradle.properties b/gradle.properties index d0bf91f4..aa5952fa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,4 @@ gradlePublishPlugin=2.0.0 springSecurityCoreVersion=7.0.0-SNAPSHOT pac4jVersion=6.0.6 jackson.version=2.18.0 -artifactoryPublishUrl=https://repo.grails.org/grails/libs-snapshots-local \ No newline at end of file +mavenPublishUrl=https://repo.grails.org/grails/plugins3-snapshots-local \ No newline at end of file diff --git a/spring-security-rest-testapp-profile/gradle.properties b/spring-security-rest-testapp-profile/gradle.properties index a4c724b8..20d9eaaa 100644 --- a/spring-security-rest-testapp-profile/gradle.properties +++ b/spring-security-rest-testapp-profile/gradle.properties @@ -1 +1 @@ -artifactoryPublishUrl=https://repo.grails.org/grails/plugins3-snapshots-local \ No newline at end of file +mavenPublishUrl=https://repo.grails.org/grails/libs-snapshots-local \ No newline at end of file