Skip to content
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
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ jobs:
fail-fast: false
matrix:
os-name: [ubuntu-22.04]
java-version: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
java-version: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21-ea]
include:
# Mockito doesn't yet support Java 21, so let's comment it out for now.
# - os-name: ubuntu-22.04
# java-version: 21-ea

# MacOS builds (only check Java 17).
- os-name: macos-12
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Java 11+](https://img.shields.io/badge/Java-11--20-brown?logo=openjdk)
![Java 11+](https://img.shields.io/badge/Java-11--21-brown?logo=openjdk)
[![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)
[![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)
[![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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ package io.github.ascopes.jct.acceptancetests.lombok
import io.github.ascopes.jct.compilers.JctCompiler
import io.github.ascopes.jct.junit.JavacCompilerTest
import io.github.ascopes.jct.workspaces.Workspaces
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.condition.JRE

import static io.github.ascopes.jct.assertions.JctAssertions.assertThatCompilation
import static org.assertj.core.api.Assumptions.assumeThat
import static org.assertj.core.api.SoftAssertions.assertSoftly

/**
Expand All @@ -32,9 +35,16 @@ import static org.assertj.core.api.SoftAssertions.assertSoftly
* @author Ashley Scopes
*/
@DisplayName("Lombok Integration test")
@SuppressWarnings('GrUnresolvedAccess')
@SuppressWarnings("GrUnresolvedAccess")
class LombokIntegrationTest {

@BeforeEach
void setUp() {
assumeThat(JRE.currentVersion())
.withFailMessage("Lombok fails under JDK-21: See Lombok GH-3393")
.isLessThanOrEqualTo(JRE.JAVA_20)
}

@DisplayName("Lombok @Data compiles the expected data class")
@JavacCompilerTest
void lombokDataCompilesTheExpectedDataClass(JctCompiler compiler) {
Expand Down
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,12 @@

Tired compilation is modified to reduce the amount of time the JVM wastes JITing
code during tests.

Byte Buddy experimental support enables running ByteBuddy (used by Mockito) in JDK
experimental builds.
-->
<argLine>
-Dnet.bytebuddy.experimental=true
-Dorg.slf4j.simpleLogger.log=INFO
-Dorg.slf4j.simpleLogger.log.io.github.ascopes.jct=TRACE
-Xshare:off
Expand Down