Merge branch '6.1.x'
This commit is contained in:
commit
bd48fdf744
|
@ -40,6 +40,8 @@ jobs:
|
||||||
# Extract version from gradle.properties
|
# Extract version from gradle.properties
|
||||||
version=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}')
|
version=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}')
|
||||||
echo "project_version=$version" >>$GITHUB_OUTPUT
|
echo "project_version=$version" >>$GITHUB_OUTPUT
|
||||||
|
samples_branch=$(cat gradle.properties | grep "samplesBranch=" | awk -F'=' '{print $2}')
|
||||||
|
echo "samples_branch=$samples_branch" >>$GITHUB_OUTPUT
|
||||||
build_jdk_17:
|
build_jdk_17:
|
||||||
name: Build JDK 17
|
name: Build JDK 17
|
||||||
needs: [prerequisites]
|
needs: [prerequisites]
|
||||||
|
@ -108,12 +110,13 @@ jobs:
|
||||||
LOCAL_REPOSITORY_PATH: ${{ github.workspace }}/build/publications/repos
|
LOCAL_REPOSITORY_PATH: ${{ github.workspace }}/build/publications/repos
|
||||||
SAMPLES_DIR: ../spring-security-samples
|
SAMPLES_DIR: ../spring-security-samples
|
||||||
VERSION: ${{ needs.prerequisites.outputs.project_version }}
|
VERSION: ${{ needs.prerequisites.outputs.project_version }}
|
||||||
|
SAMPLES_BRANCH: ${{ needs.prerequisites.outputs.samples_branch }}
|
||||||
run: |
|
run: |
|
||||||
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
|
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
|
||||||
export GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD"
|
export GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD"
|
||||||
export GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY"
|
export GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY"
|
||||||
./gradlew publishMavenJavaPublicationToLocalRepository
|
./gradlew publishMavenJavaPublicationToLocalRepository
|
||||||
./gradlew cloneSamples -PcloneOutputDirectory="$SAMPLES_DIR"
|
./gradlew cloneRepository -PrepositoryName="spring-projects/spring-security-samples" -Pref="$SAMPLES_BRANCH" -PcloneOutputDirectory="$SAMPLES_DIR"
|
||||||
./gradlew --project-dir "$SAMPLES_DIR" --init-script spring-security-ci.gradle -PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" -PspringSecurityVersion="$VERSION" :runAllTests
|
./gradlew --project-dir "$SAMPLES_DIR" --init-script spring-security-ci.gradle -PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" -PspringSecurityVersion="$VERSION" :runAllTests
|
||||||
check_tangles:
|
check_tangles:
|
||||||
name: Check for Package Tangles
|
name: Check for Package Tangles
|
||||||
|
|
|
@ -154,10 +154,11 @@ nohttp {
|
||||||
source.builtBy(project(':spring-security-config').tasks.withType(RncToXsd))
|
source.builtBy(project(':spring-security-config').tasks.withType(RncToXsd))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register('cloneSamples', IncludeRepoTask) {
|
tasks.register('cloneRepository', IncludeRepoTask) {
|
||||||
repository = 'spring-projects/spring-security-samples'
|
repository = project.getProperties().get("repositoryName")
|
||||||
ref = samplesBranch
|
ref = project.getProperties().get("ref")
|
||||||
outputDirectory = project.hasProperty("cloneOutputDirectory") ? project.file("$cloneOutputDirectory") : project.file("build/samples")
|
var defaultDirectory = project.file("build/tmp/clone")
|
||||||
|
outputDirectory = project.hasProperty("cloneOutputDirectory") ? project.file("$cloneOutputDirectory") : defaultDirectory
|
||||||
}
|
}
|
||||||
|
|
||||||
s101 {
|
s101 {
|
||||||
|
|
Loading…
Reference in New Issue