1// This file applies dependencies common to projects in buildSrc 2 3apply from: "${buildscript.sourceFile.parent}/kotlin-dsl-dependency.gradle" 4// copy findGradleKotlinDsl to a local variable: https://github.com/gradle/gradle/issues/26057 5def findGradleKotlinDsl = project.findGradleKotlinDsl 6dependencies { 7 8 // Gradle APIs 9 implementation(gradleApi()) 10 compileOnly(findGradleKotlinDsl()) 11 12 // Android Gradle Plugin APIs used by Stable AIDL 13 api(libs.androidGradlePluginApi) 14 15 // Plugins we use and configure 16 api(libs.kotlinGradlePlugin) 17 compileOnly(libs.kotlinCompiler) // for binaryCompatibilityValidator 18 implementation(libs.androidGradlePluginApi) 19 runtimeOnly(libs.androidGradlePlugin) 20 implementation(libs.androidToolsCommon) // for com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION 21 implementation(libs.androidToolsRepository) // com.android.repository for Stable AIDL plugin 22 implementation(libs.androidToolsSdkCommon) // com.android.ide.common for Stable AIDL plugin 23 implementation(libs.spdxGradlePluginz) 24 runtimeOnly(libs.androidKotlinMultiplatform) 25 implementation(libs.binaryCompatibilityValidator) 26 27 // For Room Gradle Plugin 28 implementation(libs.kspGradlePlugin) 29 30 // Force jsoup upgrade on spdx (b/309773103) 31 implementation(libs.jsoup) 32 33 // json parser 34 implementation(libs.gson) 35 36 // XML parsers used in MavenUploadHelper.kt 37 implementation(libs.dom4j) { 38 // Optional dependency where Ivy fails to parse the POM file. 39 exclude(group:"net.java.dev.msv", module:"xsdlib") 40 } 41 implementation(libs.xerces) 42 43 implementation(libs.shadow) // used by BundleInsideHelper.kt 44 api(libs.apacheAnt) // used in AarManifestTransformerTask.kt for unziping 45 implementation(libs.toml) 46 implementation(libs.apacheCommonIo) // used in CheckApiEquivalenceTask.kt 47 48 implementation(libs.protobufGradlePlugin) // needed to compile inspection plugin 49 implementation(libs.kotlinPoet) // needed to compile glance-layout-generator 50 51 implementation("com.google.protobuf:protobuf-java:3.22.3") // 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.hiltAndroidGradlePlugin) 57 runtimeOnly(libs.javapoet) // for hiltAndroidGradlePlugin to workaround https://github.com/google/dagger/issues/3068 58 runtimeOnly(libs.wireGradlePluginz) 59 60 // Plugin for analyzing dependencies 61 implementation(libs.dependency.analysis.gradle.plugin) 62} 63