File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/main/java/org/gradlex/javamodule/moduleinfo Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,16 @@ public void transform(TransformOutputs outputs) {
130130 if (willBeMerged (originalJar , moduleSpecs .values ())) { // No output if this Jar will be merged
131131 return ;
132132 }
133+
134+ // We return the original Jar without further analysis, if there is
135+ // (1) no spec (2) no auto-module check (3) no missing module-info check
136+ if (moduleSpec == null
137+ && !getParameters ().getFailOnAutomaticModules ().get ()
138+ && !getParameters ().getFailOnMissingModuleInfo ().get ()) {
139+ outputs .file (originalJar );
140+ return ;
141+ }
142+
133143 boolean realModule = isModule (originalJar );
134144 if (moduleSpec instanceof ModuleInfo ) {
135145 if (realModule && !((ModuleInfo ) moduleSpec ).patchRealModule ) {
You can’t perform that action at this time.
0 commit comments