2019-12-26 17:01:27 +01:00
|
|
|
plugins {
|
|
|
|
kotlin("jvm") version "1.3.61"
|
|
|
|
id("org.jlleitschuh.gradle.ktlint") version "9.0.0"
|
2019-12-28 01:02:19 +01:00
|
|
|
id("com.github.johnrengelman.shadow") version "5.2.0"
|
2019-12-29 02:50:04 +01:00
|
|
|
id("org.jetbrains.dokka") version "0.10.0"
|
2020-02-08 22:54:28 +01:00
|
|
|
jacoco
|
2019-12-26 17:01:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "de.augustodwenger"
|
2020-01-12 18:22:25 +01:00
|
|
|
version = "0.2.0-SNAPSHOT"
|
2019-12-26 17:01:27 +01:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots")
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
|
|
|
|
}
|
2019-12-29 02:50:04 +01:00
|
|
|
maven {
|
|
|
|
url = uri("https://dl.bintray.com/kotlin/dokka")
|
|
|
|
}
|
2019-12-26 17:01:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("stdlib"))
|
|
|
|
implementation(kotlin("reflect"))
|
|
|
|
implementation("org.slf4j:slf4j-api:1.7.29")
|
|
|
|
implementation("io.github.microutils:kotlin-logging:1.7.8")
|
|
|
|
implementation("ch.qos.logback:logback-classic:1.2.3")
|
|
|
|
implementation("ch.qos.logback:logback-core:1.2.3")
|
2019-12-28 01:02:19 +01:00
|
|
|
compile("org.spigotmc:spigot-api:1.15.1-R0.1-SNAPSHOT")
|
2019-12-26 17:01:27 +01:00
|
|
|
testImplementation(kotlin("test"))
|
|
|
|
testImplementation(kotlin("test-junit5"))
|
2019-12-28 01:02:19 +01:00
|
|
|
testImplementation("io.mockk:mockk:1.9.3")
|
2019-12-26 17:01:27 +01:00
|
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.2")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "11"
|
|
|
|
}
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "11"
|
|
|
|
}
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
testLogging {
|
2020-02-06 20:49:15 +01:00
|
|
|
events("skipped", "failed")
|
|
|
|
// events("passed", "skipped", "failed")
|
2019-12-26 17:01:27 +01:00
|
|
|
}
|
2020-02-08 22:54:28 +01:00
|
|
|
extensions.configure(JacocoTaskExtension::class) {
|
|
|
|
classDumpDir = file("$buildDir/jacoco/classpathdumps")
|
|
|
|
}
|
2019-12-26 17:01:27 +01:00
|
|
|
}
|
2019-12-29 02:50:04 +01:00
|
|
|
dokka {
|
|
|
|
outputFormat = "html"
|
|
|
|
outputDirectory = "$buildDir/dokka"
|
|
|
|
}
|
2020-02-08 22:54:28 +01:00
|
|
|
jacocoTestReport {
|
|
|
|
reports {
|
|
|
|
xml.isEnabled = false
|
|
|
|
csv.isEnabled = false
|
|
|
|
html.isEnabled = true
|
|
|
|
}
|
|
|
|
dependsOn("test")
|
|
|
|
}
|
2019-12-26 17:01:27 +01:00
|
|
|
}
|