thunderbird-android/build.gradle
cketti e55e92d51d
Merge pull request #5775 from k9mail/downgrade_commons_io
Downgrade Apache Commons IO to version 2.6
2021-11-22 20:09:05 +01:00

113 lines
3.5 KiB
Groovy

import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
buildscript {
ext {
buildConfig = [
'compileSdk': 31,
'targetSdk': 30,
'minSdk': 21,
'buildTools': '30.0.3',
'robolectricSdk': 30
]
versions = [
'kotlin': '1.5.31',
'kotlinCoroutines': '1.5.2',
'androidxAppCompat': '1.3.1',
'androidxActivity': '1.4.0',
'androidxRecyclerView': '1.2.1',
'androidxLifecycle': '2.4.0',
'androidxAnnotation': '1.2.0',
'androidxBiometric': '1.1.0',
'androidxNavigation': '2.3.5',
'androidxConstraintLayout': '2.1.1',
'androidxWorkManager': '2.7.0',
'androidxFragment': '1.3.6',
'androidxLocalBroadcastManager': '1.0.0',
'androidxCore': '1.7.0',
'androidxCardView': '1.0.0',
'androidxPreference': '1.1.1',
'androidxTestCore': '1.4.0',
'materialComponents': '1.4.0',
'fastAdapter': '5.5.1',
'preferencesFix': '1.1.0',
'okio': '2.10.0',
'moshi': '1.12.0',
'timber': '5.0.1',
'koin': '3.1.3',
'commonsIo': '2.6',
'mime4j': '0.8.6',
'okhttp': '4.9.2',
'minidns': '1.0.0',
'glide': '4.12.0',
'androidxTestRunner': '1.4.0',
'junit': '4.13.2',
'robolectric': '4.6.1',
'mockito': '4.0.0',
'mockitoKotlin': '4.0.0',
'truth': '1.1.3',
'turbine': '0.7.0',
'ktlint': '0.40.0'
]
javaVersion = JavaVersion.VERSION_1_8
kotlinJvmVersion = "1.8"
}
repositories {
mavenCentral()
google()
maven { url "https://plugins.gradle.org/m2/" }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.0.0"
}
}
project.ext {
testCoverage = project.hasProperty('testCoverage')
}
subprojects {
repositories {
mavenCentral()
google()
jcenter()
maven { url 'https://jitpack.io' }
}
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute module("androidx.core:core") using module("androidx.core:core:${versions.androidxCore}")
substitute module("androidx.activity:activity") using module("androidx.activity:activity:${versions.androidxActivity}")
substitute module("androidx.appcompat:appcompat") using module("androidx.appcompat:appcompat:${versions.androidxAppCompat}")
substitute module("androidx.preference:preference") using module("androidx.preference:preference:${versions.androidxPreference}")
}
}
tasks.withType(Test) {
testLogging {
exceptionFormat "full"
showCauses true
showExceptions true
showStackTraces true
}
}
tasks.withType(KotlinCompile) {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}
}
apply plugin: 'org.jlleitschuh.gradle.ktlint'
ktlint {
version = versions.ktlint
}
}