File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/main/java/org/gradlex/javamodule/moduleinfo Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,17 @@ 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 (4) no auto-name derivation
136+ if (moduleSpec == null
137+ && !getParameters ().getFailOnAutomaticModules ().get ()
138+ && !getParameters ().getFailOnMissingModuleInfo ().get ()
139+ && !getParameters ().getDeriveAutomaticModuleNamesFromFileNames ().get ()) {
140+ outputs .file (originalJar );
141+ return ;
142+ }
143+
133144 boolean realModule = isModule (originalJar );
134145 if (moduleSpec instanceof ModuleInfo ) {
135146 if (realModule && !((ModuleInfo ) moduleSpec ).patchRealModule ) {
You can’t perform that action at this time.
0 commit comments