Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Switch to Java 21 #158

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ pipeline {
agent any

environment {
JDK_TOOL_NAME = 'JDK 11'
MAVEN_TOOL_NAME = 'Maven 3.8.6'
JDK_TOOL_NAME = 'JDK 21'
MAVEN_TOOL_NAME = 'Maven 3.9.6'
}

options {
Expand Down Expand Up @@ -58,7 +58,8 @@ pipeline {
}
steps {
withMaven(jdk: env.JDK_TOOL_NAME, maven: env.MAVEN_TOOL_NAME) {
sh 'mvn pmd:pmd pmd:cpd spotbugs:spotbugs'
// sh 'mvn pmd:pmd pmd:cpd spotbugs:spotbugs'
sh 'mvn spotbugs:spotbugs'
}
}
post {
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<!-- The following variables are required for Jenkins CI -->
<skipTests>false</skipTests>
<skip.surefire.tests>${skipTests}</skip.surefire.tests>
Expand Down Expand Up @@ -115,7 +115,7 @@
<spacesPerTab>4</spacesPerTab>
</indent>
<googleJavaFormat>
<version>1.16.0</version>
<version>1.20.0</version>
<style>AOSP</style>
</googleJavaFormat>
<licenseHeader>
Expand Down