File tree 7 files changed +26
-22
lines changed
7 files changed +26
-22
lines changed Original file line number Diff line number Diff line change 8
8
build :
9
9
strategy :
10
10
matrix :
11
- java-version : [ 8, 11, 17 ]
11
+ java-version : [ 11, 17, 21 ]
12
12
os : [ubuntu-latest, macos-latest, windows-latest]
13
13
runs-on : ${{ matrix.os }}
14
14
steps :
15
- - uses : actions/checkout@v3
15
+ - uses : actions/checkout@v4
16
16
- name : Set up JDK
17
- uses : actions/setup-java@v3
17
+ uses : actions/setup-java@v4
18
18
with :
19
19
java-version : ${{ matrix.java-version }}
20
20
distribution : ' temurin'
21
21
cache : ' gradle'
22
22
- name : Validate Gradle wrapper
23
- uses : gradle/wrapper-validation-action@v1
23
+ uses : gradle/actions/ wrapper-validation@v3
24
24
- name : Build with Gradle
25
- run : ./gradlew build
25
+ run : ./gradlew build
Original file line number Diff line number Diff line change 9
9
check-tag :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - uses : actions/checkout@v3
12
+ - uses : actions/checkout@v4
13
13
- name : Regex Match
14
14
id : regex-match
15
15
run : |
@@ -26,19 +26,19 @@ jobs:
26
26
needs : [check-tag]
27
27
runs-on : ubuntu-latest
28
28
steps :
29
- - uses : actions/checkout@v3
29
+ - uses : actions/checkout@v4
30
30
- name : Set up Java
31
- uses : actions/setup-java@v3
31
+ uses : actions/setup-java@v4
32
32
with :
33
- java-version : ' 8 '
33
+ java-version : ' 17 '
34
34
distribution : ' temurin'
35
35
- name : Validate Gradle wrapper
36
- uses :
gradle/wrapper-validation[email protected]
36
+ uses : gradle/actions/ wrapper-validation@v3
37
37
# 发布项目
38
38
- name : Publish
39
39
run : ./gradlew publish
40
40
env :
41
41
SONATYPE_NEXUS_USERNAME : ${{secrets.SONATYPE_NEXUS_USERNAME}}
42
42
SONATYPE_NEXUS_PASSWORD : ${{secrets.SONATYPE_NEXUS_PASSWORD}}
43
43
SIGNING_KEY : ${{secrets.SIGNING_KEY}}
44
- SIGNING_PASSWORD : ${{secrets.SIGNING_PASSWORD}}
44
+ SIGNING_PASSWORD : ${{secrets.SIGNING_PASSWORD}}
Original file line number Diff line number Diff line change 9
9
- ' feat_*'
10
10
- ' fix_*'
11
11
- ' refactor_*'
12
-
12
+
13
13
jobs :
14
14
build :
15
15
name : Build
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v4
19
19
with :
20
20
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
21
21
- name : Set up JDK 17
22
- uses : actions/setup-java@v1
22
+ uses : actions/setup-java@v4
23
23
with :
24
24
java-version : 17
25
+ distribution : ' temurin'
25
26
- name : Cache SonarCloud packages
26
- uses : actions/cache@v1
27
+ uses : actions/cache@v4
27
28
with :
28
29
path : ~/.sonar/cache
29
30
key : ${{ runner.os }}-sonar
30
31
restore-keys : ${{ runner.os }}-sonar
31
32
- name : Cache Gradle packages
32
- uses : actions/cache@v1
33
+ uses : actions/cache@v4
33
34
with :
34
35
path : ~/.gradle/caches
35
36
key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ plugins {
7
7
id " jacoco"
8
8
}
9
9
10
+ sourceCompatibility = JavaVersion . VERSION_1_8
11
+ targetCompatibility = JavaVersion . VERSION_1_8
12
+
10
13
version projectPropVersion
11
14
group projectPropGroup
12
15
compileJava. options. encoding = " UTF-8"
@@ -19,7 +22,7 @@ repositories {
19
22
spotless {
20
23
java {
21
24
removeUnusedImports()
22
- googleJavaFormat(' 1.7 ' )
25
+ googleJavaFormat(' 1.22.0 ' )
23
26
}
24
27
}
25
28
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ dependencies {
21
21
implementation " org.slf4j:slf4j-api:${ slf4jVersion} "
22
22
23
23
testImplementation " junit:junit:${ junitVersion} "
24
- testImplementation " org.mockito:mockito-inline :${ mockitoInlineVersion } "
24
+ testImplementation " org.mockito:mockito-core :${ mockitoCoreVersion } "
25
25
testImplementation " com.squareup.okhttp3:mockwebserver:${ okhttpVersion} "
26
26
testImplementation " org.awaitility:awaitility:${ awaitilityVersion} "
27
27
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ junitVersion=4.13.2
6
6
junit5Version =5.9.1
7
7
okhttpVersion =4.10.0
8
8
gsonVersion =2.9.1
9
- mockitoInlineVersion =4.8.1
9
+ mockitoCoreVersion =5.12.0
10
10
awaitilityVersion =4.2.0
11
- spotlessVersion =6.11 .0
11
+ spotlessVersion =6.25 .0
12
12
shadowVersion =7.1.2
13
- sonarqubeVersion =4 .0.0.2929
13
+ sonarqubeVersion =5 .0.0.4638
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.1.1 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.7 -bin.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments