Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 1 | // This file applies dependencies common to projects in buildSrc |
| 2 | |
| 3 | apply from: "${buildscript.sourceFile.parent}/kotlin-dsl-dependency.gradle" |
Jeff Gaston | d82bdcd | 2023-08-08 12:17:33 -0400 | [diff] [blame] | 4 | // copy findGradleKotlinDsl to a local variable: https://github.com/gradle/gradle/issues/26057 |
| 5 | def findGradleKotlinDsl = project.findGradleKotlinDsl |
Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 6 | dependencies { |
| 7 | |
| 8 | // Gradle APIs |
| 9 | implementation(gradleApi()) |
| 10 | compileOnly(findGradleKotlinDsl()) |
Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 11 | |
| 12 | // Android Gradle Plugin APIs used by Stable AIDL |
| 13 | implementation(libs.androidGradlePluginApi) |
| 14 | |
| 15 | // Plugins we use and configure |
| 16 | implementation(libs.androidGradlePluginz) |
| 17 | implementation(libs.androidToolsCommon) // for com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION |
| 18 | implementation(libs.androidToolsRepository) // com.android.repository for Stable AIDL plugin |
| 19 | implementation(libs.androidToolsSdkCommon) // com.android.ide.common for Stable AIDL plugin |
| 20 | implementation(libs.kotlinGradlePluginz) |
Jeff Gaston | 36296cb | 2023-04-12 15:04:33 -0400 | [diff] [blame] | 21 | implementation(libs.spdxGradlePluginz) |
Fred Sladkey | 3061ca7 | 2023-11-14 10:18:17 -0500 | [diff] [blame] | 22 | implementation(libs.androidKotlinMultiplatform) |
Andrei Shikov | b4902f3 | 2023-08-12 05:14:30 +0100 | [diff] [blame] | 23 | implementation(libs.kotlinCompilerEmbeddable) // for clang compiler |
Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 24 | |
elifbilgin | 93665c6 | 2024-03-06 11:30:57 -0800 | [diff] [blame] | 25 | // For Room Gradle Plugin |
| 26 | implementation(libs.kspGradlePluginz) |
| 27 | |
Alan Viverette | 1ab57e9 | 2023-11-15 17:28:14 -0500 | [diff] [blame] | 28 | // Force jsoup upgrade on spdx (b/309773103) |
| 29 | implementation(libs.jsoup) |
| 30 | |
Aurimas Liutikas | 56b872e | 2024-02-21 05:05:07 +0000 | [diff] [blame] | 31 | // json parser |
Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 32 | implementation(libs.gson) |
Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 33 | |
| 34 | // XML parsers used in MavenUploadHelper.kt |
| 35 | implementation(libs.dom4j) { |
| 36 | // Optional dependency where Ivy fails to parse the POM file. |
| 37 | exclude(group:"net.java.dev.msv", module:"xsdlib") |
| 38 | } |
| 39 | implementation(libs.xerces) |
| 40 | |
Aurimas Liutikas | 096c6e9 | 2023-07-06 13:22:36 -0700 | [diff] [blame] | 41 | implementation(libs.ktfmt) |
| 42 | implementation(libs.kotlinCoroutinesCore) |
Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 43 | implementation(libs.shadow) // used by BundleInsideHelper.kt |
| 44 | implementation(libs.apacheAnt) // used in AarManifestTransformerTask.kt for unziping |
| 45 | implementation(libs.toml) |
| 46 | implementation(libs.apacheCommonIo) // used in CheckApiEquivalenceTask.kt |
| 47 | implementation(libs.dexMemberList) // used in ReportLibraryMetricsTask.kt |
| 48 | |
Aurimas Liutikas | c155cb3 | 2023-07-17 09:49:20 -0700 | [diff] [blame] | 49 | implementation(libs.protobufGradlePlugin) // needed to compile inspection plugin |
Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 50 | implementation(libs.kotlinPoet) // needed to compile material-icon-generator |
| 51 | implementation(libs.xmlpull) // needed to compile material-icon-generator |
| 52 | |
| 53 | implementation(libs.protobuf) // needed to compile baseline-profile gradle plugins |
| 54 | implementation(libs.agpTestingPlatformCoreProto) // needed to compile baseline-profile gradle plugins |
| 55 | |
| 56 | // dependencies that aren't used by buildSrc directly but that we resolve here so that the |
| 57 | // root project doesn't need to re-resolve them and their dependencies on every build |
| 58 | runtimeOnly(libs.hiltAndroidGradlePluginz) |
| 59 | runtimeOnly(libs.javapoet) // for hiltAndroidGradlePluginz to workaround https://github.com/google/dagger/issues/3068 |
Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 60 | runtimeOnly(libs.wireGradlePluginz) |
Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 61 | } |