Skip to content

Commit b65221a

Browse files
committed
Adapt the JRubyDirInfoTransformer class to the newer API contract from the shadow plugin
1 parent cba9520 commit b65221a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jar-plugin/src/main/groovy/com/github/jrubygradle/jar/internal/JRubyDirInfoTransformer.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import java.nio.file.Files
44
import java.nio.file.Path
55
import java.nio.file.Paths
66

7-
import org.apache.tools.zip.ZipOutputStream
87
import org.apache.tools.zip.ZipEntry
98
import org.codehaus.plexus.util.IOUtil
109
import org.gradle.api.file.FileTreeElement
1110

12-
import com.github.jengelman.gradle.plugins.shadow.relocation.Relocator
11+
import shadow.org.apache.tools.zip.ZipOutputStream
1312
import com.github.jengelman.gradle.plugins.shadow.transformers.Transformer
13+
import com.github.jengelman.gradle.plugins.shadow.transformers.TransformerContext
1414

1515
/**
1616
* JRubyDirInfoTransformer implements a {@link Transformer} interface.
@@ -44,7 +44,7 @@ class JRubyDirInfoTransformer implements Transformer {
4444
}
4545

4646
/** 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) {
4848
return
4949
}
5050

@@ -63,7 +63,7 @@ class JRubyDirInfoTransformer implements Transformer {
6363
* This method will also clean up our tempdir to make sure we don't
6464
* clutter the user's machine with junk
6565
*/
66-
void modifyOutputStream(ZipOutputStream os) {
66+
void modifyOutputStream(ZipOutputStream os, boolean preserveFileTimestamps) {
6767
processDirectory(os, tmpDir)
6868
deleteTempDirectory(tmpDir)
6969
}

0 commit comments

Comments
 (0)