Build with Java 8, 11 or 17
Issue gh-761
This commit is contained in:
@@ -80,6 +80,9 @@ public class SpringJavaPlugin implements Plugin<Project> {
|
||||
CompileOptions options = javaCompile.getOptions();
|
||||
options.setEncoding("UTF-8");
|
||||
options.getCompilerArgs().add("-parameters");
|
||||
if (JavaVersion.current().isJava11Compatible()) {
|
||||
options.getRelease().set(8);
|
||||
}
|
||||
});
|
||||
project.getTasks().withType(Jar.class, (jar) -> jar.manifest((manifest) -> {
|
||||
Map<String, String> attributes = new HashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user