Skip to content

Commit

Permalink
Build: remove jacoco
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Apr 23, 2023
1 parent db12e49 commit 2d9916f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ repositories {

plugins {
`kotlin-dsl`
jacoco
signing
kotlin("multiplatform") version "1.8.10" apply false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,19 @@ import org.gradle.api.tasks.bundling.Jar
import org.gradle.api.tasks.testing.Test
import org.gradle.kotlin.dsl.*
import org.gradle.plugins.signing.SigningExtension
import org.gradle.testing.jacoco.plugins.JacocoPluginExtension
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

fun Project.applyKotlinJVM() = apply<KotlinJVMPlugin>()

@Suppress("UNUSED_VARIABLE")
open class KotlinJVMPlugin : Plugin<Project> {
override fun apply(target: Project) = target.run {
apply(plugin = "java")
apply(plugin = "kotlin-platform-jvm")
apply(plugin = "jacoco")
apply(plugin = "maven-publish")
apply(plugin = "org.jetbrains.dokka")
apply(plugin = "signing")

configure<JacocoPluginExtension> {
toolVersion = "0.8.9"
}

configure<KotlinJvmProjectExtension> {
val sourceJar by tasks.creating(Jar::class) {
from(sourceSets["main"].kotlin.sourceDirectories)
Expand Down Expand Up @@ -130,8 +123,6 @@ open class KotlinJVMPlugin : Plugin<Project> {

val test by tasks.getting(Test::class) {
maxHeapSize = "512m"
finalizedBy(tasks.named("jacocoTestReport"))

useJUnitPlatform()
}

Expand Down

0 comments on commit 2d9916f

Please sign in to comment.