forked from Xusk947/CastleWars
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
33 lines (25 loc) · 911 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import groovy.json.JsonSlurper
plugins {
java
}
repositories {
mavenCentral()
maven(url = "https://raw.githubusercontent.com/Zelaux/MindustryRepo/master/repository")
maven(url = "https://jitpack.io")
}
dependencies {
val json = JsonSlurper().parseText(file("src/main/resources/plugin.json").readText()) as Map<*, *>
project.version = json["version"]!!
val mindustryVersion = json["minGameVersion"]
val usefulHash = "2f1d9eb899"
compileOnly("com.github.Anuken.Arc:arc-core:v$mindustryVersion")
compileOnly("com.github.Anuken.Mindustry:core:v$mindustryVersion")
implementation("com.github.xzxADIxzx.useful-stuffs:bundle:$usefulHash")
}
tasks.jar {
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}