@@ -41,29 +41,17 @@ jobs:
41
41
- name : Setup Java
42
42
uses : actions/setup-java@v2
43
43
with :
44
- java-version : 17
44
+ java-version : 21
45
45
distribution : ' zulu'
46
46
47
47
- name : Fetch Sources
48
48
uses : actions/checkout@v2
49
49
50
- - name : Setup Gradle Dependencies Cache
51
- uses : actions/cache@v2.1.4
52
- with :
53
- path : ~/.gradle/caches
54
- key : ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
55
-
56
- - name : Setup Gradle Wrapper Cache
57
- uses : actions/cache@v2.1.4
58
- with :
59
- path : ~/.gradle/wrapper
60
- key : ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
61
-
62
50
- name : Run Linters and Test
63
51
run : ./gradlew check
64
52
65
53
- name : Verify Plugin
66
- run : ./gradlew verifyPlugin
54
+ run : ./gradlew runPluginVerifier
67
55
68
56
# Build plugin with buildPlugin Gradle task and provide the artifact for the next workflow jobs
69
57
# Requires test job to be passed
@@ -80,37 +68,12 @@ jobs:
80
68
- name : Setup Java
81
69
uses : actions/setup-java@v2
82
70
with :
83
- java-version : 17
71
+ java-version : 21
84
72
distribution : ' zulu'
85
73
86
74
- name : Fetch Sources
87
75
uses : actions/checkout@v2
88
76
89
- - name : Setup Gradle Dependencies Cache
90
- uses : actions/cache@v2.1.4
91
- with :
92
- path : ~/.gradle/caches
93
- key : ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
94
-
95
- - name : Setup Gradle Wrapper Cache
96
- uses : actions/cache@v2.1.4
97
- with :
98
- path : ~/.gradle/wrapper
99
- key : ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
100
-
101
- - name : Set environment variables
102
- id : properties
103
- shell : bash
104
- run : |
105
- PROPERTIES="$(./gradlew properties --console=plain -q)"
106
- VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
107
- NAME="$(echo "$PROPERTIES" | grep "^pluginName_:" | cut -f2- -d ' ')"
108
- ARTIFACT="${NAME}-${VERSION}.zip"
109
-
110
- echo "::set-output name=version::$VERSION"
111
- echo "::set-output name=name::$NAME"
112
- echo "::set-output name=artifact::$ARTIFACT"
113
-
114
77
- name : Build Plugin
115
78
run : ./gradlew buildPlugin
116
79
0 commit comments