[go: nahoru, domu]

blob: 85b9b6d59fc8f9cf932409686c443ca1487e57b1 [file] [log] [blame]
Jeff Gaston2f575882023-04-19 13:47:50 -04001// This file applies dependencies common to projects in buildSrc
2
3apply from: "${buildscript.sourceFile.parent}/kotlin-dsl-dependency.gradle"
Jeff Gastond82bdcd2023-08-08 12:17:33 -04004// copy findGradleKotlinDsl to a local variable: https://github.com/gradle/gradle/issues/26057
5def findGradleKotlinDsl = project.findGradleKotlinDsl
Jeff Gaston2f575882023-04-19 13:47:50 -04006dependencies {
7
8 // Gradle APIs
9 implementation(gradleApi())
10 compileOnly(findGradleKotlinDsl())
Jeff Gaston2f575882023-04-19 13:47:50 -040011
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 Gaston36296cb2023-04-12 15:04:33 -040021 implementation(libs.spdxGradlePluginz)
Fred Sladkey3061ca72023-11-14 10:18:17 -050022 implementation(libs.androidKotlinMultiplatform)
Andrei Shikovb4902f32023-08-12 05:14:30 +010023 implementation(libs.kotlinCompilerEmbeddable) // for clang compiler
Jeff Gaston2f575882023-04-19 13:47:50 -040024
elifbilgin93665c62024-03-06 11:30:57 -080025 // For Room Gradle Plugin
26 implementation(libs.kspGradlePluginz)
27
Alan Viverette1ab57e92023-11-15 17:28:14 -050028 // Force jsoup upgrade on spdx (b/309773103)
29 implementation(libs.jsoup)
30
Aurimas Liutikas56b872e2024-02-21 05:05:07 +000031 // json parser
Jeff Gaston2f575882023-04-19 13:47:50 -040032 implementation(libs.gson)
Jeff Gaston2f575882023-04-19 13:47:50 -040033
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 Liutikas096c6e92023-07-06 13:22:36 -070041 implementation(libs.ktfmt)
42 implementation(libs.kotlinCoroutinesCore)
Jeff Gaston2f575882023-04-19 13:47:50 -040043 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 Liutikasc155cb32023-07-17 09:49:20 -070049 implementation(libs.protobufGradlePlugin) // needed to compile inspection plugin
Jeff Gaston2f575882023-04-19 13:47:50 -040050 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 Gaston2f575882023-04-19 13:47:50 -040060 runtimeOnly(libs.wireGradlePluginz)
Jeff Gaston2f575882023-04-19 13:47:50 -040061}