forked from Poeschl/LogCleaner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
84 lines (69 loc) · 1.9 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("java")
id("com.github.kt3k.coveralls") version "2.12.0"
id("net.researchgate.release") version "3.0.0"
kotlin("jvm") version "1.8.21"
id("net.minecrell.plugin-yml.bukkit") version "0.5.3"
id("com.github.johnrengelman.shadow") version "8.1.0"
jacoco
}
group = "io.github.poeschl.bukkit"
version = "1.2.1"
repositories {
mavenCentral()
maven ("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven ("https://maven.sk89q.com/repo/" )
maven ("https://hub.spigotmc.org/nexus/content/repositories/snapshots" )
}
dependencies {
compileOnly(libs.spigot.api)
library(kotlin("stdlib-jdk8"))
testImplementation(libs.spigot.api)
testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.3.1")
testImplementation("org.mockito:mockito-core:5.3.1")
testImplementation("org.assertj:assertj-core:3.24.2")
testImplementation("org.mockito.kotlin:mockito-kotlin:4.1.0")
}
bukkit {
name = rootProject.name
authors = listOf("sarhatabaot")
main = "io.github.poeschl.bukkit.logcleaner.LogCleanerPlugin"
version = project.version.toString()
apiVersion = "1.19"
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "17"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "17"
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks {
build {
dependsOn(shadowJar)
}
shadowJar {
minimize()
archiveClassifier.set("")
dependencies {
exclude("org.jetbrains.kotlin:*:*")
}
}
}
jacoco {
toolVersion = "0.8.8"
}
tasks.jacocoTestReport {
reports {
xml.required.set(true)
html.required.set(true)
}
}