Skip to content

Commit 9a28d2e

Browse files
Upgrade build to Java 17
1 parent 9c93be1 commit 9a28d2e

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
strategy:
3030
matrix:
31-
java-version: [ 11 ]
31+
java-version: [ 17 ]
3232

3333
steps:
3434
- uses: actions/checkout@v4

.github/workflows/test-instalation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
uses: actions/checkout@v4
4242
- uses: actions/setup-java@v4
4343
with:
44-
java-version: 11
44+
java-version: 17
4545
distribution: 'adopt'
4646
cache: maven
4747
- run: mvn clean package

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@
104104

105105
<properties>
106106
<htl.version>1.1.2-1.4.0</htl.version>
107-
<sonar.html.version>3.15.0.5107</sonar.html.version>
108-
<sonar.java.plugin>7.30.1.34514</sonar.java.plugin>
107+
<sonar.html.version>3.16.0.5274</sonar.html.version>
108+
<sonar.java.plugin>8.5.0.37199</sonar.java.plugin>
109109
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
110110
<sonar.pluginApiVersion>10.11.0.2468</sonar.pluginApiVersion>
111-
<sonar.pluginApiImplVersion>10.3.0.82913</sonar.pluginApiImplVersion>
111+
<sonar.pluginApiImplVersion>10.7.0.96327</sonar.pluginApiImplVersion>
112112
<sonar.testingHarnessVersion>10.7.0.96327</sonar.testingHarnessVersion>
113-
<sonar.javaCheksTestkitVersion>7.30.1.34514</sonar.javaCheksTestkitVersion>
114-
<jdk.min.version>11</jdk.min.version>
113+
<sonar.javaCheksTestkitVersion>8.5.0.37199</sonar.javaCheksTestkitVersion>
114+
<jdk.min.version>17</jdk.min.version>
115115
<sonar.sources>src/main/java</sonar.sources>
116116
<coveralls.repo.token>4rVf3NGV0jyQ3EGrc8L86oEDoHWm6MgDD</coveralls.repo.token>
117117
<tagName>v${project.version}</tagName>
@@ -341,7 +341,7 @@
341341
<artifactId>maven-compiler-plugin</artifactId>
342342
<version>3.13.0</version>
343343
<configuration>
344-
<release>11</release>
344+
<release>17</release>
345345
</configuration>
346346
</plugin>
347347
<plugin>

src/test/java/com/vml/aemrules/matcher/MethodMatcherTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private void givenMethodInvocationTree(String codeToParse) {
154154

155155
private CompilationUnitTree parse(String source) {
156156
List<File> classpath = Arrays.asList(new File(TEST_CLASSES_FILEPATH), new File(CLASSES_FILEPATH));
157-
return JParser.parse(JParserConfig.Mode.FILE_BY_FILE.create(new JavaVersionImpl(11), classpath).astParser(), JAVA_VERSION, UNIT_NAME, source);
157+
return JParser.parse(JParserConfig.Mode.FILE_BY_FILE.create(new JavaVersionImpl(17), classpath).astParser(), JAVA_VERSION, UNIT_NAME, source);
158158
}
159159

160160
}

0 commit comments

Comments
 (0)