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

chore(.ci/config): Add JDK 21 Build Support #4056

Merged
merged 8 commits into from
Feb 16, 2024
Merged
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
2 changes: 2 additions & 0 deletions .ci/config/matrices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ sidetrack-stages:
- 'rolling-update'
jdk-ce-stages:
stages:
- 'platform-jdk-openjdk-jdk-21-latest'
- 'platform-jdk-openjdk-jdk-17-latest'
- 'platform-jdk-openjdk-jdk-11-latest'
- 'platform-jdk-jdk-21-latest'
- 'platform-jdk-jdk-17-latest'
- 'platform-jdk-jdk-11-latest'
16 changes: 16 additions & 0 deletions .ci/config/stage-types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ platform-jdk-openjdk-jdk-17-latest:
nodeLabel: 'h2'
jdkVersion: 'openjdk-jdk-17-latest'
withNpm: true
platform-jdk-openjdk-jdk-21-latest:
directory: '.'
command: 'install source:jar source:test-jar -Pdistro,distro-ce,distro-wildfly'
stash:
runtimeStash: true
nodeLabel: 'h2'
jdkVersion: 'openjdk-jdk-21-latest'
withNpm: true
platform-jdk-openjdk-jdk-11-latest:
directory: '.'
command: 'install source:jar source:test-jar
Expand Down Expand Up @@ -170,6 +178,14 @@ platform-jdk-jdk-17-latest:
nodeLabel: 'h2'
jdkVersion: 'jdk-17-latest'
withNpm: true
platform-jdk-jdk-21-latest:
directory: '.'
command: 'install source:jar source:test-jar -Pdistro,distro-ce,distro-wildfly'
stash:
runtimeStash: true
nodeLabel: 'h2'
jdkVersion: 'jdk-21-latest'
withNpm: true
platform-jdk-jdk-11-latest:
directory: '.'
command: 'install source:jar source:test-jar
Expand Down
5 changes: 0 additions & 5 deletions clients/java/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,6 @@
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ public CommandCounterInterceptor(ProcessEngineConfigurationImpl processEngineCon

@Override
public <T> T execute(Command<T> command) {

try {
return next.execute(command);
} finally {
TelemetryRegistry telemetryRegistry = processEngineConfiguration.getTelemetryRegistry();
if (telemetryRegistry != null) {
String className = ClassNameUtil.getClassNameWithoutPackage(command);
// anonymous class/lambda implementations of the Command interface are excluded
if (!command.getClass().isAnonymousClass() && !className.contains("$$Lambda$")) {
if (!command.getClass().isAnonymousClass() && !className.contains("$$Lambda")) {
className = parseLocalClassName(className);
telemetryRegistry.markOccurrence(className);
}
Expand Down
6 changes: 0 additions & 6 deletions internal-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,6 @@
<version>${version.mockito}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>${version.mockito}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<version.logback>1.2.11</version.logback>
<version.junit>4.13.1</version.junit>
<version.assertj>2.9.1</version.assertj>
<version.mockito>4.3.1</version.mockito>
<version.mockito>5.10.0</version.mockito>
<version.wiremock>2.27.2</version.wiremock>
<version.wiremock-jre8>2.27.2</version.wiremock-jre8>
<version.testcontainers>1.16.0</version.testcontainers>
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-starter/starter-client/spring-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
<version>${version.mockito}</version>
</dependency>
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-starter/starter-client/spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
<version>${version.mockito}</version>
</dependency>
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-starter/starter-webapp-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
<version>${version.mockito}</version>
</dependency>
Expand Down
6 changes: 0 additions & 6 deletions test-utils/assert/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@
<version>${version.mockito}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>${version.mockito}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
Expand Down
6 changes: 0 additions & 6 deletions webapps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
Expand Down
Loading