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
27 lines
513 B
Kotlin
27 lines
513 B
Kotlin
|
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
import org.gradle.jvm.tasks.Jar
|
|
|
|
description = "Annotation Processor for Kotlin (for using with embeddable compiler)"
|
|
|
|
plugins {
|
|
`java`
|
|
}
|
|
|
|
val packedJars by configurations.creating
|
|
|
|
dependencies {
|
|
packedJars(project(":kotlin-annotation-processing")) { isTransitive = false }
|
|
}
|
|
|
|
publish()
|
|
|
|
runtimeJar(rewriteDepsToShadedCompiler(
|
|
task<ShadowJar>("shadowJar") {
|
|
from(packedJars)
|
|
}
|
|
))
|
|
|
|
sourcesJar()
|
|
javadocJar()
|