File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/main/java/org/gradlex/javamodule/moduleinfo Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1616
1717package org .gradlex .javamodule .moduleinfo ;
1818
19- import org .gradle .api .artifacts .CacheableRule ;
19+ import org .gradle .api .artifacts .transform . CacheableTransform ;
2020import org .gradle .api .artifacts .transform .InputArtifact ;
2121import org .gradle .api .artifacts .transform .TransformAction ;
2222import org .gradle .api .artifacts .transform .TransformOutputs ;
2727import org .gradle .api .provider .MapProperty ;
2828import org .gradle .api .provider .Property ;
2929import org .gradle .api .provider .Provider ;
30+ import org .gradle .api .tasks .Classpath ;
3031import org .gradle .api .tasks .Input ;
3132import org .gradle .api .tasks .InputFiles ;
3233import org .objectweb .asm .ClassReader ;
8081 * The transformation fails the build if a Jar does not contain information and no extra information
8182 * was defined for it. This way we make sure that all Jars are turned into modules.
8283 */
83- @ CacheableRule
84+ @ CacheableTransform
8485public abstract class ExtraJavaModuleInfoTransform implements TransformAction <ExtraJavaModuleInfoTransform .Parameter > {
8586
8687 private static final Pattern MODULE_INFO_CLASS_MRJAR_PATH = Pattern .compile ("META-INF/versions/\\ d+/module-info.class" );
@@ -111,6 +112,7 @@ public interface Parameter extends TransformParameters {
111112 ListProperty <String > getMergeJarIds ();
112113
113114 @ InputFiles
115+ @ Classpath
114116 ListProperty <RegularFile > getMergeJars ();
115117
116118 @ Input
@@ -121,6 +123,7 @@ public interface Parameter extends TransformParameters {
121123 }
122124
123125 @ InputArtifact
126+ @ Classpath
124127 protected abstract Provider <FileSystemLocation > getInputArtifact ();
125128
126129 @ Override
You can’t perform that action at this time.
0 commit comments