Build: Fix compatibility with shadow plugin
Apply java-base plugin since shadow task requires sourcesets
This commit is contained in:
@@ -95,7 +95,7 @@ class KotlinModuleShadowTransformer(private val logger: Logger) : Transformer {
|
|||||||
override fun hasTransformedResource(): Boolean =
|
override fun hasTransformedResource(): Boolean =
|
||||||
data.isNotEmpty()
|
data.isNotEmpty()
|
||||||
|
|
||||||
override fun modifyOutputStream(os: ZipOutputStream) {
|
override fun modifyOutputStream(os: ZipOutputStream, preserveFileTimestamps: Boolean) {
|
||||||
for ((path, bytes) in data) {
|
for ((path, bytes) in data) {
|
||||||
os.putNextEntry(ZipEntry(path))
|
os.putNextEntry(ZipEntry(path))
|
||||||
os.write(bytes)
|
os.write(bytes)
|
||||||
|
|||||||
@@ -4,7 +4,9 @@ import org.gradle.jvm.tasks.Jar
|
|||||||
|
|
||||||
description = "Annotation Processor for Kotlin (for using with embeddable compiler)"
|
description = "Annotation Processor for Kotlin (for using with embeddable compiler)"
|
||||||
|
|
||||||
plugins { base }
|
plugins {
|
||||||
|
`java-base`
|
||||||
|
}
|
||||||
|
|
||||||
val packedJars by configurations.creating
|
val packedJars by configurations.creating
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user