forked from SpartanB312/Grunt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
73 lines (56 loc) · 1.51 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
group = "net.spartanb312"
version = "1.5.7"
plugins {
java
kotlin("jvm") version "1.6.10"
}
repositories {
mavenCentral()
maven("https://repo1.maven.org/maven2/")
maven("https://mvnrepository.com/artifact/")
}
val kotlinVersion: String by project
val kotlinxCoroutineVersion: String by project
val asmVersion: String by project
val library: Configuration by configurations.creating
dependencies {
//Kotlin
library("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
//ASM
library("org.ow2.asm:asm:$asmVersion")
library("org.ow2.asm:asm-tree:$asmVersion")
library("org.ow2.asm:asm-commons:$asmVersion")
//GSON
library("com.google.code.gson:gson:2.10")
//TornadoFX
//library("no.tornado:tornadofx:1.7.20")
implementation(library)
}
tasks {
compileJava {
options.encoding = "UTF-8"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn", "-Xinline-classes")
}
}
jar {
archiveBaseName.set(project.name.toLowerCase())
manifest {
attributes(
"Main-Class" to "net.spartanb312.grunt.GruntKt"
)
}
from(
library.map {
if (it.isDirectory) it
else zipTree(it)
}
)
exclude("META-INF/versions/**", "module-info.class", "**/**.RSA")
}
}