Skip to content

Commit

Permalink
chore(bump): bump java version to 21
Browse files Browse the repository at this point in the history
- kafka client: 3.3.1 -> 3.8.0
- aspectj: 1.9.9.1 -> 1.9.21

Maven Plugins:
- clean: 3.2.0 -> 3.4.0
- compile: 3.10.1 -> 3.13.0
- resources: 3.2.0 -> 3.3.1
- surefire: 3.1.2 -> 3.5.1
- openapi generator : 6.6.0 -> 7.9.0
- springdoc openapi webflux: 1.2.32 -> 1.8.0
- surefire: 3.2.3 -> 3.5.1 (for e2e tests)
- surefire-ng: 3.2.5 -> 3.5.1 (for e2e tests)
  • Loading branch information
sixdouglas committed Oct 19, 2024
1 parent c8a8759 commit 2b9f0c3
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backend_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'zulu'
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/branch-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'zulu'
cache: 'maven'
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-public-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'zulu'
cache: 'maven'
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'zulu'
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cve_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'zulu'
cache: 'maven'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'zulu'
cache: 'maven'

Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'zulu'
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'zulu'
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-serde-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: "17"
java-version: "21"
distribution: "zulu"
cache: "maven"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'zulu'
cache: 'maven'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/separate_env_public_create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'zulu'
cache: 'maven'
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM azul/zulu-openjdk-alpine:17.0.11-jre-headless
FROM azul/zulu-openjdk-alpine:21.0.4-jre-headless

RUN apk add --no-cache \
# snappy codec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public Mono<ResponseEntity<Map<String, ConnectorTopics>>> getConnectorTopicsWith
}

@Override
public Flux<String> getConnectors(String search) throws WebClientResponseException {
public Mono<List<String>> getConnectors(String search) throws WebClientResponseException {
return withRetryOnConflict(super.getConnectors(search));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ private Mono<List<ConsumerGroupDescription>> loadSortedDescriptions(ReactiveAdmi
case EMPTY -> 3;
case DEAD -> 4;
case UNKNOWN -> 5;
case ASSIGNING -> 6;
case RECONCILING -> 7;
};
var comparator = Comparator.comparingInt(statesPriorities);
yield loadDescriptionsByListings(ac, groups, comparator, pageNum, perPage, sortOrderDto);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ public Mono<ConnectorTopics> getConnectorTopics(KafkaCluster cluster, String con

public Flux<String> getConnectorNames(KafkaCluster cluster, String connectName) {
return api(cluster, connectName)
.flux(client -> client.getConnectors(null))
.mono(client -> client.getConnectors(null))
// for some reason `getConnectors` method returns the response as a single string
.collectList().map(e -> e.get(0))
.map(List::getFirst)
.map(this::parseConnectorsNamesStringToList)
.flatMapMany(Flux::fromIterable);
}
Expand Down
1 change: 1 addition & 0 deletions contract/src/main/resources/swagger/kafbat-ui-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3779,6 +3779,7 @@ components:
- DYNAMIC_BROKER_LOGGER_CONFIG
- DYNAMIC_BROKER_CONFIG
- DYNAMIC_DEFAULT_BROKER_CONFIG
- DYNAMIC_CLIENT_METRICS_CONFIG
- STATIC_BROKER_CONFIG
- DEFAULT_CONFIG
- UNKNOWN
Expand Down
2 changes: 1 addition & 1 deletion documentation/compose/connectors/start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#! /bin/sh
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' kafka-connect0:8083)" != "200" ]]
do sleep 5
done
Expand Down
8 changes: 4 additions & 4 deletions documentation/compose/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ services:
build:
context: ./kafka-connect
args:
image: confluentinc/cp-kafka-connect:6.0.1
image: confluentinc/cp-kafka-connect:7.2.1
ports:
- 8083:8083
depends_on:
Expand Down Expand Up @@ -151,18 +151,18 @@ services:
POSTGRES_PASSWORD: '12345'

create-connectors:
image: ellerbrock/alpine-bash-curl-ssl
image: curlimages/curl
depends_on:
postgres-db:
condition: service_healthy
kafka-connect0:
condition: service_healthy
volumes:
- ./connectors:/connectors
command: bash -c '/connectors/start.sh'
command: sh -c '/connectors/start.sh'

ksqldb:
image: confluentinc/ksqldb-server:0.18.0
image: confluentinc/cp-ksqldb-server:7.2.1
healthcheck:
test: [ "CMD", "timeout", "1", "curl", "--silent", "--fail", "http://localhost:8088/info" ]
interval: 30s
Expand Down
10 changes: 5 additions & 5 deletions e2e-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<artifactId>e2e-tests</artifactId>

<properties>
<kafka.version>3.3.1</kafka.version>
<kafka.version>3.8.0</kafka.version>
<contract>${project.version}</contract>
<maven.compiler.release>17</maven.compiler.release>
<maven.surefire.release>3.2.3</maven.surefire.release>
<maven.surefire-testng>3.2.5</maven.surefire-testng>
<aspectj.version>1.9.9.1</aspectj.version>
<maven.compiler.release>21</maven.compiler.release>
<maven.surefire.release>3.5.1</maven.surefire.release>
<maven.surefire-testng>3.5.1</maven.surefire-testng>
<aspectj.version>1.9.21</aspectj.version>
<allure.version>2.27.0</allure.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const CONFIG_SOURCE_NAME_MAP: Record<ConfigSource, string> = {
[ConfigSource.DYNAMIC_BROKER_LOGGER_CONFIG]: 'Dynamic broker logger config',
[ConfigSource.DYNAMIC_BROKER_CONFIG]: 'Dynamic broker config',
[ConfigSource.DYNAMIC_DEFAULT_BROKER_CONFIG]: 'Dynamic default broker config',
[ConfigSource.DYNAMIC_CLIENT_METRICS_CONFIG]: 'Dynamic client metrics config',
[ConfigSource.STATIC_BROKER_CONFIG]: 'Static broker config',
[ConfigSource.DEFAULT_CONFIG]: 'Default config',
[ConfigSource.UNKNOWN]: 'Unknown',
Expand All @@ -15,6 +16,7 @@ export const CONFIG_SOURCE_PRIORITY = {
[ConfigSource.DYNAMIC_BROKER_LOGGER_CONFIG]: 1,
[ConfigSource.DYNAMIC_BROKER_CONFIG]: 1,
[ConfigSource.DYNAMIC_DEFAULT_BROKER_CONFIG]: 1,
[ConfigSource.DYNAMIC_CLIENT_METRICS_CONFIG]: 1,
[ConfigSource.STATIC_BROKER_CONFIG]: 2,
[ConfigSource.DEFAULT_CONFIG]: 3,
[ConfigSource.UNKNOWN]: 4,
Expand Down
20 changes: 10 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</modules>

<properties>
<maven.compiler.release>17</maven.compiler.release>
<maven.compiler.release>21</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<frontend-generated-sources-directory>..//frontend/src/generated-sources
Expand All @@ -39,7 +39,7 @@
<datasketches-java.version>3.1.0</datasketches-java.version>
<groovy.version>3.0.13</groovy.version>
<jackson.version>2.14.0</jackson.version>
<kafka-clients.version>3.5.2</kafka-clients.version>
<kafka-clients.version>3.8.0</kafka-clients.version>
<org.mapstruct.version>1.6.2</org.mapstruct.version>
<org.projectlombok.version>1.18.34</org.projectlombok.version>
<protobuf-java.version>3.25.5</protobuf-java.version>
Expand All @@ -63,14 +63,14 @@
<pnpm.version>v9.11.0</pnpm.version>

<!-- Plugin versions -->
<fabric8-maven-plugin.version>0.42.1</fabric8-maven-plugin.version>
<frontend-maven-plugin.version>1.12.1</frontend-maven-plugin.version>
<maven-clean-plugin.version>3.2.0</maven-clean-plugin.version>
<maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
<maven-resources-plugin.version>3.2.0</maven-resources-plugin.version>
<maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version>
<openapi-generator-maven-plugin.version>6.6.0</openapi-generator-maven-plugin.version>
<springdoc-openapi-webflux-ui.version>1.2.32</springdoc-openapi-webflux-ui.version>
<fabric8-maven-plugin.version>0.45.1</fabric8-maven-plugin.version>
<frontend-maven-plugin.version>1.15.1</frontend-maven-plugin.version>
<maven-clean-plugin.version>3.4.0</maven-clean-plugin.version>
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
<maven-surefire-plugin.version>3.5.1</maven-surefire-plugin.version>
<openapi-generator-maven-plugin.version>7.9.0</openapi-generator-maven-plugin.version>
<springdoc-openapi-webflux-ui.version>1.8.0</springdoc-openapi-webflux-ui.version>
</properties>

<repositories>
Expand Down
4 changes: 2 additions & 2 deletions serde-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<packaging>jar</packaging>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>

<distributionManagement>
Expand Down

0 comments on commit 2b9f0c3

Please sign in to comment.