Bug 1954548 - Clean up plugins/dependencies using version catalog r=android-reviewers,RyanVM,jonalmeida
Simple changes in this one, just to unblock some other patches, will clean up in more detail in followup patches Differential Revision: https://phabricator.services.mozilla.com/D239802
This commit is contained in:
16
build.gradle
16
build.gradle
@@ -14,20 +14,12 @@ buildscript {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
|
||||||
detekt_plugin = libs.versions.detekt.get()
|
|
||||||
python_envs_plugin = libs.versions.python.envs.plugin.get()
|
|
||||||
|
|
||||||
// Used in mobile/android/fenix/app/build.gradle
|
|
||||||
protobuf_plugin = libs.versions.protobuf.plugin.get()
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'org.mozilla.apilint:apilint:0.5.3'
|
classpath libs.apilint
|
||||||
classpath libs.tools.androidgradle
|
classpath libs.tools.androidgradle
|
||||||
classpath 'org.apache.commons:commons-exec:1.3'
|
classpath libs.commons.exec
|
||||||
classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.25.0'
|
classpath libs.spotless
|
||||||
classpath 'org.tomlj:tomlj:1.1.0'
|
classpath libs.tomlj
|
||||||
|
|
||||||
// Used in mobile/android/fenix/app/build.gradle
|
// Used in mobile/android/fenix/app/build.gradle
|
||||||
classpath libs.androidx.navigation.safeargs
|
classpath libs.androidx.navigation.safeargs
|
||||||
|
|||||||
@@ -94,6 +94,11 @@ robolectric = "4.14.1"
|
|||||||
adjust = "5.1.0"
|
adjust = "5.1.0"
|
||||||
sentry = "8.5.0"
|
sentry = "8.5.0"
|
||||||
|
|
||||||
|
apilint = "0.5.3"
|
||||||
|
commons-exec = "1.3"
|
||||||
|
spotless = "6.25.0"
|
||||||
|
tomlj = "1.1.0"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
|
|
||||||
kotlin-coroutines = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "coroutines" }
|
kotlin-coroutines = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "coroutines" }
|
||||||
@@ -240,9 +245,16 @@ ktlint = { group = "com.pinterest", name = "ktlint", version.ref = "ktlint" }
|
|||||||
# Third party library versions
|
# Third party library versions
|
||||||
adjust = { group = "com.adjust.sdk", name = "adjust-android", version.ref = "adjust" }
|
adjust = { group = "com.adjust.sdk", name = "adjust-android", version.ref = "adjust" }
|
||||||
|
|
||||||
|
apilint = { group = "org.mozilla.apilint", name = "apilint", version.ref = "apilint" }
|
||||||
|
commons-exec = { group = "org.apache.commons", name = "commons-exec", version.ref = "commons-exec" }
|
||||||
|
spotless = { group = "com.diffplug.spotless", name = "spotless-plugin-gradle", version.ref = "spotless" }
|
||||||
|
tomlj = { group = "org.tomlj", name = "tomlj", version.ref = "tomlj" }
|
||||||
|
|
||||||
[plugins]
|
[plugins]
|
||||||
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
|
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
|
||||||
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
||||||
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
||||||
kotlin-dsl = { id = "org.gradle.kotlin.kotlin-dsl", version.ref = "kotlin-dsl" }
|
kotlin-dsl = { id = "org.gradle.kotlin.kotlin-dsl", version.ref = "kotlin-dsl" }
|
||||||
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp-plugin" }
|
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp-plugin" }
|
||||||
|
python-envs-plugin = {id = "com.jetbrains.python.envs", version.ref = "python-envs-plugin"}
|
||||||
|
protobuf-plugin = {id = "com.google.protobuf", version.ref = "protobuf-plugin"}
|
||||||
|
|||||||
@@ -22,13 +22,6 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath libs.tools.androidgradle
|
classpath libs.tools.androidgradle
|
||||||
}
|
}
|
||||||
|
|
||||||
// Variables in plugins {} aren't directly supported. Hack around it by setting an
|
|
||||||
// intermediate variable which can pull from DependenciesPlugin.kt and be used later.
|
|
||||||
ext {
|
|
||||||
detekt_plugin = libs.versions.detekt.get()
|
|
||||||
python_envs_plugin = libs.versions.python.envs.plugin.get()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "com.jetbrains.python.envs" version "$python_envs_plugin"
|
alias(libs.plugins.python.envs.plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "com.jetbrains.python.envs" version "$python_envs_plugin"
|
alias(libs.plugins.python.envs.plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "com.jetbrains.python.envs" version "$python_envs_plugin"
|
alias(libs.plugins.python.envs.plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "com.jetbrains.python.envs" version "$python_envs_plugin"
|
alias(libs.plugins.python.envs.plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "com.jetbrains.python.envs" version "$python_envs_plugin"
|
alias(libs.plugins.python.envs.plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "com.jetbrains.python.envs" version "$python_envs_plugin"
|
alias(libs.plugins.python.envs.plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ buildscript {
|
|||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.kotlin.android)
|
alias(libs.plugins.kotlin.android)
|
||||||
alias(libs.plugins.kotlin.compose)
|
alias(libs.plugins.kotlin.compose)
|
||||||
id "com.jetbrains.python.envs" version "$python_envs_plugin"
|
alias(libs.plugins.python.envs.plugin)
|
||||||
id "com.google.protobuf" version "$protobuf_plugin"
|
alias(libs.plugins.protobuf.plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
|||||||
@@ -31,14 +31,6 @@ buildscript {
|
|||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
}
|
}
|
||||||
|
|
||||||
// Variables in plugins {} aren't directly supported. Hack around it by setting an
|
|
||||||
// intermediate variable which can pull from DependenciesPlugin.kt and be used later.
|
|
||||||
ext {
|
|
||||||
detekt_plugin = libs.versions.detekt.get()
|
|
||||||
protobuf_plugin = libs.versions.protobuf.plugin.get()
|
|
||||||
python_envs_plugin = libs.versions.python.envs.plugin.get()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.kotlin.android)
|
alias(libs.plugins.kotlin.android)
|
||||||
alias(libs.plugins.kotlin.compose)
|
alias(libs.plugins.kotlin.compose)
|
||||||
id "com.jetbrains.python.envs" version "$python_envs_plugin"
|
alias(libs.plugins.python.envs.plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
|||||||
@@ -26,13 +26,6 @@ buildscript {
|
|||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
}
|
}
|
||||||
|
|
||||||
// Variables in plugins {} aren't directly supported. Hack around it by setting an
|
|
||||||
// intermediate variable which can pull from DependenciesPlugin.kt and be used later.
|
|
||||||
ext {
|
|
||||||
detekt_plugin = libs.versions.detekt.get()
|
|
||||||
python_envs_plugin = libs.versions.python.envs.plugin.get()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
|
|||||||
Reference in New Issue
Block a user