Skip to content

Commit f962487

Browse files
committed
Fixed finding JSON / XML to format
1 parent e04e064 commit f962487

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group 'com.formkiq.gradle'
8-
version '1.0.3'
8+
version '1.0.4'
99

1010
allprojects {
1111
apply plugin: 'com.diffplug.spotless'

src/main/java/com/formkiq/gradle/JavaBasePlugin.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,30 +54,26 @@ public void apply(Project root) {
5454
s.java(j -> {
5555
j.eclipse().sortMembersEnabled(true)
5656
.configFile(p.getRootProject().file("spotless.eclipseformat.xml"));
57-
j.targetExclude("**/build/**");
5857
j.removeUnusedImports();
5958
j.removeWildcardImports();
6059

6160
j.licenseHeaderFile(p.getRootProject().file("LICENSE"));
6261
});
6362
s.groovyGradle(g -> {
64-
g.target("*.gradle", "**/*.gradle");
65-
g.targetExclude("**/build/**");
63+
g.target("*.gradle");
6664
g.greclipse();
6765
g.leadingTabsToSpaces(2);
6866
g.trimTrailingWhitespace();
6967
g.endWithNewline();
7068
});
7169
s.json(j -> {
72-
j.target("*.json", "**/*.json");
73-
j.targetExclude("**/build/**");
70+
j.target("*.json", "src/**/*.json");
7471
j.prettier();
7572
});
7673

7774
s.format("xml", f -> {
78-
f.target("*.xml", "**/*.xml");
75+
f.target("*.xml", "src/**/*.xml");
7976
f.eclipseWtp(EclipseWtpFormatterStep.XML);
80-
f.targetExclude("**/build/**");
8177
f.trimTrailingWhitespace();
8278
f.endWithNewline();
8379
});

0 commit comments

Comments
 (0)