We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 266b646 commit 0170e28Copy full SHA for 0170e28
build.gradle
@@ -14,11 +14,13 @@ checkstyle {
14
15
def checkstyleConfigPath = "$rootDir/checkstyle.xml"
16
def checkstyleConfig = new File(checkstyleConfigPath)
17
- new URL(
18
- "https://raw.githubusercontent.com/fartem/repository-rules/master/rules/java/checkstyle/checkstyle.xml"
19
- ).withInputStream {
20
- i -> checkstyleConfig.withOutputStream {
21
- it << i
+ if (!checkstyleConfig.exists()) {
+ new URL(
+ "https://raw.githubusercontent.com/fartem/repository-rules/master/rules/java/checkstyle/checkstyle.xml"
+ ).withInputStream {
+ i -> checkstyleConfig.withOutputStream {
22
+ it << i
23
+ }
24
}
25
26
0 commit comments