Skip to content

Commit

Permalink
Upgrade build to Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-strzelecki-vml committed Oct 30, 2024
1 parent 9c93be1 commit 9a28d2e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

strategy:
matrix:
java-version: [ 11 ]
java-version: [ 17 ]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-instalation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: 'adopt'
cache: maven
- run: mvn clean package
Expand Down
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@

<properties>
<htl.version>1.1.2-1.4.0</htl.version>
<sonar.html.version>3.15.0.5107</sonar.html.version>
<sonar.java.plugin>7.30.1.34514</sonar.java.plugin>
<sonar.html.version>3.16.0.5274</sonar.html.version>
<sonar.java.plugin>8.5.0.37199</sonar.java.plugin>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sonar.pluginApiVersion>10.11.0.2468</sonar.pluginApiVersion>
<sonar.pluginApiImplVersion>10.3.0.82913</sonar.pluginApiImplVersion>
<sonar.pluginApiImplVersion>10.7.0.96327</sonar.pluginApiImplVersion>
<sonar.testingHarnessVersion>10.7.0.96327</sonar.testingHarnessVersion>
<sonar.javaCheksTestkitVersion>7.30.1.34514</sonar.javaCheksTestkitVersion>
<jdk.min.version>11</jdk.min.version>
<sonar.javaCheksTestkitVersion>8.5.0.37199</sonar.javaCheksTestkitVersion>
<jdk.min.version>17</jdk.min.version>
<sonar.sources>src/main/java</sonar.sources>
<coveralls.repo.token>4rVf3NGV0jyQ3EGrc8L86oEDoHWm6MgDD</coveralls.repo.token>
<tagName>v${project.version}</tagName>
Expand Down Expand Up @@ -341,7 +341,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<release>11</release>
<release>17</release>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private void givenMethodInvocationTree(String codeToParse) {

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

}

0 comments on commit 9a28d2e

Please sign in to comment.