Files
kotlin-fork/libraries/examples/annotation-processor-example/build.gradle.kts
T
Alexander Likhachev 078849d133 [Build] Fix configuration cache issues with install task
* `install` task provided by `maven` plugin doesn't support configuration cache so replace `maven` plugin with `maven-publish` and use task that is subtype of PublishToMavenRepository. `maven-publish` partially support configuration cache, see https://github.com/gradle/gradle/issues/13468
* Apply `signing` plugin only if it really needed. The plugin doesn't support configuration cache. See https://github.com/gradle/gradle/issues/13470
Relates to #KT-44611
2021-03-11 14:12:35 +03:00

37 lines
765 B
Kotlin

import org.jetbrains.kotlin.pill.PillExtension
import plugins.configureKotlinPomAttributes
description = "Simple Annotation Processor for testing kapt"
plugins {
kotlin("jvm")
`maven-publish` // only used for installing to mavenLocal()
id("jps-compatible")
}
pill {
variant = PillExtension.Variant.FULL
}
dependencies {
implementation(kotlinStdlib())
}
sourceSets {
"test" {}
}
publishing {
publications {
create<MavenPublication>("main") {
from(components["java"])
}
}
repositories {
mavenLocal() // to workaround configuration cache issues with 'publishToMavenLocal' task
}
}
tasks.register("install") {
dependsOn(tasks.named("publishAllPublicationsToMavenLocalRepository"))
}