diff --git a/checkstyle.xml b/checkstyle.xml new file mode 100644 index 0000000..eeceb9a --- /dev/null +++ b/checkstyle.xml @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/icicle-processor/build.gradle b/icicle-processor/build.gradle index 50d863d..4186c5b 100644 --- a/icicle-processor/build.gradle +++ b/icicle-processor/build.gradle @@ -1,8 +1,15 @@ apply plugin: 'java' +apply plugin: 'checkstyle' sourceCompatibility = 1.7 targetCompatibility = 1.7 +checkstyle { + configFile rootProject.file('checkstyle.xml') + showViolations true + configProperties = ['checkstyle.cache.file': rootProject.file('build/checkstyle.cache')] +} + dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) diff --git a/icicle/build.gradle b/icicle/build.gradle index da6eac3..daea8be 100644 --- a/icicle/build.gradle +++ b/icicle/build.gradle @@ -21,8 +21,14 @@ android { } } +apply plugin: 'checkstyle' + +checkstyle { + configFile rootProject.file('checkstyle.xml') + showViolations true + configProperties = ['checkstyle.cache.file': rootProject.file('build/checkstyle.cache')] +} + dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) compile project(':icicle-processor') - testCompile 'junit:junit:4.12' }