forked from Ilya246/crawler_arena
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
36 lines (28 loc) · 1.01 KB
/
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
34
35
36
import groovy.json.JsonSlurper
plugins {
java
}
repositories {
mavenCentral()
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 = "a3a201c3b6"
compileOnly("com.github.anuken.arc:arc-core:v$mindustryVersion")
compileOnly("com.github.anuken.mindustry:core:v$mindustryVersion") {
exclude(group = "com.github.Anuken.Arc")
}
implementation("com.github.xzxadixzx.useful-stuffs:bundle:$usefulHash")
implementation("com.github.xzxadixzx.useful-stuffs:collections:$usefulHash")
implementation("com.github.xzxadixzx.useful-stuffs:menu:$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"
}