Build: Fix compatibility with shadow plugin

Apply java-base plugin since shadow task requires sourcesets
This commit is contained in:
Vyacheslav Gerasimov
2018-11-28 17:31:57 +03:00
parent df9ca1b6d9
commit d32f6fb382
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ class KotlinModuleShadowTransformer(private val logger: Logger) : Transformer {
override fun hasTransformedResource(): Boolean =
data.isNotEmpty()
override fun modifyOutputStream(os: ZipOutputStream) {
override fun modifyOutputStream(os: ZipOutputStream, preserveFileTimestamps: Boolean) {
for ((path, bytes) in data) {
os.putNextEntry(ZipEntry(path))
os.write(bytes)