[go: nahoru, domu]

blob: d6f3890383d6782d11cfd315370f066432f06a45 [file] [log] [blame]
Sergey Vasilinets4e970562019-12-12 13:39:19 +00001/*
2 * Copyright 2019 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
17import androidx.build.CompilationTarget
18import androidx.build.LibraryGroups
19import androidx.build.LibraryVersions
20import androidx.build.Publish
Sergey Vasilinets511969f2020-01-09 12:52:23 +000021import androidx.build.SdkResourceGenerator
Sergey Vasilinets4e970562019-12-12 13:39:19 +000022
23import static androidx.build.dependencies.DependenciesKt.*
24
25plugins {
26 id("AndroidXPlugin")
27 id("kotlin")
28 id("java-gradle-plugin")
29}
30
Sergey Vasilinets511969f2020-01-09 12:52:23 +000031SdkResourceGenerator.generateForHostTest(project)
Sergey Vasilinets95f91db2020-01-13 20:21:29 +000032apply from: "../../buildSrc/kotlin-dsl-dependency.gradle"
Sergey Vasilinets511969f2020-01-09 12:52:23 +000033
Sergey Vasilinets4e970562019-12-12 13:39:19 +000034dependencies {
Sergey Vasilinets95f91db2020-01-13 20:21:29 +000035 implementation findGradleKotlinDsl()
Sergey Vasilinets4e970562019-12-12 13:39:19 +000036 implementation gradleApi()
37 implementation(AGP_STABLE)
38 implementation(KOTLIN_STDLIB)
Aurimas Liutikas75311052020-10-01 16:45:02 -070039 implementation("gradle.plugin.com.google.protobuf:protobuf-gradle-plugin:0.8.13")
Sergey Vasilinets0e965b82020-02-04 11:43:47 +000040 implementation("org.anarres.jarjar:jarjar-gradle:1.0.1")
Sergey Vasilinets511969f2020-01-09 12:52:23 +000041
42 testImplementation(project(":internal-testutils-gradle-plugin"))
43 testImplementation gradleTestKit()
44 testImplementation(ANDROIDX_TEST_RUNNER)
45 testImplementation(JUNIT)
46 testImplementation(KOTLIN_TEST)
Sergey Vasilinets4e970562019-12-12 13:39:19 +000047}
48
49gradlePlugin {
50 plugins {
51 inspection {
52 id = "androidx.inspection"
53 implementationClass = "androidx.inspection.gradle.InspectionPlugin"
54 }
55 }
56}
57
58androidx {
59 name = "Android Inspection Gradle Plugin"
60 publish = Publish.NONE
61 toolingProject = true
Sergey Vasilinets4e970562019-12-12 13:39:19 +000062 mavenGroup = LibraryGroups.INSPECTION
63 inceptionYear = "2019"
64 description = "Android Inspection Gradle Plugin"
65 compilationTarget = CompilationTarget.HOST
66}