Add Java 8 compatibility

As a result of the Kotlin port, using Java 11 becomes less important.
Java 8 is still fairly widespread, so I think supporting it is still
worthwhile.
bzip2
Graham 5 years ago
parent 8ccbea16f1
commit 98692c7d78
  1. 2
      README.md
  2. 2
      deob/src/main/java/dev/openrs2/deob/Deobfuscator.kt
  3. 6
      pom.xml

@ -12,7 +12,7 @@ released in late 2009.
Building OpenRS2 requires the following pieces of software: Building OpenRS2 requires the following pieces of software:
* [Java Development Kit][jdk] (version 11) * [Java Development Kit][jdk] (version 8 or later)
* [Apache Maven][maven] (version 3.3.9 or later) * [Apache Maven][maven] (version 3.3.9 or later)
### Non-free components ### Non-free components

@ -83,7 +83,7 @@ class Deobfuscator(private val input: Path, private val output: Path) {
glUnpacker.remap(create(glUnpacker, "unpacker_")) glUnpacker.remap(create(glUnpacker, "unpacker_"))
// bundle libraries together into a common classpath // bundle libraries together into a common classpath
val runtime = ClassLoader.getPlatformClassLoader() val runtime = ClassLoader.getSystemClassLoader()
val classPath = ClassPath( val classPath = ClassPath(
runtime, runtime,
dependencies = listOf(), dependencies = listOf(),

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>dev.openrs2</groupId> <groupId>dev.openrs2</groupId>
<artifactId>openrs2-parent</artifactId> <artifactId>openrs2-parent</artifactId>
<version>1.0.7</version> <version>1.0.8</version>
</parent> </parent>
<artifactId>openrs2</artifactId> <artifactId>openrs2</artifactId>
@ -70,7 +70,7 @@
<dependency> <dependency>
<groupId>dev.openrs2</groupId> <groupId>dev.openrs2</groupId>
<artifactId>fernflower</artifactId> <artifactId>fernflower</artifactId>
<version>1.0.1</version> <version>1.0.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>dev.openrs2</groupId> <groupId>dev.openrs2</groupId>
@ -80,7 +80,7 @@
<dependency> <dependency>
<groupId>dev.openrs2</groupId> <groupId>dev.openrs2</groupId>
<artifactId>pack200</artifactId> <artifactId>pack200</artifactId>
<version>1.0.1</version> <version>1.0.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.ow2.asm</groupId> <groupId>org.ow2.asm</groupId>

Loading…
Cancel
Save