Remove dependency on https://repo.spring.io/plugins-release
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:
12
.github/actions/build/action.yml
vendored
12
.github/actions/build/action.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
2
.github/workflows/build-pull-request.yml
vendored
2
.github/workflows/build-pull-request.yml
vendored
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user