[go: nahoru, domu]

blob: 37b078a8bee30709b160e982543b292f8b0eebc2 [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)
Jeff Gaston2f575882023-04-19 13:47:50 -040022
23 // variety of json parsers
24 implementation(libs.gson)
25 implementation(libs.jsonSimple)
26
27 // XML parsers used in MavenUploadHelper.kt
28 implementation(libs.dom4j) {
29 // Optional dependency where Ivy fails to parse the POM file.
30 exclude(group:"net.java.dev.msv", module:"xsdlib")
31 }
32 implementation(libs.xerces)
33
Aurimas Liutikas096c6e92023-07-06 13:22:36 -070034 implementation(libs.ktfmt)
35 implementation(libs.kotlinCoroutinesCore)
Jeff Gaston2f575882023-04-19 13:47:50 -040036 implementation(libs.shadow) // used by BundleInsideHelper.kt
37 implementation(libs.apacheAnt) // used in AarManifestTransformerTask.kt for unziping
38 implementation(libs.toml)
39 implementation(libs.apacheCommonIo) // used in CheckApiEquivalenceTask.kt
40 implementation(libs.dexMemberList) // used in ReportLibraryMetricsTask.kt
41
Aurimas Liutikasc155cb32023-07-17 09:49:20 -070042 implementation(libs.protobufGradlePlugin) // needed to compile inspection plugin
Jeff Gaston2f575882023-04-19 13:47:50 -040043 implementation(libs.kotlinPoet) // needed to compile material-icon-generator
44 implementation(libs.xmlpull) // needed to compile material-icon-generator
45
46 implementation(libs.protobuf) // needed to compile baseline-profile gradle plugins
47 implementation(libs.agpTestingPlatformCoreProto) // needed to compile baseline-profile gradle plugins
48
49 // dependencies that aren't used by buildSrc directly but that we resolve here so that the
50 // root project doesn't need to re-resolve them and their dependencies on every build
51 runtimeOnly(libs.hiltAndroidGradlePluginz)
52 runtimeOnly(libs.javapoet) // for hiltAndroidGradlePluginz to workaround https://github.com/google/dagger/issues/3068
53 runtimeOnly(libs.kspGradlePluginz)
54 runtimeOnly(libs.wireGradlePluginz)
Daniel Santiago Rivera71e2f882023-06-29 14:02:17 -040055 runtimeOnly(libs.roomGradlePlugin)
Jeff Gaston2f575882023-04-19 13:47:50 -040056}