build: extract all versions to ext

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-10-08 00:22:12 +05:30
parent 7544eb96fc
commit 196940778f
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
3 changed files with 24 additions and 16 deletions

View file

@ -1,14 +1,25 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
activity_version = "1.2.0-beta01"
agp_version = "4.2.0-alpha13"
appcompat_version = "1.3.0-alpha02"
browser_version = "1.3.0-alpha06"
compose_version = "1.0.0-alpha04"
core_version = "1.5.0-alpha04"
coroutines_version = "1.3.9"
customtabs_version = "3.0.2"
dagger_version = "2.29.1"
desugar_version = "1.0.10"
hilt_androidx_version = "1.0.0-alpha02"
hilt_dagger_version = "2.29.1-alpha"
junit_version = "4.13"
kotlin_version = "1.4.10"
lifecycle_version = "2.3.0-beta01"
material_version = "1.3.0-alpha03"
moshi_version = "1.9.3"
okhttp_version = "3.14.9"
retrofit_version = "2.9.0"
room_version = "2.3.0-alpha02"
}
repositories {
@ -16,7 +27,7 @@ buildscript {
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.0-alpha13"
classpath "com.android.tools.build:gradle:$agp_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_dagger_version"
}
@ -63,7 +74,7 @@ subprojects {
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = JavaVersion.VERSION_1_8
}
}
}