Skip to content

Commit

Permalink
build: test against sonarqube 9.9 (#715)
Browse files Browse the repository at this point in the history
upgraded maven builds to be compatible with java 17
  • Loading branch information
gtoison authored Feb 8, 2023
1 parent 44ddeeb commit ea4265b
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 18 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,32 @@ jobs:
SONAR_PLUGIN_API_VERSION: 7.9
SONAR_PLUGIN_API_GROUPID: org.sonarsource.sonarqube
SONAR_JAVA_VERSION: 5.13.1.18282
SONAR_SERVER_JAVA_VERSION: 11
# current LTS version
- SONAR_SERVER_VERSION: 8.9.9.56886
SONAR_PLUGIN_API_VERSION: 8.9.9.56886
SONAR_PLUGIN_API_GROUPID: org.sonarsource.sonarqube
SONAR_JAVA_VERSION: 6.15.1.26025
SONAR_SERVER_JAVA_VERSION: 11
- SONAR_SERVER_VERSION: 9.7.0.61563
SONAR_PLUGIN_API_VERSION: 9.11.0.290
SONAR_PLUGIN_API_GROUPID: org.sonarsource.api.plugin
SONAR_JAVA_VERSION: 7.14.0.30229
- SONAR_SERVER_VERSION: 9.8.0.63668
SONAR_PLUGIN_API_VERSION: 9.13.0.360
SONAR_SERVER_JAVA_VERSION: 11
# 9.9 LTS
- SONAR_SERVER_VERSION: 9.9.0.65466
SONAR_PLUGIN_API_VERSION: 9.14.0.375
SONAR_PLUGIN_API_GROUPID: org.sonarsource.api.plugin
SONAR_JAVA_VERSION: 7.15.0.30507
SONAR_JAVA_VERSION: 7.16.0.30901
SONAR_SERVER_JAVA_VERSION: 17
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 11
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 11
java-version: ${{ matrix.SONAR_SERVER_JAVA_VERSION }}
distribution: temurin
cache: 'maven'
- name: Cache SonarCloud packages
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.6</version>
<version>0.8.8</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/projects/findbugs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>6</source>
<target>6</target>
<source>7</source>
<target>7</target>
</configuration>
</plugin>
</plugins>
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/projects/jspc-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>6</source>
<target>6</target>
<source>7</source>
<target>7</target>
</configuration>
</plugin>

Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/projects/jspc-sling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>6</source>
<target>6</target>
<source>7</source>
<target>7</target>
</configuration>
</plugin>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>6</source>
<target>6</target>
<source>7</source>
<target>7</target>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>6</source>
<target>6</target>
<source>7</source>
<target>7</target>
</configuration>
</plugin>
</plugins>
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/projects/simple/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>6</source>
<target>6</target>
<source>7</source>
<target>7</target>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit ea4265b

Please sign in to comment.