Skip to content

Commit

Permalink
Try to fix some build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Apr 28, 2023
1 parent cb12571 commit fda1f3f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-jdk11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
cache: maven
- name: Display build environment details
run: mvn --version
- name: Build project against vanilla Error Prone, compile Javadoc
run: mvn -T1C install javadoc:jar -Dsurefire.jdk-toolchain-version=11.0.19
- name: Build project against vanilla Error Prone
run: mvn -T1C install -Dsurefire.jdk-toolchain-version=11.0.19
- name: Build project with self-check against Error Prone fork
run: mvn -T1C clean verify -Perror-prone-fork -Dsurefire.jdk-toolchain-version=11.0.19 -s settings.xml
- name: Remove installed project artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -T1C jacoco:prepare-agent verify jacoco:report sonar:sonar -Dverification.skip -Dsonar.projectKey=PicnicSupermarket_error-prone-support
run: mvn -T1C jacoco:prepare-agent verify jacoco:report sonar:sonar -Dversion.jdk.runtime=17 -Dverification.skip -Dsonar.projectKey=PicnicSupermarket_error-prone-support
19 changes: 10 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@
<version.jabel>1.0.0</version.jabel>
<!-- Though the project targets JDK 11, the code base does use more
recent language constructs, thanks to the Jabel compiler plugin. -->
<version.jdk>11</version.jdk>
<version.jdk.runtime>11</version.jdk.runtime>
<version.jdk.source>17</version.jdk.source>
<version.maven>3.8.7</version.maven>
<version.mockito>5.3.1</version.mockito>
<version.nopen-checker>1.0.1</version.nopen-checker>
Expand Down Expand Up @@ -560,7 +561,7 @@
`provided`, but we'd rather not do that.) -->
<failOnMissingClasses>false</failOnMissingClasses>
<failOnViolation>false</failOnViolation>
<targetVersion>${version.jdk}</targetVersion>
<targetVersion>${version.jdk.runtime}</targetVersion>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -940,8 +941,8 @@
<arg>10000</arg>
</compilerArgs>
<parameters>true</parameters>
<source>${version.jdk}</source>
<target>${version.jdk}</target>
<source>${version.jdk.runtime}</source>
<target>${version.jdk.runtime}</target>
<!-- Erroneously inverted logic... for details, see
https://issues.apache.org/jira/browse/MCOMPILER-209. -->
<useIncrementalCompilation>false</useIncrementalCompilation>
Expand Down Expand Up @@ -1006,15 +1007,15 @@
<banDynamicVersions />-->
<dependencyConvergence />
<enforceBytecodeVersion>
<maxJdkVersion>${version.jdk}</maxJdkVersion>
<maxJdkVersion>${version.jdk.runtime}</maxJdkVersion>
</enforceBytecodeVersion>
<requireEncoding>
<acceptAsciiSubset>true</acceptAsciiSubset>
<encoding>ISO-8859-1</encoding>
<includes>src/main/resources/**/*.properties,src/test/resources/**/*.properties</includes>
</requireEncoding>
<requireJavaVersion>
<version>${version.jdk}</version>
<version>${version.jdk.runtime}</version>
</requireJavaVersion>
<requireMavenVersion>
<version>${version.maven}</version>
Expand Down Expand Up @@ -1114,7 +1115,7 @@
the compilation phase; no need to recheck during
Javadoc generation. -->
<doclint>none</doclint>
<source>${version.jdk}</source>
<source>${version.jdk.source}</source>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -1317,7 +1318,7 @@
patterns in their `@BeforeTemplate` methods. -->
<ignorePackage>tech.picnic.errorprone.refasterrules</ignorePackage>
</ignorePackages>
<javaVersion>${version.jdk}</javaVersion>
<javaVersion>${version.jdk.runtime}</javaVersion>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -1942,7 +1943,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<release>17</release>
<release>${version.jdk.source}</release>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit fda1f3f

Please sign in to comment.