thunderbird-android/k9mail-library/build.gradle

71 lines
1.9 KiB
Groovy
Raw Normal View History

2014-12-20 00:09:49 +00:00
apply plugin: 'com.android.library'
if (!rootProject.optimizeForDevelopment) {
apply from: '../gradle/plugins/checkstyle-android.gradle'
apply from: '../gradle/plugins/findbugs-android.gradle'
}
if (rootProject.testCoverage) {
apply plugin: 'jacoco'
}
2014-12-20 00:09:49 +00:00
repositories {
jcenter()
}
dependencies {
compile 'org.apache.james:apache-mime4j-core:0.7.2'
compile 'org.apache.james:apache-mime4j-dom:0.7.2'
2014-12-22 21:36:50 +00:00
compile 'commons-io:commons-io:2.4'
2014-12-20 00:09:49 +00:00
compile 'com.jcraft:jzlib:1.0.7'
compile 'com.beetstra.jutf7:jutf7:1.0.0'
2016-10-19 10:35:28 +00:00
compile "com.android.support:support-annotations:${androidSupportLibraryVersion}"
2015-12-21 02:25:54 +00:00
androidTestCompile 'com.android.support.test:runner:0.4.1'
androidTestCompile 'com.madgag.spongycastle:pg:1.51.0.0'
2016-01-24 17:14:39 +00:00
testCompile 'com.squareup.okio:okio:1.6.0'
2016-10-19 10:35:28 +00:00
testCompile "org.robolectric:robolectric:${robolectricVersion}"
testCompile "junit:junit:${junitVersion}"
testCompile "org.mockito:mockito-core:${mockitoVersion}"
2014-12-20 00:09:49 +00:00
}
android {
2016-10-19 10:35:28 +00:00
compileSdkVersion androidCompileSdkVersion.toInteger()
buildToolsVersion androidBuildToolsVersion
2014-12-20 00:09:49 +00:00
defaultConfig {
minSdkVersion 15
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
2014-12-20 00:09:49 +00:00
}
2016-01-14 23:11:05 +00:00
// for using Apache HTTP Client
useLibrary 'org.apache.http.legacy'
2015-05-21 12:52:50 +00:00
buildTypes {
debug {
testCoverageEnabled rootProject.testCoverage
}
}
2014-12-20 00:09:49 +00:00
lintOptions {
2015-12-22 17:13:05 +00:00
abortOnError false
2014-12-20 00:09:49 +00:00
lintConfig file("$rootProject.projectDir/config/lint/lint.xml")
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
2014-12-20 00:09:49 +00:00
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'LICENSE.txt'
2014-12-20 00:09:49 +00:00
}
}