generated from MindustryInside/PluginTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
38 lines (31 loc) · 857 Bytes
/
build.gradle
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
37
38
plugins{
id 'org.jetbrains.kotlin.jvm' version '1.4.10'
id 'java'
}
sourceCompatibility = 1.8
targetCompatibility = 14
repositories{
mavenCentral()
maven{ url 'https://www.jitpack.io' }
}
ext{
mindustry_version = "v123.1"
gson_version = "2.8.6"
}
dependencies{
compileOnly "com.github.Anuken.Arc:arc-core:$mindustry_version"
compileOnly "com.github.Anuken.Mindustry:core:$mindustry_version"
implementation "com.google.code.gson:gson:$gson_version"
}
// error???
// allprojects{
// tasks.withType(JavaCompile){
// if(JavaVersion.current() != JavaVersion.VERSION_1_8){
// options.compilerArgs += ['--release', '8']
// }
// }
// }
jar{
archiveFileName = "${project.archivesBaseName}.jar"
from{configurations.runtimeClasspath.collect{it.isDirectory() ? it : zipTree(it)}}
}