plugins { id 'org.jetbrains.kotlin.jvm' id "org.jetbrains.kotlinx.kover" } java { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 withJavadocJar() withSourcesJar() } test { useJUnitPlatform() finalizedBy jacocoTestReport // report is always generated after tests run } jacocoTestReport { dependsOn test // tests are required to run before generating the report reports { xml.required = true csv.required = false html.outputLocation = layout.buildDirectory.dir('jacocoHtml') } } compileKotlin { kotlinOptions.jvmTarget = '1.8' } compileTestKotlin { kotlinOptions.jvmTarget = '1.8' } dependencies { implementation "org.jetbrains.kotlin:kotlin-reflect:1.7.10" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4" testImplementation 'org.jetbrains.kotlin:kotlin-test' testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test' testImplementation 'org.junit.jupiter:junit-jupiter' testImplementation 'org.amshove.kluent:kluent:1.71' } repositories { mavenCentral() } apply from: "../scripts/publish-root.gradle" publishing { publications { release(MavenPublication) { artifactId = "core" from components.java } } }