-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (58 loc) · 1.86 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
apply from: "dependencies.gradle"
buildscript {
repositories {
google()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
rootProject.ext.kotlinVersion = "1.3.61"
dependencies {
classpath "com.android.tools.build:gradle:3.5.3"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$rootProject.ext.kotlinVersion"
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.18"
classpath "org.jmailen.gradle:kotlinter-gradle:2.2.0"
classpath "com.github.ben-manes:gradle-versions-plugin:0.27.0"
}
}
rootProject.ext {
androidCompileSdkVersion = 29
androidMinSdkVersion = 21
androidTargetSdkVersion = 29
androidBuildToolsVersion = "29.0.2"
androidVersionCode = 1
androidVersionName = String.valueOf(androidVersionCode)
androidTestInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
androidApplicationIdBase = "org.jorge.test"
staticAnalysisReportTarget = "$project.rootDir.absolutePath${File.separatorChar}staticAnalysisReport"
javaVersion = JavaVersion.VERSION_1_8
}
subprojects {
configurations.all {
resolutionStrategy {
forcedModules = [
"org.jetbrains.kotlin:kotlin-stdlib:$rootProject.ext.kotlinVersion",
"com.squareup.moshi:moshi-kotlin-codegen:1.9.2",
"androidx.annotation:annotation:1.1.0",
// https://github.com/mockk/mockk/issues/281
"org.objenesis:objenesis:2.6"
]
}
}
}
apply plugin: "com.github.ben-manes.versions"
dependencyUpdates {
gradleReleaseChannel = "current"
doFirst {
repositories {
google()
jcenter()
mavenCentral()
}
}
rejectVersionIf {
["jsr250-api", "lint-gradle", "aapt2"].contains(it.candidate.moduleIdentifier.name ) ||
it.candidate.version.contains("alpha") ||
it.candidate.version.contains("beta") ||
it.candidate.version.contains("rc")
}
}