-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
47 lines (38 loc) · 899 Bytes
/
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 com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("com.github.johnrengelman.shadow") version "8.1.1"
id("jacoco-report-aggregation")
id("java")
}
apply(plugin = "java")
apply(plugin = "com.github.johnrengelman.shadow")
apply(plugin = "jacoco")
repositories {
mavenCentral()
maven { setUrl("https://jitpack.io") }
}
dependencies {
implementation(project(":bot"))
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks.test {
useJUnitPlatform()
}
// This task will generate your fat JAR and put it in the ./build/libs/ directory
tasks {
named<ShadowJar>("shadowJar") {
manifest {
attributes(mapOf("Main-Class" to "de.janno.discord.bot.Bot"))
}
}
}
tasks.jacocoTestReport {
reports {
xml.required.set(true)
html.required.set(false)
}
}