aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src/main
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-10-08 23:50:29 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-10-08 23:59:19 +0300
commit2baf338a1eeffa5104ad9d9ec8f1abb0b4c16cf9 (patch)
tree37291ed15e6ae74e45563e2f9cb57a148891ede1 /buildSrc/src/main
parent206829dfac31505f078f1c114785c550f2135742 (diff)
downloaddokka-2baf338a1eeffa5104ad9d9ec8f1abb0b4c16cf9.tar.gz
dokka-2baf338a1eeffa5104ad9d9ec8f1abb0b4c16cf9.tar.bz2
dokka-2baf338a1eeffa5104ad9d9ec8f1abb0b4c16cf9.zip
Update ShadowJar Gradle plugin to 2.0.1
Diffstat (limited to 'buildSrc/src/main')
-rw-r--r--buildSrc/src/main/groovy/org/jetbrains/PluginXmlTransformer.groovy11
1 files changed, 7 insertions, 4 deletions
diff --git a/buildSrc/src/main/groovy/org/jetbrains/PluginXmlTransformer.groovy b/buildSrc/src/main/groovy/org/jetbrains/PluginXmlTransformer.groovy
index db84fdc0..7482a01a 100644
--- a/buildSrc/src/main/groovy/org/jetbrains/PluginXmlTransformer.groovy
+++ b/buildSrc/src/main/groovy/org/jetbrains/PluginXmlTransformer.groovy
@@ -2,10 +2,11 @@ package org.jetbrains
import com.github.jengelman.gradle.plugins.shadow.relocation.Relocator
import com.github.jengelman.gradle.plugins.shadow.transformers.Transformer
+import com.github.jengelman.gradle.plugins.shadow.transformers.TransformerContext
import groovy.xml.XmlUtil
-import org.apache.tools.zip.ZipEntry
-import org.apache.tools.zip.ZipOutputStream
import org.gradle.api.file.FileTreeElement
+import shadow.org.apache.tools.zip.ZipEntry
+import shadow.org.apache.tools.zip.ZipOutputStream
public class PluginXmlTransformer implements Transformer {
private Map<String, Node> transformedPluginXmlFiles = new HashMap<>();
@@ -16,10 +17,12 @@ public class PluginXmlTransformer implements Transformer {
}
@Override
- void transform(String path, InputStream inputStream, List<Relocator> relocators) {
+ void transform(TransformerContext context) {
+ def path = context.path
+ def inputStream = context.is
System.out.println(path)
Node node = new XmlParser().parse(inputStream)
- relocateXml(node, relocators)
+ relocateXml(node, context.relocators)
transformedPluginXmlFiles.put(path, node)
}