-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
58 lines (47 loc) · 1.64 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.23"
application
id("org.jlleitschuh.gradle.ktlint") version "12.1.0"
}
group = "org.tfcc.bingo"
version = "1.0.0"
repositories {
maven("https://maven.aliyun.com/repository/public")
mavenCentral()
}
dependencies {
implementation("io.netty:netty-all:4.1.108.Final")
implementation("org.apache.logging.log4j:log4j-api:2.23.1")
implementation("org.apache.logging.log4j:log4j-api-kotlin:1.4.0")
implementation("org.apache.logging.log4j:log4j-core:2.23.1")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.9.23")
implementation("com.google.code.gson:gson:2.10.1")
implementation("org.apache.poi:poi-ooxml:5.2.5")
implementation("com.jakewharton:disklrucache:2.0.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0")
implementation("com.squareup.okhttp3:okhttp:4.12.0")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
application {
mainClass.set("org.tfcc.bingo.MainKt")
}
tasks.withType<Jar> {
// Otherwise you'll get a "No main manifest attribute" error
manifest {
attributes["Main-Class"] = "org.tfcc.bingo.MainKt"
}
// To avoid the duplicate handling strategy error
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
// To add all of the dependencies otherwise a "NoClassDefFoundError" error
from(sourceSets.main.get().output)
dependsOn(configurations.runtimeClasspath)
from({
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
})
}
ktlint {
version.set("0.50.0")
}