Skip to content

Commit

Permalink
Manage kapt version sets through Java Platform plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmaggi committed Jan 13, 2020
1 parent e5da487 commit 5df57f4
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 10 deletions.
3 changes: 2 additions & 1 deletion about/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ android {

dependencies {
api(platform(project(":depconstraints")))
kapt(platform(project(":depconstraints")))

implementation(project(":app"))
implementation(project(":core"))
Expand All @@ -57,7 +58,7 @@ dependencies {
implementation("com.android.support:customtabs")
implementation("com.github.bumptech.glide:glide")

kapt("com.google.dagger:dagger-compiler:${Versions.dagger}")
kapt("com.google.dagger:dagger-compiler")
}

kapt {
Expand Down
3 changes: 2 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ android {

dependencies {
api(platform(project(":depconstraints")))
kapt(platform(project(":depconstraints")))

implementation(project(":core"))
implementation("androidx.appcompat:appcompat")
Expand All @@ -100,7 +101,7 @@ dependencies {
implementation("com.github.bumptech.glide:recyclerview-integration")
implementation("com.google.firebase:firebase-core")

kapt("com.google.dagger:dagger-compiler:${Versions.dagger}")
kapt("com.google.dagger:dagger-compiler")
}

kapt.useBuildCache = true
2 changes: 0 additions & 2 deletions buildSrc/src/main/java/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ object Versions {
val minSdk = 23
val gradle_plugin = "3.6.0-rc01"

val dagger = "2.23.2"
val fabric = "1.28.0"
val glide = "4.9.0"
val googleServices = "4.3.0"
val kotlin = "1.3.61"
}
7 changes: 4 additions & 3 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ android {

dependencies {
api(platform(project(":depconstraints")))
kapt(platform(project(":depconstraints")))

implementation(project(":bypass"))

Expand All @@ -86,9 +87,9 @@ dependencies {
api("org.jetbrains.kotlinx:kotlinx-coroutines-core")
api("org.jetbrains.kotlinx:kotlinx-coroutines-android")

kapt("com.github.bumptech.glide:compiler:${Versions.glide}")
kapt("com.github.bumptech.glide:glide:${Versions.glide}")
kapt("com.google.dagger:dagger-compiler:${Versions.dagger}")
kapt("com.github.bumptech.glide:compiler")
kapt("com.github.bumptech.glide:glide")
kapt("com.google.dagger:dagger-compiler")
}

kapt.useBuildCache = true
Expand Down
2 changes: 2 additions & 0 deletions depconstraints/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ dependencies {
api("com.crashlytics.sdk.android:crashlytics:$crashlytics")
api("com.github.bumptech.glide:glide:$glide")
api("com.github.bumptech.glide:recyclerview-integration:$glide")
api("com.github.bumptech.glide:compiler:$glide")
api("com.google.code.gson:gson:$gson")
api("com.google.firebase:firebase-core:$firebase")
api("com.squareup.okhttp3:okhttp:$okhttp")
Expand All @@ -86,6 +87,7 @@ dependencies {

api("com.google.android.material:material:$material")
api("com.google.dagger:dagger:$dagger")
api("com.google.dagger:dagger-compiler:$dagger")
api("androidx.arch.core:core-common:$androidxCoreRuntime")
api("androidx.arch.core:core-runtime:$androidxCoreRuntime")
api("androidx.core:core-ktx:$coreKtx")
Expand Down
3 changes: 2 additions & 1 deletion designernews/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ android {

dependencies {
api(platform(project(":depconstraints")))
kapt(platform(project(":depconstraints")))

implementation(project(":app"))
implementation(project(":core"))
Expand All @@ -59,7 +60,7 @@ dependencies {
implementation("com.android.support:customtabs")
implementation("com.github.bumptech.glide:glide")

kapt("com.google.dagger:dagger-compiler:${Versions.dagger}")
kapt("com.google.dagger:dagger-compiler")
}

kapt.useBuildCache = true
Expand Down
3 changes: 2 additions & 1 deletion dribbble/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ android {

dependencies {
api(platform(project(":depconstraints")))
kapt(platform(project(":depconstraints")))

implementation(project(":app"))
implementation(project(":core"))
Expand All @@ -61,7 +62,7 @@ dependencies {
implementation("com.android.support:palette-v7")
implementation("com.github.bumptech.glide:recyclerview-integration")

kapt("com.google.dagger:dagger-compiler:${Versions.dagger}")
kapt("com.google.dagger:dagger-compiler")
}

kapt.useBuildCache = true
3 changes: 2 additions & 1 deletion search/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,14 @@ android {

dependencies {
api(platform(project(":depconstraints")))
kapt(platform(project(":depconstraints")))

implementation(project(":app"))
implementation(project(":core"))

implementation("com.github.bumptech.glide:recyclerview-integration")
implementation("org.jetbrains.kotlin:kotlin-reflect")
kapt("com.google.dagger:dagger-compiler:${Versions.dagger}")
kapt("com.google.dagger:dagger-compiler")
}

kapt.useBuildCache = true

0 comments on commit 5df57f4

Please sign in to comment.