Skip to content

Commit

Permalink
scoverage#171 Remove Groovy configuration from the build
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalroth committed Oct 9, 2021
1 parent 600cbb0 commit e86aea3
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,12 @@ pluginBundle {
}

apply(plugin = "maven-publish")
// TODO #171 remove once all groovy classes are migrated to kotlin
apply(plugin = "groovy")

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

// TODO #171 remove once all groovy classes are migrated to kotlin
val compileKotlinTask = tasks.compileKotlin.get()
tasks {
named<GroovyCompile>("compileGroovy") {
dependsOn(compileKotlin)
classpath = classpath.plus(files(compileKotlinTask.destinationDirectory))
}
}

dependencies {
compileOnly("org.scoverage:scalac-scoverage-plugin_2.13:1.4.2")
implementation(group = "commons-io", name = "commons-io", version = "2.6")
Expand Down Expand Up @@ -137,13 +126,6 @@ gradlePlugin {
testSourceSets(sourceSets["functionalTest"], sourceSets["crossScalaVersionTest"])
}

// TODO #171 remove once all groovy classes are migrated to kotlin
val groovydocJar by tasks.registering(Jar::class) {
from("$buildDir/docs/groovydoc")
archiveClassifier.set("groovydoc")
dependsOn(tasks["groovydoc"])
}

val kotlindocJar by tasks.registering(Jar::class) {
from(tasks.dokkaHtml.get().outputDirectory)
archiveClassifier.set("kotlindoc")
Expand Down Expand Up @@ -209,7 +191,6 @@ configure<PublishingExtension> {
}
}
from(components["java"])
artifact(groovydocJar)
artifact(kotlindocJar)
artifact(sourcesJar)
}
Expand Down

0 comments on commit e86aea3

Please sign in to comment.