Skip to content

Commit

Permalink
Move gradle dependency from version catalog to gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
CheK539 committed Oct 16, 2023
1 parent 63316c9 commit 8d1e0d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ buildscript {
mavenCentral()
}
dependencies {
classpath(libs.gradle)
// Required manually provide Android's dependencies here that CodeQL's autobuild works correctly
// https://github.com/github/codeql-action/issues/1417#issuecomment-1737158409
classpath("com.android.tools.build:gradle:${libs.versions.gradleVersion.get()}")
classpath(libs.kotlin.plugin)
classpath(libs.navigation.safe.args.plugin)
// NOTE: Do not place your application dependencies here; they belong
Expand Down
11 changes: 5 additions & 6 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ testRunner = "1.5.2"
espressoCore = "3.5.1"

[libraries]
gradle = { group = "com.android.tools.build", name = "gradle", version.ref = "gradleVersion" }
kotlin-plugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlinVersion" }
navigation-safe-args-plugin = { group = "androidx.navigation", name = "navigation-safe-args-gradle-plugin", version.ref = "navigation" }

Expand All @@ -49,8 +48,8 @@ material = { group = "com.google.android.material", name = "material", version.r

picasso = { group = "com.squareup.picasso", name = "picasso", version.ref = "picasso" }

retrofit-retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
retrofit-converter-moshi = { module = "com.squareup.retrofit2:converter-moshi", version.ref = "retrofit" }
retrofit-retrofit = { group = "com.squareup.retrofit2", name = "retrofit", version.ref = "retrofit" }
retrofit-converter-moshi = { group = "com.squareup.retrofit2", name = "converter-moshi", version.ref = "retrofit" }

moshi-moshi = { group = "com.squareup.moshi", name = "moshi", version.ref = "moshi" }
moshi-adapters = { group = "com.squareup.moshi", name = "moshi-adapters", version.ref = "moshi" }
Expand All @@ -60,10 +59,10 @@ okhttp-okhttp = { group = "com.squareup.okhttp3", name = "okhttp", version.ref =
okhttp-logging-interceptor = { group = "com.squareup.okhttp3", name = "logging-interceptor", version.ref = "okhttp" }
okhttp-mockwebserver = { group = "com.squareup.okhttp3", name = "mockwebserver", version.ref = "okhttp" }

work-runtime = { module = "androidx.work:work-runtime-ktx", version.ref = "work" }
work-gcm = { module = "androidx.work:work-gcm", version.ref = "work" }
work-runtime = { group = "androidx.work", name = "work-runtime-ktx", version.ref = "work" }
work-gcm = { group = "androidx.work", name = "work-gcm", version.ref = "work" }

preference-ktx = { module = "androidx.preference:preference-ktx", version.ref = "preference" }
preference-ktx = { group = "androidx.preference", name = "preference-ktx", version.ref = "preference" }

test-runner = { group = "androidx.test", name = "runner", version.ref = "testRunner" }
test-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
Expand Down

0 comments on commit 8d1e0d9

Please sign in to comment.