Skip to content

Commit

Permalink
Jdk 8 compatibility (#5)
Browse files Browse the repository at this point in the history
* Add compatibility with jdk 8

* Increment version
  • Loading branch information
skykatik authored Apr 9, 2021
1 parent 8daf7e0 commit 23ab6e7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ A small plugin for Mindustry server. Allows admins to execute JavaScript code.
Download the latest release (`.jar`) [here](https://github.com/summetdev/JSEval/releases/latest). <br>
Put `.jar` file to `config/mods` folder.

WARNING: Needs Java 14 installed to use

## How to use
If you're admin, use `/js <code>` command.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ ext {
}
}

tasks.withType(JavaCompile){
targetCompatibility = 8
sourceCompatibility = 14

if(JavaVersion.current() != JavaVersion.VERSION_1_8){
options.compilerArgs += ['--release', '8']
}
}

dependencies {
compileOnly "com.github.Anuken.Arc:arc-core:$mindustryVersion"
compileOnly "com.github.Anuken.Mindustry:core:$mindustryVersion"
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"description": "Allows admins to execute JavaScript code using a special command.",
"author": "Summet",
"main": "jseval.JSEval",
"version": "1.6"
"version": "1.7"
}

0 comments on commit 23ab6e7

Please sign in to comment.