| Alan Viverette | 63ef155 | 2023-01-25 14:40:34 -0500 | [diff] [blame] | 1 | /* |
| 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 Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 17 | /** |
| 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 Viverette | 63ef155 | 2023-01-25 14:40:34 -0500 | [diff] [blame] | 24 | import androidx.build.* |
| 25 | |
| 26 | plugins { |
| Aurimas Liutikas | fcece8b | 2024-01-12 16:31:12 -0800 | [diff] [blame] | 27 | id("AndroidXPlugin") |
| 28 | id("kotlin") |
| 29 | id("java-gradle-plugin") |
| Alan Viverette | 63ef155 | 2023-01-25 14:40:34 -0500 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | apply from: "../../buildSrc/kotlin-dsl-dependency.gradle" |
| 33 | |
| Aurimas Liutikas | ec61c24 | 2024-03-14 16:58:22 +0000 | [diff] [blame] | 34 | configurations { |
| 35 | // Config for plugin classpath to be used during tests |
| 36 | testPlugin { |
| 37 | canBeConsumed = false |
| 38 | canBeResolved = true |
| 39 | } |
| 40 | } |
| 41 | |
| Alan Viverette | 63ef155 | 2023-01-25 14:40:34 -0500 | [diff] [blame] | 42 | dependencies { |
| 43 | implementation(findGradleKotlinDsl()) |
| 44 | implementation(gradleApi()) |
| Alan Viverette | 67befdb | 2023-02-21 15:08:51 -0500 | [diff] [blame] | 45 | implementation(libs.androidGradlePluginApi) |
| Alan Viverette | 63ef155 | 2023-01-25 14:40:34 -0500 | [diff] [blame] | 46 | implementation(libs.androidToolsCommon) |
| 47 | implementation(libs.androidToolsRepository) |
| 48 | implementation(libs.androidToolsSdkCommon) |
| 49 | implementation(libs.apacheCommonIo) |
| Alan Viverette | 09784f3 | 2023-01-04 14:47:01 -0500 | [diff] [blame] | 50 | implementation(libs.apacheAnt) |
| Alan Viverette | 63ef155 | 2023-01-25 14:40:34 -0500 | [diff] [blame] | 51 | implementation(libs.guava) |
| 52 | implementation(libs.kotlinStdlib) |
| 53 | |
| Aurimas Liutikas | ec61c24 | 2024-03-14 16:58:22 +0000 | [diff] [blame] | 54 | testPlugin(libs.androidGradlePluginz) |
| 55 | |
| 56 | testImplementation(libs.androidGradlePluginz) |
| Alan Viverette | 63ef155 | 2023-01-25 14:40:34 -0500 | [diff] [blame] | 57 | 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 Liutikas | ec61c24 | 2024-03-14 16:58:22 +0000 | [diff] [blame] | 66 | tasks.withType(PluginUnderTestMetadata.class).named("pluginUnderTestMetadata").configure { |
| 67 | it.pluginClasspath.from(configurations.testPlugin) |
| 68 | } |
| 69 | |
| Alan Viverette | 63ef155 | 2023-01-25 14:40:34 -0500 | [diff] [blame] | 70 | gradlePlugin { |
| 71 | plugins { |
| 72 | stableAidl { |
| 73 | id = "androidx.stableaidl" |
| 74 | implementationClass = "androidx.stableaidl.StableAidlPlugin" |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | androidx { |
| 80 | name = "Stable AIDL Gradle Plugin" |
| 81 | type = LibraryType.GRADLE_PLUGIN |
| 82 | inceptionYear = "2022" |
| 83 | description = "Stable AIDL Gradle Plugin" |
| 84 | } |