Skip to content

Commit deae6ee

Browse files
authored
Use checkstyle config from URI (#86)
1 parent 9da3ddf commit deae6ee

File tree

3 files changed

+6
-237
lines changed

3 files changed

+6
-237
lines changed

build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,12 @@ licenseFormat.dependsOn licenseFormatForKotlin
8585
licenseTest.dependsOn licenseTestData
8686

8787
checkstyle {
88-
// configFile file( new File(new URL("https://raw.githubusercontent.com/mapstruct/mapstruct/master/build-config/src/main/resources/build-config/checkstyle.xml").toURI( ) ) )
88+
toolVersion '8.36.1'
89+
config resources.text.fromUri("https://raw.githubusercontent.com/mapstruct/mapstruct/master/build-config/src/main/resources/build-config/checkstyle.xml")
90+
configProperties = [
91+
'checkstyle.cache.file': rootProject.buildDir.toPath().resolve('checkstyle-cachefile').toString(),
92+
'basedir': 'https://raw.githubusercontent.com/mapstruct/mapstruct/master/build-config',
93+
]
8994
}
9095

9196
jacoco {

config/checkstyle/checkstyle.xml

Lines changed: 0 additions & 212 deletions
This file was deleted.

config/checkstyle/import-control.xml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)