Skip to content

Commit 9b56236

Browse files
committed
2021-02-05 Update: Updated build config
1 parent f96199c commit 9b56236

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ checkstyle {
1111

1212
def checkstyleConfigPath = "$rootDir/checkstyle.xml"
1313
def checkstyleConfig = new File(checkstyleConfigPath)
14-
new URL(
15-
"https://raw.githubusercontent.com/fartem/repository-rules/master/rules/java/checkstyle-custom/checkstyle.xml"
16-
).withInputStream {
17-
i -> checkstyleConfig.withOutputStream {
18-
it << i
14+
if (!checkstyleConfig.exists()) {
15+
new URL(
16+
"https://raw.githubusercontent.com/fartem/repository-rules/master/rules/java/checkstyle-custom/checkstyle.xml"
17+
).withInputStream {
18+
i -> checkstyleConfig.withOutputStream {
19+
it << i
20+
}
1921
}
2022
}
2123

0 commit comments

Comments
 (0)