blob: ddcc4d62d3d394ed3b7576cd26746fe4da7d56cb [file] [log] [blame]
Julia McClellanb582fb42022-04-25 13:25:19 -04001/*
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 */
Clara Fokb806feb2024-07-22 15:33:50 -070024
25import androidx.build.BundleInsideHelper
Julia McClellanb582fb42022-04-25 13:25:19 -040026import androidx.build.LibraryType
27
28plugins {
29 id("AndroidXPlugin")
30 id("kotlin")
31}
32
Clara Fokb806feb2024-07-22 15:33:50 -070033BundleInsideHelper.forInsideLintJar(project)
34
Julia McClellanb582fb42022-04-25 13:25:19 -040035dependencies {
Jeremy Woods36a20e5f2024-09-23 22:39:36 +000036 compileOnly(libs.kotlinCompiler)
Julia McClellanb582fb42022-04-25 13:25:19 -040037 compileOnly(libs.kotlinStdlib)
Jeremy Woodsc096da72024-10-09 22:40:13 +000038 compileOnly(libs.androidLintApiPrevKotlin)
Jeremy Woods36a20e5f2024-09-23 22:39:36 +000039 compileOnly(libs.intellijCore)
40 compileOnly(libs.uast)
41
Clara Fok23c78e62024-09-26 10:09:05 -070042 bundleInside(project(":navigation:lint:common"))
Julia McClellanb582fb42022-04-25 13:25:19 -040043
Jeremy Woodsc096da72024-10-09 22:40:13 +000044 testImplementation(libs.androidLintApiPrevKotlin)
45 testImplementation(libs.androidLintTestsPrevKotlin)
Julia McClellanb582fb42022-04-25 13:25:19 -040046 testImplementation(libs.junit)
47 testImplementation(libs.truth)
Jeremy Woodsc096da72024-10-09 22:40:13 +000048 testImplementation(project(":navigation:lint:common-test"))
49
Julia McClellanb582fb42022-04-25 13:25:19 -040050}
51
52androidx {
53 name = "Navigation Common Lint"
54 type = LibraryType.LINT
Julia McClellanb582fb42022-04-25 13:25:19 -040055 inceptionYear = "2022"
56 description = "Lint checks for Navigation Common"
57}