Skip to content

Commit 51350bb

Browse files
committed
[#8005] Update minimum release/source/target to JDK 21
1 parent 3ae260f commit 51350bb

4 files changed

Lines changed: 219 additions & 527 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434

3535
steps:
3636
- uses: actions/checkout@v4
37-
- name: Set up JDK 17
37+
- name: Set up JDK 21
3838
uses: actions/setup-java@v4
3939
with:
40-
java-version: '17'
40+
java-version: '21'
4141
distribution: 'temurin'
4242
- name: Build
4343
run: mvn -U -B -e clean install -DskipTests -Prat

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151

152152
<properties>
153153
<project.build.outputTimestamp>1695310533</project.build.outputTimestamp>
154-
<maven.compiler.target>11</maven.compiler.target>
154+
<maven.compiler.target>21</maven.compiler.target>
155155

156156
<scm.connection>scm:git:https://gitbox.apache.org/repos/asf/karaf.git</scm.connection>
157157
<scm.developerConnection>scm:git:https://gitbox.apache.org/repos/asf/karaf.git</scm.developerConnection>

tooling/karaf-maven-plugin/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,9 @@
372372
<groupId>org.apache.maven.plugins</groupId>
373373
<artifactId>maven-compiler-plugin</artifactId>
374374
<configuration>
375-
<source>1.8</source>
376-
<target>1.8</target>
375+
<release>21</release>
376+
<source>21</source>
377+
<target>21</target>
377378
<maxmem>256M</maxmem>
378379
<fork>${compiler.fork}</fork>
379380
</configuration>

0 commit comments

Comments
 (0)