blob: a8dfc52358981409677ed47dab161456524445a4 [file] [log] [blame]
Rahul Ravikumar95a5d632020-02-12 16:21:49 -08001/*
2 * Copyright 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
Rahul Ravikumar95a5d632020-02-12 16:21:49 -080017import androidx.build.LibraryGroups
Owen Gray74cc2592020-09-24 15:05:40 -040018import androidx.build.LibraryType
Rahul Ravikumar95a5d632020-02-12 16:21:49 -080019
20import static androidx.build.dependencies.DependenciesKt.*
21
22plugins {
23 id("AndroidXPlugin")
24 id("kotlin")
25}
26
27dependencies {
28 // compileOnly because we use lintChecks and it doesn't allow other types of deps
29 // this ugly hack exists because of b/63873667
30 if (rootProject.hasProperty("android.injected.invoked.from.ide")) {
Jim Sproch9e38b4f2021-01-06 14:21:06 -080031 compileOnly(LINT_API_LATEST)
Rahul Ravikumar95a5d632020-02-12 16:21:49 -080032 } else {
Jim Sproch9e38b4f2021-01-06 14:21:06 -080033 compileOnly(LINT_API_MIN)
Rahul Ravikumar95a5d632020-02-12 16:21:49 -080034 }
Jim Sproch9e38b4f2021-01-06 14:21:06 -080035 compileOnly(KOTLIN_STDLIB)
Rahul Ravikumar95a5d632020-02-12 16:21:49 -080036
Jim Sproch9e38b4f2021-01-06 14:21:06 -080037 testImplementation(KOTLIN_STDLIB)
38 testImplementation(LINT_CORE)
39 testImplementation(LINT_TESTS)
Rahul Ravikumar95a5d632020-02-12 16:21:49 -080040}
41
42androidx {
43 name = "RecyclerView Lint Checks"
Owen Gray74cc2592020-09-24 15:05:40 -040044 type = LibraryType.LINT
Rahul Ravikumar95a5d632020-02-12 16:21:49 -080045 mavenGroup = LibraryGroups.RECYCLERVIEW
46 inceptionYear = "2020"
47 description = "RecyclerView Lint Checks"
Rahul Ravikumar95a5d632020-02-12 16:21:49 -080048}