Select Git revision
build.gradle.kts
-
Janne Mareike Koschinski authoredJanne Mareike Koschinski authored
build.gradle.kts 1.73 KiB
/*
* Jacoco Cobertura Converter
* Copyright (c) 2021 Janne Mareike Koschinski
*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://mozilla.org/MPL/2.0/.
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.4.21"
id("org.jlleitschuh.gradle.ktlint") version "10.0.0"
id("org.jetbrains.dokka") version "1.4.20"
id("maven-publish")
id("com.vanniktech.maven.publish") version "0.13.0"
}
repositories {
mavenCentral()
exclusiveContent {
forRepository {
maven {
name = "JCenter"
setUrl("https://jcenter.bintray.com/")
}
}
filter {
// Required for Dokka
includeModule("com.soywiz.korlibs.korte", "korte-jvm")
includeModule("org.jetbrains.kotlinx", "kotlinx-html-jvm")
includeGroup("org.jetbrains.dokka")
includeModule("org.jetbrains", "markdown")
}
}
}
dependencies {
api("com.fasterxml.jackson.core", "jackson-databind", "2.12.1")
api("com.fasterxml.jackson.module", "jackson-module-kotlin", "2.12.0")
api("com.fasterxml.jackson.dataformat", "jackson-dataformat-xml", "2.12.1")
testImplementation(kotlin("test-junit5"))
val junit5Version: String by project
testImplementation("org.junit.jupiter", "junit-jupiter-api", junit5Version)
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", junit5Version)
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.6"
freeCompilerArgs = listOf(
"-Xopt-in=kotlin.ExperimentalUnsignedTypes"
)
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}