Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,17 @@ public void transform(TransformOutputs outputs) {
if (willBeMerged(originalJar, moduleSpecs.values())) { // No output if this Jar will be merged
return;
}

// We return the original Jar without further analysis, if there is
// (1) no spec (2) no auto-module check (3) no missing module-info check (4) no auto-name derivation
if (moduleSpec == null
&& !getParameters().getFailOnAutomaticModules().get()
&& !getParameters().getFailOnMissingModuleInfo().get()
&& !getParameters().getDeriveAutomaticModuleNamesFromFileNames().get()) {
outputs.file(originalJar);
return;
}

boolean realModule = isModule(originalJar);
if (moduleSpec instanceof ModuleInfo) {
if (realModule && !((ModuleInfo) moduleSpec).patchRealModule) {
Expand Down