Skip to content

Commit 76cdc49

Browse files
Update to Java 21 (#119)
Signed-off-by: ocorriga <ocorriga@redhat.com>
1 parent a4b982b commit 76cdc49

File tree

19 files changed

+76
-55
lines changed

19 files changed

+76
-55
lines changed

.azure/templates/jobs/build_java.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ jobs:
44
# Strategy for the job
55
strategy:
66
matrix:
7-
'java-17':
7+
'java-21':
88
image: 'Ubuntu-22.04'
9-
jdk_version: '17'
9+
jdk_version: '21'
1010
# Set timeout for jobs
1111
timeoutInMinutes: 60
1212
# Base system

.azure/templates/jobs/deploy_java.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jobs:
66
# Strategy for the job
77
strategy:
88
matrix:
9-
'java-17':
9+
'java-21':
1010
image: 'Ubuntu-22.04'
11-
jdk_version: '17'
11+
jdk_version: '21'
1212
# Base system
1313
pool:
1414
vmImage: $(image)

.azure/templates/jobs/run_systemtests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
${{ arch }}:
88
arch: ${{ arch }}
99
image: 'Ubuntu-22.04'
10-
jdk_version: '17'
10+
jdk_version: '21'
1111
pool:
1212
vmImage: $(image)
1313
variables:

.azure/templates/steps/prerequisites/install_java.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Step to configure JAVA on the agent
22
parameters:
33
- name: JDK_VERSION
4-
default: '17'
4+
default: '21'
55
steps:
66
- task: JavaToolInstaller@0
77
inputs:

.checkstyle/checkstyle.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,38 @@
104104

105105
<!-- Make the @SuppressWarnings annotations available to Checkstyle -->
106106
<module name="SuppressWarningsHolder" />
107+
108+
<!-- Javadocs -->
109+
<module name="MissingJavadocType">
110+
<!-- public types -->
111+
<property name="scope" value="public" />
112+
</module>
113+
<module name="MissingJavadocMethod">
114+
<!-- public methods -->
115+
<property name="scope" value="public" />
116+
</module>
117+
<module name="JavadocType">
118+
<!-- public types -->
119+
<property name="scope" value="public" />
120+
</module>
121+
<module name="JavadocVariable">
122+
<!-- public variables -->
123+
<property name="scope" value="public" />
124+
</module>
125+
<module name="JavadocMethod">
126+
<!-- public methods -->
127+
<property name="accessModifiers" value="public" />
128+
</module>
129+
<module name="JavadocBlockTagLocation" />
130+
<module name="JavadocContentLocation" />
131+
<module name="JavadocLeadingAsteriskAlign" />
132+
<module name="JavadocMissingLeadingAsterisk" />
133+
<module name="JavadocMissingWhitespaceAfterAsterisk" />
134+
<module name="JavadocStyle">
135+
<property name="checkEmptyJavadoc" value="true"/>
136+
<property name="checkFirstSentence" value="false"/>
137+
</module>
138+
<module name="NonEmptyAtclauseDescription"/>
107139
</module>
108140

109141
<module name="SuppressionFilter">

.checkstyle/suppressions.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@
1414
In all other cases, you should use the annotations on the methods or classes affected by it. -->
1515
<suppress checks=".*"
1616
files="io[/\\]strimzi[/\\]kafka[/\\]access[/\\]model[/\\].*(Builder|Fluent|FluentImpl)\.java"/>
17+
18+
<!-- Skip Javadoc checks for tests -->
19+
<suppress checks="(JavadocMethod|JavadocType|JavadocVariable|MissingJavadocType|MissingJavadocMethod)" files="src[/\\]test[/\\]java[/\\].*"/>
20+
21+
<!-- Skip Javadoc checks for systemtests -->
22+
<suppress checks="(JavadocMethod|JavadocType|JavadocVariable|MissingJavadocType|MissingJavadocMethod|JavadocStyle)" files="systemtest[/\\]src[/\\]main[/\\]java[/\\].*"/>
1723
</suppressions>

.github/actions/build/build-binaries/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ runs:
1313
- name: Setup Java
1414
uses: strimzi/strimzi-kafka-operator/.github/actions/dependencies/setup-java@main
1515
with:
16-
javaVersion: "17"
16+
javaVersion: "21"
1717

1818
- name: Setup Yq
1919
uses: strimzi/strimzi-kafka-operator/.github/actions/dependencies/install-yq@main

.github/actions/build/deploy-java/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
2525
- name: Setup Java and Maven
2626
uses: strimzi/strimzi-kafka-operator/.github/actions/dependencies/setup-java@main
2727
with:
28-
javaVersion: "17"
28+
javaVersion: "21"
2929

3030
- name: Restore Maven cache
3131
uses: actions/cache/restore@v5

.github/actions/build/release-artifacts/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ runs:
2828
- name: Setup Java
2929
uses: strimzi/strimzi-kafka-operator/.github/actions/dependencies/setup-java@main
3030
with:
31-
javaVersion: "17"
31+
javaVersion: "21"
3232

3333
- name: Install Helm
3434
uses: strimzi/strimzi-kafka-operator/.github/actions/dependencies/install-helm@main

.github/actions/build/run-systemtests/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ runs:
2121
- name: Setup Java
2222
uses: strimzi/strimzi-kafka-operator/.github/actions/dependencies/setup-java@main
2323
with:
24-
javaVersion: "17"
24+
javaVersion: "21"
2525

2626
- name: Setup Kind
2727
uses: strimzi/strimzi-kafka-operator/.github/actions/dependencies/setup-kind@main

0 commit comments

Comments
 (0)