Skip to content

Commit 390d57a

Browse files
authored
build: run CI on JDK 11; lock API surface to Java 8; bump to 8.2.2 (#168)
The spotbugs-maven-plugin 4.9.8.3 enforced by Build-Steps requires JDK 11 to execute, which caused the v8.2.1 release pipeline to fail before publish. Switch the Maven build task to JDK 11 so spotbugs runs, while keeping the emitted bytecode targeted at Java 8 for customer compatibility. - pipeline-templates/build-steps.yml: jdkVersionOption 1.8 -> 1.11 - pom.xml (maven-compiler-plugin): add <release>8</release> alongside the existing <source>/<target>1.8 so the compiler also restricts the API surface to the Java 8 stdlib (prevents accidental use of 9+ methods that would NoSuchMethodError at runtime on customer JDK 8). - pom.xml: bump <revision> 8.2.1-SNAPSHOT -> 8.2.2-SNAPSHOT - pipeline-templates/global-variables.yml: semanticVersion 8.2.1 -> 8.2.2 Verified locally: 'mvn -DskipTests -Drevision=8.2.2 verify' on JDK 11 produces safeguardjava-8.2.2.jar; javap reports class major version 52 (Java 8). No source changes; v8.2.1 security content ships unchanged.
1 parent 948d4c1 commit 390d57a

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎pipeline-templates/build-steps.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ steps:
4141
mavenOptions: '-Xmx3072m'
4242
Options: '${{ parameters.mavenOptions }}'
4343
javaHomeOption: 'JDKVersion'
44-
jdkVersionOption: '1.8'
44+
jdkVersionOption: '1.11'
4545
jdkArchitectureOption: 'x64'
4646
publishJUnitResults: true
4747
testResultsFiles: '**/surefire-reports/TEST-*.xml'

‎pipeline-templates/global-variables.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
variables:
22
- name: semanticVersion
3-
value: '8.2.1'
3+
value: '8.2.2'
44
- name: isTagBuild
55
value: ${{ startsWith(variables['Build.SourceBranch'], 'refs/tags/') }}
66
- name: isPrerelease

‎pom.xml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<properties>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16-
<revision>8.2.1-SNAPSHOT</revision>
16+
<revision>8.2.2-SNAPSHOT</revision>
1717
<gpgkeyname>keyname</gpgkeyname>
1818
</properties>
1919

@@ -89,6 +89,7 @@
8989
<configuration>
9090
<source>1.8</source>
9191
<target>1.8</target>
92+
<release>8</release>
9293
</configuration>
9394
</plugin>
9495
<plugin>

0 commit comments

Comments
 (0)