It turns out the repository is required for a plugin that the project
does not use. This commit removes the declaration and adapt CI
accordingly.

Closes gh-1813
This commit is contained in:
Stéphane Nicoll
2024-10-11 11:31:03 +02:00
parent 6151be43cd
commit bedb9493d1
6 changed files with 1 additions and 28 deletions

View File

@@ -20,12 +20,6 @@ inputs:
description: 'Java version to compile and test with'
required: false
default: '17'
opensource-repository-password:
description: 'Password for authentication with the open-source repository'
required: false
opensource-repository-username:
description: 'Username for authentication with the open-source repository'
required: false
publish:
description: 'Whether to publish artifacts ready for deployment to Artifactory'
required: false
@@ -52,17 +46,11 @@ runs:
id: build
if: ${{ inputs.publish == 'false' }}
shell: bash
env:
SPRING_REPOSITORY_PASSWORD: ${{ inputs.opensource-repository-password }}
SPRING_REPOSITORY_USERNAME: ${{ inputs.opensource-repository-username }}
run: ./gradlew check
- name: Publish
id: publish
if: ${{ inputs.publish == 'true' }}
shell: bash
env:
SPRING_REPOSITORY_PASSWORD: ${{ inputs.opensource-repository-password }}
SPRING_REPOSITORY_USERNAME: ${{ inputs.opensource-repository-username }}
run: ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository build dist publishAllPublicationsToDeploymentRepository
- name: Read Version From gradle.properties
id: read-version

View File

@@ -19,8 +19,6 @@ jobs:
uses: ./.github/actions/build
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
opensource-repository-password: ${{ secrets.ARTIFACTORY_PASSWORD }}
opensource-repository-username: ${{ secrets.ARTIFACTORY_USERNAME }}
publish: true
- name: Deploy
uses: spring-io/artifactory-deploy-action@26bbe925a75f4f863e1e529e85be2d0093cac116 # v0.0.1

View File

@@ -22,8 +22,6 @@ jobs:
env:
CI: 'true'
GRADLE_ENTERPRISE_URL: 'https://ge.spring.io'
SPRING_REPOSITORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
SPRING_REPOSITORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
run: ./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --no-parallel --continue build
- name: Print JVM Thread Dumps When Cancelled
if: cancelled()

View File

@@ -69,9 +69,6 @@ Compile and test, build all jars, distribution zips and docs:
./gradlew build
````
Access to https://repo.spring.io/plugins-release requires authetication.
The `SPRING_REPOSITORY_USERNAME` and `SPRING_REPOSITORY_PASSWORD` environment variables should be exposed to the build.
Install into your local Maven repository:
````
./gradlew install

View File

@@ -1,7 +1,6 @@
plugins {
id 'io.spring.dependency-management' version '1.1.3' apply false
id 'org.asciidoctor.jvm.pdf' version '3.3.2'
id 'org.asciidoctor.jvm.gems' version '3.3.2'
id 'org.asciidoctor.jvm.convert' version '3.3.2'
id 'de.undercouch.download' version '4.1.2'
}

View File

@@ -1,14 +1,7 @@
pluginManagement {
repositories {
gradlePluginPortal()
maven {
name "spring-plugins"
url "https://repo.spring.io/plugins-release/"
credentials {
username System.env.SPRING_REPOSITORY_USERNAME
password System.env.SPRING_REPOSITORY_PASSWORD
}
}
mavenCentral()
}
}