forked from androidx/androidx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shared.gradle
76 lines (61 loc) · 2.82 KB
/
shared.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
apply plugin: "kotlin"
apply from: "../kotlin-dsl-dependency.gradle"
apply plugin: "java-gradle-plugin"
buildscript {
project.ext.supportRootFolder = project.projectDir.getParentFile().getParentFile()
apply from: "../repos.gradle"
repos.addMavenRepositories(repositories)
dependencies {
classpath(libs.kotlinGradlePluginz)
}
}
dependencies {
implementation(project(":jetpad-integration"))
// Gradle APIs
implementation(gradleApi())
compileOnly(findGradleKotlinDsl())
// Android Gradle Plugin APIs used by Stable AIDL
implementation(libs.androidGradlePluginApi)
// Plugins we use and configure
implementation(libs.androidGradlePluginz)
implementation(libs.androidToolsCommon) // for com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
implementation(libs.androidToolsRepository) // com.android.repository for Stable AIDL plugin
implementation(libs.androidToolsSdkCommon) // com.android.ide.common for Stable AIDL plugin
implementation(libs.kotlinGradlePluginz)
// variety of json parsers
implementation(libs.gson)
implementation(libs.jsonSimple)
// XML parsers used in MavenUploadHelper.kt
implementation(libs.dom4j) {
// Optional dependency where Ivy fails to parse the POM file.
exclude(group:"net.java.dev.msv", module:"xsdlib")
}
implementation(libs.xerces)
implementation(libs.shadow) // used by BundleInsideHelper.kt
implementation(libs.apacheAnt) // used in AarManifestTransformerTask.kt for unziping
implementation(libs.toml)
implementation(libs.apacheCommonIo) // used in CheckApiEquivalenceTask.kt
implementation(libs.dexMemberList) // used in ReportLibraryMetricsTask.kt
implementation(libs.protobufGradlePluginz) // needed to compile inspection plugin
implementation(libs.kotlinPoet) // needed to compile material-icon-generator
implementation(libs.xmlpull) // needed to compile material-icon-generator
implementation(libs.protobuf) // needed to compile baseline-profile gradle plugins
implementation(libs.agpTestingPlatformCoreProto) // needed to compile baseline-profile gradle plugins
// dependencies that aren't used by buildSrc directly but that we resolve here so that the
// root project doesn't need to re-resolve them and their dependencies on every build
runtimeOnly(libs.hiltAndroidGradlePluginz)
runtimeOnly(libs.javapoet) // for hiltAndroidGradlePluginz to workaround https://github.com/google/dagger/issues/3068
runtimeOnly(libs.kspGradlePluginz)
runtimeOnly(libs.wireGradlePluginz)
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
project.tasks.withType(Jar) { task ->
task.reproducibleFileOrder = true
task.preserveFileTimestamps = false
}
validatePlugins {
enableStricterValidation = true
}