-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
60 lines (47 loc) · 1.4 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
application
kotlin("jvm") version "1.8.21"
kotlin("plugin.serialization") version "1.8.21"
id("com.github.johnrengelman.shadow") version "8.1.0"
id("org.graalvm.buildtools.native") version "0.9.22"
}
repositories {
mavenCentral()
}
java {
val javaVersion = JavaVersion.toVersion(17)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-bom")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
implementation("com.charleskorn.kaml:kaml:0.53.0")
implementation("com.github.ajalt.clikt:clikt:3.5.2")
implementation("io.ktor:ktor-client-core:2.3.0")
implementation("io.ktor:ktor-client-cio:2.3.0")
implementation("com.zaxxer:nuprocess:2.0.6")
implementation("org.apache.commons:commons-compress:1.23.0")
implementation("me.tongfei:progressbar:0.9.5")
implementation("net.swiftzer.semver:semver:1.2.0")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
tasks.withType<Wrapper> {
gradleVersion = "8.1.1"
}
application {
mainClass.set("gay.pizza.pkg.apk.cli.MainKt")
}
graalvmNative {
binaries {
named("main") {
imageName.set("apk-tools")
mainClass.set("gay.pizza.pkg.apk.cli.MainKt")
sharedLibrary.set(false)
}
}
}