Merge branch '3.0.x' into 3.1.x
Closes gh-37380
This commit is contained in:
@@ -23,11 +23,14 @@ import java.util.List;
|
||||
|
||||
import org.gradle.testkit.runner.TaskOutcome;
|
||||
import org.junit.jupiter.api.TestTemplate;
|
||||
import org.junit.jupiter.api.condition.EnabledOnJre;
|
||||
import org.junit.jupiter.api.condition.JRE;
|
||||
|
||||
import org.springframework.boot.gradle.junit.GradleCompatibility;
|
||||
import org.springframework.boot.testsupport.gradle.testkit.GradleBuild;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatNoException;
|
||||
|
||||
/**
|
||||
* Integration tests for {@link SpringBootAotPlugin}.
|
||||
@@ -121,6 +124,13 @@ class SpringBootAotPluginIntegrationTests {
|
||||
.isEqualTo(TaskOutcome.NO_SOURCE);
|
||||
}
|
||||
|
||||
// gh-37343
|
||||
@TestTemplate
|
||||
@EnabledOnJre(JRE.JAVA_17)
|
||||
void applyingAotPluginDoesNotPreventConfigurationOfJavaToolchainLanguageVersion() {
|
||||
assertThatNoException().isThrownBy(() -> this.gradleBuild.build("help").getOutput());
|
||||
}
|
||||
|
||||
private void writeMainClass(String packageName, String className) throws IOException {
|
||||
File java = new File(this.gradleBuild.getProjectDir(),
|
||||
"src/main/java/" + packageName.replace(".", "/") + "/" + className + ".java");
|
||||
|
||||
Reference in New Issue
Block a user