Skip to content

Commit 03c155d

Browse files
committed
Enable JDK 21 builds
Signed-off-by: Ashley <73482956+ascopes@users.noreply.github.com>
1 parent c0f1258 commit 03c155d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os-name: [ubuntu-22.04]
24-
java-version: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
24+
java-version: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21-ea]
2525
include:
26-
# Mockito doesn't yet support Java 21, so let's comment it out for now.
27-
# - os-name: ubuntu-22.04
28-
# java-version: 21-ea
2926

3027
# MacOS builds (only check Java 17).
3128
- os-name: macos-12

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![Java 11+](https://img.shields.io/badge/Java-11--20-brown?logo=openjdk)
1+
![Java 11+](https://img.shields.io/badge/Java-11--21-brown?logo=openjdk)
22
[![Build Status](https://github.com/ascopes/java-compiler-testing/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/ascopes/java-compiler-testing/actions/workflows/build.yml)
33
[![Maven Central](https://img.shields.io/maven-central/v/io.github.ascopes.jct/java-compiler-testing)](https://repo1.maven.org/maven2/io/github/ascopes/jct/java-compiler-testing)
44
[![Code Coverage](https://codecov.io/gh/ascopes/java-compiler-testing/branch/main/graph/badge.svg?token=VT74BP2742)](https://codecov.io/gh/ascopes/java-compiler-testing)

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,12 @@
141141
142142
Tired compilation is modified to reduce the amount of time the JVM wastes JITing
143143
code during tests.
144+
145+
Byte Buddy experimental support enables running ByteBuddy (used by Mockito) in JDK
146+
experimental builds.
144147
-->
145148
<argLine>
149+
-Dnet.bytebuddy.experimental=true
146150
-Dorg.slf4j.simpleLogger.log=INFO
147151
-Dorg.slf4j.simpleLogger.log.io.github.ascopes.jct=TRACE
148152
-Xshare:off

0 commit comments

Comments
 (0)