2014-04-29 15:33:20 +09:00
|
|
|
repositories {
|
2014-09-18 15:18:41 +02:00
|
|
|
mavenCentral()
|
2014-04-29 15:33:20 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
2014-12-18 07:51:34 +01:00
|
|
|
apply plugin: 'findbugs'
|
2014-12-18 11:21:04 +01:00
|
|
|
apply plugin: 'checkstyle'
|
2014-12-19 03:58:03 +01:00
|
|
|
apply plugin: 'jacoco'
|
2014-04-29 15:33:20 +09:00
|
|
|
|
|
|
|
dependencies {
|
2014-12-19 23:05:58 +01:00
|
|
|
testCompile project(':k9mail')
|
2014-12-17 12:47:39 +01:00
|
|
|
testCompile 'junit:junit:4.12'
|
2014-04-29 15:33:20 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
test {
|
2014-12-19 23:05:58 +01:00
|
|
|
compileClasspath += files(project(':k9mail').compileDebugJava.destinationDir)
|
|
|
|
compileClasspath += project(':k9mail').compileDebugJava.classpath
|
|
|
|
runtimeClasspath += files(project(':k9mail').compileDebugJava.destinationDir)
|
|
|
|
runtimeClasspath += project(':k9mail').compileDebugJava.classpath
|
2014-04-29 15:33:20 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-12-18 11:21:04 +01:00
|
|
|
checkstyle {
|
|
|
|
ignoreFailures = true
|
|
|
|
configFile file("$rootProject.projectDir/config/checkstyle/checkstyle.xml")
|
|
|
|
}
|
|
|
|
|
2014-12-18 07:51:34 +01:00
|
|
|
findbugs {
|
|
|
|
ignoreFailures = true
|
|
|
|
effort = 'max'
|
|
|
|
includeFilter = file("$rootProject.projectDir/config/findbugs/include_filter.xml")
|
|
|
|
excludeFilter = file("$rootProject.projectDir/config/findbugs/exclude_filter.xml")
|
|
|
|
}
|
|
|
|
|
2014-12-18 11:21:04 +01:00
|
|
|
check.dependsOn 'checkstyleTest'
|
2014-12-18 07:51:34 +01:00
|
|
|
check.dependsOn 'findbugsTest'
|
|
|
|
|
2014-12-19 23:05:58 +01:00
|
|
|
compileTestJava.dependsOn ':k9mail:compileDebugJava'
|