-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
46 lines (36 loc) · 1.03 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.1.0"
}
group = "com.jobobby"
version = "1.1.0"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
implementation("com.squareup.okhttp3:okhttp:5.0.0-alpha.14")
implementation("org.jsoup:jsoup:1.18.3")
implementation("com.squareup:kotlinpoet:2.0.0")
}
java {
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
register<Jar>("fatJar") {
group = "build"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes["Main-Class"] = "main.MainKt"
}
from(sourceSets.main.get().output)
dependsOn(configurations.runtimeClasspath)
from({
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
})
}
}