File tree 5 files changed +33
-9
lines changed
5 files changed +33
-9
lines changed Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ branchProtectionRules:
40
40
- " dependencies (11, java-pubsub)"
41
41
- " flatten-plugin-check"
42
42
- " build (8, java-bigquery, test)"
43
- - " build (8, java-bigquery, lint)"
44
43
- " build (8, java-bigquery, clirr)"
45
44
- " build (8, java-bigtable, javadoc)"
46
45
- " build (11, java-bigquery, test)"
47
- - " build (11, java-bigquery, lint)"
48
46
- " build (11, java-bigquery, clirr)"
49
47
- " build (11, java-bigtable, javadoc)"
48
+ - " lint (17, java-bigquery, lint)"
49
+ - " lint (21, java-bigquery, lint)"
50
50
- " javadoc-with-doclet (java-bigtable)"
51
51
- " cla/google"
52
52
- " graalvm-presubmit-shared-config-a (java-graalvm-ci-prod)"
Original file line number Diff line number Diff line change 20
20
- java-bigtable
21
21
job-type :
22
22
- test # maven-surefire-plugin
23
- - lint # fmt-maven-plugin and google-java-format
24
23
- clirr # clirr-maven-plugin
25
24
- javadoc # maven-javadoc-plugin
26
25
- javadoc-with-doclet # test javadoc generation with doclet
34
33
- run : sudo apt-get update -y
35
34
- run : sudo apt-get install libxml2-utils
36
35
- run : .kokoro/client-library-check.sh ${{matrix.repo}} ${{matrix.job-type}}
36
+ lint :
37
+ runs-on : ubuntu-latest
38
+ strategy :
39
+ fail-fast : false
40
+ matrix :
41
+ java : [17, 21]
42
+ repo :
43
+ - java-bigquery
44
+ - java-bigtable
45
+ job-type :
46
+ - lint # fmt-maven-plugin and google-java-format
47
+ steps :
48
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
49
+ - uses : actions/setup-java@v4
50
+ with :
51
+ distribution : zulu
52
+ java-version : ${{matrix.java}}
53
+ - run : java -version
54
+ - run : sudo apt-get update -y
55
+ - run : sudo apt-get install libxml2-utils
56
+ - run : .kokoro/client-library-check.sh ${{matrix.repo}} ${{matrix.job-type}}
37
57
javadoc-with-doclet :
38
58
runs-on : ubuntu-latest
39
59
strategy :
Original file line number Diff line number Diff line change @@ -155,6 +155,10 @@ flatten-plugin)
155
155
popd
156
156
;;
157
157
* )
158
+ # Here we replace the com.coveo fmt plugin with the spotify version.
159
+ # This `sed` won't be needed once downstream repositories update
160
+ # `.kokoro/build.sh` to use the `com.spotify.fmt` group ID.
161
+ sed -i ' s/com.coveo:fmt-maven-plugin/com.spotify.fmt:fmt-maven-plugin/' .kokoro/build.sh
158
162
# This reads the JOB_TYPE environmental variable
159
163
.kokoro/build.sh
160
164
RETURN_CODE=$?
Original file line number Diff line number Diff line change @@ -42,14 +42,14 @@ cp settings.xml "${HOME}/.m2"
42
42
git clone " https://github.com/googleapis/sdk-platform-java" --depth=1
43
43
44
44
# Update the shared-config version in showcase
45
- pushd sdk-platform-java/showcase
45
+ pushd sdk-platform-java/java- showcase
46
46
modify_shared_config
47
47
popd
48
48
49
49
pushd sdk-platform-java
50
50
mvn -B -ntp install --projects ' !gapic-generator-java' -Dcheckstyle.skip -Dfmt.skip -DskipTests
51
51
popd
52
- pushd sdk-platform-java/showcase/gapic-showcase
52
+ pushd sdk-platform-java/java- showcase/gapic-showcase
53
53
SHOWCASE_VERSION=$( mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)
54
54
popd
55
55
@@ -62,7 +62,7 @@ tar -xf showcase-*
62
62
popd
63
63
64
64
# Run showcase tests with `native` profile
65
- pushd sdk-platform-java/showcase
65
+ pushd sdk-platform-java/java- showcase
66
66
mvn test -Pnative,-showcase -Denforcer.skip=true -ntp -B
67
67
popd
68
68
Original file line number Diff line number Diff line change 28
28
<skipITs >true</skipITs >
29
29
<auto-value .version>1.11.0</auto-value .version>
30
30
<docRoot >/java/docs/reference/</docRoot >
31
- <google-java-format .version>1.7 </google-java-format .version>
31
+ <google-java-format .version>1.25.2 </google-java-format .version>
32
32
</properties >
33
33
34
34
<build >
169
169
<version >2.8</version >
170
170
</plugin >
171
171
<plugin >
172
- <groupId >com.coveo </groupId >
172
+ <groupId >com.spotify.fmt </groupId >
173
173
<artifactId >fmt-maven-plugin</artifactId >
174
- <version >2.9 </version >
174
+ <version >2.25 </version >
175
175
<configuration >
176
176
<style >google</style >
177
177
<verbose >true</verbose >
You can’t perform that action at this time.
0 commit comments