Skip to content

Commit 947913c

Browse files
committed
Improve reporting task
1 parent 19f8378 commit 947913c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/gradlex/javamodule/dependencies/tasks/ModuleDirectivesScopeCheck.java

+6
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,13 @@ public void analyze() {
104104
}
105105
if (!toRemove.isEmpty()) {
106106
message.append("\n\nPlease remove the following requires directives (or change to runtimeOnly):");
107+
if (inBuildFile) {
108+
message.append("\n ").append(sourceSet.getKey()).append("ModuleInfo {");
109+
}
107110
message.append("\n ").append(String.join("\n ", toRemove));
111+
if (inBuildFile) {
112+
message.append("\n }");
113+
}
108114
}
109115
}
110116
if (message.length() > 0) {

0 commit comments

Comments
 (0)