@@ -4,13 +4,13 @@ import java.nio.file.Files
4
4
import java.nio.file.Path
5
5
import java.nio.file.Paths
6
6
7
- import org.apache.tools.zip.ZipOutputStream
8
7
import org.apache.tools.zip.ZipEntry
9
8
import org.codehaus.plexus.util.IOUtil
10
9
import org.gradle.api.file.FileTreeElement
11
10
12
- import com.github.jengelman.gradle.plugins.shadow.relocation.Relocator
11
+ import shadow.org.apache.tools.zip.ZipOutputStream
13
12
import com.github.jengelman.gradle.plugins.shadow.transformers.Transformer
13
+ import com.github.jengelman.gradle.plugins.shadow.transformers.TransformerContext
14
14
15
15
/**
16
16
* JRubyDirInfoTransformer implements a {@link Transformer} interface.
@@ -44,7 +44,7 @@ class JRubyDirInfoTransformer implements Transformer {
44
44
}
45
45
46
46
/* * No-op since we don't transform the actual file */
47
- void transform (String path , InputStream is , List< Relocator > relocators ) {
47
+ void transform (TransformerContext context ) {
48
48
return
49
49
}
50
50
@@ -63,7 +63,7 @@ class JRubyDirInfoTransformer implements Transformer {
63
63
* This method will also clean up our tempdir to make sure we don't
64
64
* clutter the user's machine with junk
65
65
*/
66
- void modifyOutputStream (ZipOutputStream os ) {
66
+ void modifyOutputStream (ZipOutputStream os , boolean preserveFileTimestamps ) {
67
67
processDirectory(os, tmpDir)
68
68
deleteTempDirectory(tmpDir)
69
69
}
0 commit comments