There was an error while loading. Please reload this page.
1 parent f96199c commit 9b56236Copy full SHA for 9b56236
build.gradle
@@ -11,11 +11,13 @@ checkstyle {
11
12
def checkstyleConfigPath = "$rootDir/checkstyle.xml"
13
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
+ if (!checkstyleConfig.exists()) {
+ new URL(
+ "https://raw.githubusercontent.com/fartem/repository-rules/master/rules/java/checkstyle-custom/checkstyle.xml"
+ ).withInputStream {
+ i -> checkstyleConfig.withOutputStream {
19
+ it << i
20
+ }
21
}
22
23
0 commit comments