thunderbird-android/k9mail-library/build.gradle

75 lines
2.4 KiB
Groovy
Raw Normal View History

2014-12-20 00:09:49 +00:00
apply plugin: 'com.android.library'
2017-09-07 03:00:21 +00:00
apply plugin: 'kotlin-android'
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
dependencies {
2018-02-17 03:05:09 +00:00
implementation 'org.apache.james:apache-mime4j-core:0.8.1'
implementation 'org.apache.james:apache-mime4j-dom:0.8.1'
implementation "com.squareup.okio:okio:${okioVersion}"
implementation 'commons-io:commons-io:2.4'
implementation 'com.jcraft:jzlib:1.0.7'
implementation 'com.beetstra.jutf7:jutf7:1.0.0'
implementation "com.android.support:support-annotations:${androidSupportLibraryVersion}"
implementation "com.jakewharton.timber:timber:${timberVersion}"
2018-02-17 03:05:09 +00:00
androidTestImplementation 'com.android.support.test:runner:0.4.1'
androidTestImplementation 'com.madgag.spongycastle:pg:1.51.0.0'
2018-02-17 03:05:09 +00:00
testImplementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:${kotlinVersion}"
testImplementation "org.robolectric:robolectric:${robolectricVersion}"
testImplementation "junit:junit:${junitVersion}"
testImplementation "com.google.truth:truth:${truthVersion}"
testImplementation "org.mockito:mockito-core:${mockitoVersion}"
// The Android Gradle plugin doesn't seem to put the Apache HTTP Client on the runtime classpath anymore when
// running JVM tests.
testImplementation 'org.apache.httpcomponents:httpclient:4.5.5'
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
}
}