move kotlin,kgp and serialization to libs

This commit is contained in:
IndusAryan 2023-09-13 14:43:10 +05:30
parent a391630e50
commit 23686b4350
2 changed files with 6 additions and 4 deletions

View File

@ -1,18 +1,17 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
val kotlinVersion = "1.9.10"
repositories {
google()
mavenCentral()
}
dependencies {
classpath(libs.gradle)
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion")
classpath(libs.kotlin.gradle.plugin)
classpath(libs.kotlin.serialization)
// NOTE: Do not place your application dependencies here, they belong
// to the individual module build.gradle files
// in the individual module build.gradle.kts files
}
}

View File

@ -2,6 +2,7 @@
appcompat = "1.6.1"
core = "1.12.0"
gradle = "8.1.1"
kotlinVersion = "1.9.10"
lifecycle = "2.6.2"
constraintlayout = "2.1.4"
material = "1.9.0"
@ -32,6 +33,8 @@ androidx-core = { group = "androidx.core", name = "core", version.ref = "core" }
androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
androidx-fragment = { group = "androidx.fragment", name = "fragment-ktx", version.ref = "fragment" }
gradle = { module = "com.android.tools.build:gradle", version.ref = "gradle" }
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlinVersion" }
kotlin-serialization = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "kotlinVersion" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
androidx-navigation-fragment = { group = "androidx.navigation", name = "navigation-fragment-ktx", version.ref = "navigation" }
androidx-navigation-ui = { group = "androidx.navigation", name = "navigation-ui-ktx", version.ref = "navigation" }