Add Checkstyle to build

Fixes gh-393
This commit is contained in:
Vedran Pavic
2016-03-06 22:42:18 +01:00
committed by Rob Winch
parent f0200696ef
commit 4d010b23b8
4 changed files with 208 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ apply plugin: 'propdeps'
apply plugin: 'propdeps-idea'
apply plugin: 'propdeps-eclipse'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'checkstyle'
group = 'org.springframework.session'
@@ -75,6 +76,12 @@ task integrationTest(type: Test, dependsOn: jar) {
}
check.dependsOn integrationTest
checkstyle {
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
configProperties.configDir = configFile.parentFile
toolVersion = '6.16.1'
}
eclipse {
classpath {
plusConfigurations += [ configurations.integrationTestCompile ]
@@ -83,4 +90,4 @@ eclipse {
project.idea.module {
scopes.TEST.plus += [project.configurations.integrationTestRuntime]
}
}