We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19f8378 commit 947913cCopy full SHA for 947913c
src/main/java/org/gradlex/javamodule/dependencies/tasks/ModuleDirectivesScopeCheck.java
@@ -104,7 +104,13 @@ public void analyze() {
104
}
105
if (!toRemove.isEmpty()) {
106
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
+ }
110
message.append("\n ").append(String.join("\n ", toRemove));
111
112
+ message.append("\n }");
113
114
115
116
if (message.length() > 0) {
0 commit comments