package: use java 11

This commit is contained in:
Max Weber
2023-05-27 10:27:43 -06:00
parent f60d87567d
commit 9ea28d1c73
3 changed files with 4 additions and 4 deletions

View File

@@ -698,10 +698,10 @@ public class Plugin implements Closeable
@Override
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
{
if ((version & 0xFFFF) > Opcodes.V1_8
if ((version & 0xFFFF) > Opcodes.V11
&& !(isMultiRelease || fileName.endsWith("module-info.class")))
{
throw PluginBuildException.of(Plugin.this, "plugins must be Java 1.8 compatible")
throw PluginBuildException.of(Plugin.this, "plugins must be Java 11 compatible")
.withFile(fileName);
}

View File

@@ -38,7 +38,7 @@ allprojects {
}
compileJava {
options.release.set(8)
options.release.set(11)
options.compilerArgs.add("-Xplugin:RuneLiteAPIRecorder")
}

View File

@@ -25,8 +25,8 @@ dependencies {
group = '${group_id}'
version = '${version}'
sourceCompatibility = '1.8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.release.set(11)
}