Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
antsif-a committed Apr 1, 2021
1 parent b9baaf4 commit 8daf7e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,18 @@ repositories {
ext {
mindustryVersion = 'v126.2'

pluginVersion = {
config = {
def configFile = file("$rootDir/src/main/resources/plugin.json")
def json = new JsonSlurper().parseText(configFile.text)

return json.version
return new JsonSlurper().parseText(configFile.text)
}
}

version = "${project.pluginVersion()}"

dependencies {
compileOnly "com.github.Anuken.Arc:arc-core:$mindustryVersion"
compileOnly "com.github.Anuken.Mindustry:core:$mindustryVersion"
}

jar {
archiveFileName = "${project.name}.jar"
archiveFileName = "${project.config.name}.jar"
from configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
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.5"
"version": "1.6"
}

0 comments on commit 8daf7e0

Please sign in to comment.