xref: /aosp_15_r20/tools/metalava/buildSrc/build.gradle.kts (revision 115816f9299ab6ddd6b9673b81f34e707f6bacab)
1 /*
2  * Copyright (C) 2020 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 
<lambda>null17 plugins {
18     alias(libs.plugins.kotlinJvm)
19     `java-gradle-plugin`
20 }
21 
<lambda>null22 repositories {
23     mavenCentral()
24     google()
25 }
26 
<lambda>null27 dependencies {
28     implementation(gradleApi())
29     implementation(gradleKotlinDsl())
30     implementation(libs.kotlinGradlePlugin)
31     implementation(libs.androidGradlePlugin)
32     implementation(libs.gson)
33 }
34 
<lambda>null35 gradlePlugin {
36     plugins {
37         create("metalava-build-plugin") {
38             id = "metalava-build-plugin"
39             implementationClass = "com.android.tools.metalava.MetalavaBuildPlugin"
40         }
41     }
42 }
43 
<lambda>null44 gradlePlugin {
45     plugins {
46         create("metalava-model-provider-plugin") {
47             id = "metalava-model-provider-plugin"
48             implementationClass = "com.android.tools.metalava.MetalavaModelProviderPlugin"
49         }
50     }
51 }
52