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 | |
Alan Viverette | 1ab57e9 | 2023-11-15 17:28:14 -0500 | [diff] [blame] | 25 | // Force jsoup upgrade on spdx (b/309773103) |
| 26 | implementation(libs.jsoup) |
| 27 | |
Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 28 | // variety of json parsers |
| 29 | implementation(libs.gson) |
| 30 | implementation(libs.jsonSimple) |
| 31 | |
| 32 | // XML parsers used in MavenUploadHelper.kt |
| 33 | implementation(libs.dom4j) { |
| 34 | // Optional dependency where Ivy fails to parse the POM file. |
| 35 | exclude(group:"net.java.dev.msv", module:"xsdlib") |
| 36 | } |
| 37 | implementation(libs.xerces) |
| 38 | |
Aurimas Liutikas | 096c6e9 | 2023-07-06 13:22:36 -0700 | [diff] [blame] | 39 | implementation(libs.ktfmt) |
| 40 | implementation(libs.kotlinCoroutinesCore) |
Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 41 | implementation(libs.shadow) // used by BundleInsideHelper.kt |
| 42 | implementation(libs.apacheAnt) // used in AarManifestTransformerTask.kt for unziping |
| 43 | implementation(libs.toml) |
| 44 | implementation(libs.apacheCommonIo) // used in CheckApiEquivalenceTask.kt |
| 45 | implementation(libs.dexMemberList) // used in ReportLibraryMetricsTask.kt |
| 46 | |
Aurimas Liutikas | c155cb3 | 2023-07-17 09:49:20 -0700 | [diff] [blame] | 47 | implementation(libs.protobufGradlePlugin) // needed to compile inspection plugin |
Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 48 | implementation(libs.kotlinPoet) // needed to compile material-icon-generator |
| 49 | implementation(libs.xmlpull) // needed to compile material-icon-generator |
| 50 | |
| 51 | implementation(libs.protobuf) // needed to compile baseline-profile gradle plugins |
| 52 | implementation(libs.agpTestingPlatformCoreProto) // needed to compile baseline-profile gradle plugins |
| 53 | |
| 54 | // dependencies that aren't used by buildSrc directly but that we resolve here so that the |
| 55 | // root project doesn't need to re-resolve them and their dependencies on every build |
| 56 | runtimeOnly(libs.hiltAndroidGradlePluginz) |
| 57 | runtimeOnly(libs.javapoet) // for hiltAndroidGradlePluginz to workaround https://github.com/google/dagger/issues/3068 |
| 58 | runtimeOnly(libs.kspGradlePluginz) |
| 59 | runtimeOnly(libs.wireGradlePluginz) |
Daniel Santiago Rivera | 71e2f88 | 2023-06-29 14:02:17 -0400 | [diff] [blame] | 60 | runtimeOnly(libs.roomGradlePlugin) |
Jeff Gaston | 2f57588 | 2023-04-19 13:47:50 -0400 | [diff] [blame] | 61 | } |