a42f607ecf
With gradle > 5.0 `publish()` helper call should be done before `noDefaultJar()` or any other artifact hacks, otherwise singing plugin doesn't sign any jars
38 lines
745 B
Kotlin
38 lines
745 B
Kotlin
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
import org.gradle.api.internal.artifacts.publish.ArchivePublishArtifact
|
|
import org.gradle.jvm.tasks.Jar
|
|
|
|
description = "Kapt - Annotation processing for Kotlin"
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
}
|
|
|
|
val packedJars by configurations.creating
|
|
|
|
dependencies {
|
|
compile(kotlinStdlib())
|
|
packedJars(project(":kotlin-annotation-processing")) { isTransitive = false }
|
|
runtime(projectRuntimeJar(":kotlin-compiler-embeddable"))
|
|
}
|
|
|
|
projectTest {
|
|
workingDir = projectDir
|
|
}
|
|
|
|
publish()
|
|
|
|
val jar: Jar by tasks
|
|
jar.apply {
|
|
classifier = "base"
|
|
}
|
|
|
|
runtimeJar(rewriteDepsToShadedCompiler(
|
|
task<ShadowJar>("shadowJar") {
|
|
from(packedJars)
|
|
}
|
|
))
|
|
|
|
sourcesJar()
|
|
javadocJar()
|