-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
50 lines (44 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
plugins {
kotlin("jvm") version "1.6.20"
}
group = "xyz.acrylicstyle"
version = "1.0.4"
repositories {
mavenLocal()
mavenCentral()
maven { url = uri("https://repo.acrylicstyle.xyz/repository/maven-public/") }
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.20")
implementation("org.ow2.asm", "asm", "9.2")
implementation("org.ow2.asm", "asm-commons", "9.2")
implementation("org.ow2.asm", "asm-tree", "9.2")
implementation("me.tongfei", "progressbar", "0.8.1")
implementation("xyz.acrylicstyle.util", "common", "0.16.4")
implementation("xyz.acrylicstyle.util", "collection", "0.16.4")
implementation("xyz.acrylicstyle.util", "all", "0.16.4") {
exclude("org.ow2.asm", "asm")
exclude("org.ow2.asm", "asm-commons")
}
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.freeCompilerArgs = listOf(
"-Xjsr305=strict",
"-Xopt-in=kotlin.RequiresOptIn"
)
}
withType<JavaCompile>().configureEach {
options.encoding = "utf-8"
}
withType<Jar> {
manifest {
attributes(
"Main-Class" to "xyz.acrylicstyle.parameterRemapper.ParameterRemapperApp"
)
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from(configurations.getByName("implementation").apply { isCanBeResolved = true }.map { if (it.isDirectory) it else zipTree(it) })
}
}