blob: 13fded7fd12d169912375b12512c0b7a2ea960e4 [file] [log] [blame]
Alan Viverette63ef1552023-01-25 14:40:34 -05001/*
2 * Copyright 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Tiem Songee0da742024-01-03 14:08:46 -080017/**
18 * This file was created using the `create_project.py` script located in the
19 * `<AndroidX root>/development/project-creator` directory.
20 *
21 * Please use that script when creating a new project, rather than copying an existing project and
22 * modifying its settings.
23 */
Alan Viverette63ef1552023-01-25 14:40:34 -050024import androidx.build.*
25
26plugins {
Aurimas Liutikasfcece8b2024-01-12 16:31:12 -080027 id("AndroidXPlugin")
28 id("kotlin")
29 id("java-gradle-plugin")
Alan Viverette63ef1552023-01-25 14:40:34 -050030}
31
32apply from: "../../buildSrc/kotlin-dsl-dependency.gradle"
33
Aurimas Liutikasec61c242024-03-14 16:58:22 +000034configurations {
35 // Config for plugin classpath to be used during tests
36 testPlugin {
37 canBeConsumed = false
38 canBeResolved = true
39 }
40}
41
Alan Viverette63ef1552023-01-25 14:40:34 -050042dependencies {
43 implementation(findGradleKotlinDsl())
44 implementation(gradleApi())
Alan Viverette67befdb2023-02-21 15:08:51 -050045 implementation(libs.androidGradlePluginApi)
Alan Viverette63ef1552023-01-25 14:40:34 -050046 implementation(libs.androidToolsCommon)
47 implementation(libs.androidToolsRepository)
48 implementation(libs.androidToolsSdkCommon)
49 implementation(libs.apacheCommonIo)
Alan Viverette09784f32023-01-04 14:47:01 -050050 implementation(libs.apacheAnt)
Alan Viverette63ef1552023-01-25 14:40:34 -050051 implementation(libs.guava)
52 implementation(libs.kotlinStdlib)
53
Aurimas Liutikasec61c242024-03-14 16:58:22 +000054 testPlugin(libs.androidGradlePluginz)
55
56 testImplementation(libs.androidGradlePluginz)
Alan Viverette63ef1552023-01-25 14:40:34 -050057 testImplementation(gradleTestKit())
58 testImplementation(project(":internal-testutils-gradle-plugin"))
59 testImplementation(libs.androidToolsAnalyticsProtos)
60 testImplementation(libs.gson)
61 testImplementation(libs.junit)
62 testImplementation(libs.kotlinTest)
63 testImplementation(libs.truth)
64}
65
Aurimas Liutikasec61c242024-03-14 16:58:22 +000066tasks.withType(PluginUnderTestMetadata.class).named("pluginUnderTestMetadata").configure {
67 it.pluginClasspath.from(configurations.testPlugin)
68}
69
Alan Viverette63ef1552023-01-25 14:40:34 -050070gradlePlugin {
71 plugins {
72 stableAidl {
73 id = "androidx.stableaidl"
74 implementationClass = "androidx.stableaidl.StableAidlPlugin"
75 }
76 }
77}
78
79androidx {
80 name = "Stable AIDL Gradle Plugin"
81 type = LibraryType.GRADLE_PLUGIN
82 inceptionYear = "2022"
83 description = "Stable AIDL Gradle Plugin"
84}