plugins { kotlin("jvm") version "1.3.61" id("org.jlleitschuh.gradle.ktlint") version "9.0.0" id("com.github.johnrengelman.shadow") version "5.2.0" id("org.jetbrains.dokka") version "0.10.0" jacoco } group = "de.augustodwenger" version = "0.2.0-SNAPSHOT" repositories { mavenCentral() maven { url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots") } maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") } maven { url = uri("https://dl.bintray.com/kotlin/dokka") } } 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") compile("org.spigotmc:spigot-api:1.15.1-R0.1-SNAPSHOT") testImplementation(kotlin("test")) testImplementation(kotlin("test-junit5")) testImplementation("io.mockk:mockk:1.9.3") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.2") } tasks { compileKotlin { kotlinOptions.jvmTarget = "11" } compileTestKotlin { kotlinOptions.jvmTarget = "11" } test { useJUnitPlatform() testLogging { events("skipped", "failed") // events("passed", "skipped", "failed") } extensions.configure(JacocoTaskExtension::class) { classDumpDir = file("$buildDir/jacoco/classpathdumps") } } dokka { outputFormat = "html" outputDirectory = "$buildDir/dokka" } jacocoTestReport { reports { xml.isEnabled = false csv.isEnabled = false html.isEnabled = true } dependsOn("test") } }