File tree 4 files changed +26
-3
lines changed
4 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 37
37
- name : Download Java formatter
38
38
if : inputs.type != 'minimal'
39
39
shell : bash
40
- run : curl --retry 3 -L "https://github.com/google/google-java-format/releases/download/v1.15 .0/google-java-format-1.15 .0-all-deps.jar" > /tmp/java-formatter.jar
40
+ run : curl --retry 3 -L "https://github.com/google/google-java-format/releases/download/v1.13 .0/google-java-format-1.13 .0-all-deps.jar" > /tmp/java-formatter.jar
41
41
42
42
# JavaScript for monorepo and tooling
43
43
- name : Install Node
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ RUN apk -U add openjdk11 jq bash perl build-base python3
8
8
ENV JAVA_HOME=/usr/lib/jvm/default-jvm
9
9
10
10
# Java formatter
11
- ADD https://github.com/google/google-java-format/releases/download/v1.15 .0/google-java-format-1.15 .0-all-deps.jar /tmp/java-formatter.jar
11
+ ADD https://github.com/google/google-java-format/releases/download/v1.13 .0/google-java-format-1.13 .0-all-deps.jar /tmp/java-formatter.jar
12
12
13
13
# PHP dependencies
14
14
RUN apk add -U composer php8 php8-tokenizer php8-dom php8-xml php8-xmlwriter
Original file line number Diff line number Diff line change 61
61
],
62
62
"depNameTemplate" : " google/google-java-format" ,
63
63
"datasourceTemplate" : " github-releases"
64
+ },
65
+ {
66
+ "description" : " Update java packages in mustache files" ,
67
+ "fileMatch" : " build.mustache" ,
68
+ "matchStrings" : [
69
+ " testImplementation '(?<depName>.*):(?<currentValue>\\ d.*?)'"
70
+ ],
71
+ "datasourceTemplate" : " maven"
72
+ },
73
+ {
74
+ "description" : " Update yarn version (won't work because we need to download the script but gives an alert at least)" ,
75
+ "fileMatch" : " .yarnrc.yml" ,
76
+ "matchStrings" : [
77
+ " yarnPath: .yarn/releases/yarn-(?<currentValue>.*?).cjs"
78
+ ],
79
+ "depNameTemplate" : " yarnpkg/berry" ,
80
+ "datasourceTemplate" : " github-releases"
64
81
}
65
82
],
66
83
"ignorePaths" : [
Original file line number Diff line number Diff line change @@ -16,7 +16,13 @@ export async function formatter(
16
16
cmd = `yarn eslint --ext=ts,json ${ folder } --fix --no-error-on-unmatched-pattern` ;
17
17
break ;
18
18
case 'java' :
19
- cmd = `find ${ folder } -type f -name "*.java" | xargs java -jar /tmp/java-formatter.jar -r && yarn prettier --write ${ folder } ` ;
19
+ cmd = `find ${ folder } -type f -name "*.java" | xargs java --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
20
+ --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
21
+ --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
22
+ --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
23
+ --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
24
+ -jar /tmp/java-formatter.jar -r \
25
+ && yarn prettier --write ${ folder } ` ;
20
26
break ;
21
27
case 'php' :
22
28
await runComposerUpdate ( verbose ) ;
You can’t perform that action at this time.
0 commit comments