File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 11
11
GRADLE_ENTERPRISE_CACHE_USER : ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
12
12
GRADLE_ENTERPRISE_CACHE_PASSWORD : ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
13
13
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY : ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
14
+ ARTIFACTORY_USERNAME : ${{ secrets.ARTIFACTORY_USERNAME }}
15
+ ARTIFACTORY_PASSWORD : ${{ secrets.ARTIFACTORY_PASSWORD }}
14
16
15
17
jobs :
16
18
build :
37
39
export GRADLE_ENTERPRISE_CACHE_USERNAME="$GRADLE_ENTERPRISE_CACHE_USER"
38
40
export GRADLE_ENTERPRISE_CACHE_PASSWORD="$GRADLE_ENTERPRISE_CACHE_PASSWORD"
39
41
export GRADLE_ENTERPRISE_ACCESS_KEY="$GRADLE_ENTERPRISE_SECRET_ACCESS_KEY"
40
- ./gradlew clean build --no-daemon --stacktrace
42
+ ./gradlew clean build -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD" - -no-daemon --stacktrace
41
43
artifacts :
42
44
name : Deploy Artifacts
43
45
needs : [build]
Original file line number Diff line number Diff line change @@ -10,11 +10,19 @@ buildscript {
10
10
repositories {
11
11
gradlePluginPortal()
12
12
maven { url ' https://repo.spring.io/plugins-release/' }
13
- maven { url ' https://repo.spring.io/plugins-snapshot' }
13
+ maven {
14
+ url = ' https://repo.spring.io/plugins-snapshot'
15
+ if (project. hasProperty(' artifactoryUsername' )) {
16
+ credentials {
17
+ username " $artifactoryUsername "
18
+ password " $artifactoryPassword "
19
+ }
20
+ }
21
+ }
14
22
}
15
23
16
24
dependencies {
17
- classpath ' io.spring.gradle:spring-build-conventions:0.0.34 .RELEASE'
25
+ classpath ' io.spring.gradle:spring-build-conventions:0.0.35 .RELEASE'
18
26
classpath " org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion "
19
27
}
20
28
}
You can’t perform that action at this time.
0 commit comments