mirror of
https://github.com/runelite/plugin-hub.git
synced 2025-12-23 14:39:11 -05:00
package: use java 11
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ allprojects {
|
||||
}
|
||||
|
||||
compileJava {
|
||||
options.release.set(8)
|
||||
options.release.set(11)
|
||||
options.compilerArgs.add("-Xplugin:RuneLiteAPIRecorder")
|
||||
}
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@ dependencies {
|
||||
|
||||
group = '${group_id}'
|
||||
version = '${version}'
|
||||
sourceCompatibility = '1.8'
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.encoding = 'UTF-8'
|
||||
options.release.set(11)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user