-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
65 lines (50 loc) · 1.25 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
plugins {
java
kotlin("jvm") version "1.9.21"
}
repositories {
mavenCentral()
maven("https://repo1.maven.org/maven2/")
maven("https://mvnrepository.com/artifact/")
}
val asmVersion = "9.7"
val library: Configuration by configurations.creating
dependencies {
//Kotlin
library(kotlin("stdlib"))
//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")
implementation(library)
}
tasks {
compileJava {
options.encoding = "UTF-8"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveBaseName.set(project.name.toLowerCase())
manifest {
attributes(
"Main-Class" to "net.spartanb312.bipbap.BipbapKt"
)
}
from(
library.map {
if (it.isDirectory) it
else zipTree(it)
}
)
exclude("META-INF/versions/**", "module-info.class", "**/**.RSA")
}
}