blob: f2310ec0ade9e69768c56cd67af6fa6d05d32aaa [file] [log] [blame]
Alan Viverette4ca239d2019-06-12 13:01:59 -04001/*
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.LibraryGroups
18import androidx.build.LibraryVersions
19import androidx.build.Publish
20
Alan Viverette07ff9472019-12-09 17:17:14 -050021import static androidx.build.dependencies.DependenciesKt.getKOTLIN_STDLIB
22
Alan Viverette4ca239d2019-06-12 13:01:59 -040023plugins {
24 id("AndroidXPlugin")
25 id("com.android.library")
Alan Viverette07ff9472019-12-09 17:17:14 -050026 id("org.jetbrains.kotlin.android")
Alan Viverette4ca239d2019-06-12 13:01:59 -040027}
28
29dependencies {
Jim Sproch9e38b4f2021-01-06 14:21:06 -080030 compileOnly(KOTLIN_STDLIB)
Alan Viverette07ff9472019-12-09 17:17:14 -050031
Alan Viverette4ca239d2019-06-12 13:01:59 -040032 lintPublish(project(":annotation:annotation-experimental-lint"))
33}
34
Alan Viverette07ff9472019-12-09 17:17:14 -050035android {
36 compileOptions {
Jim Sproch9e38b4f2021-01-06 14:21:06 -080037 sourceCompatibility(JavaVersion.VERSION_1_7)
38 targetCompatibility(JavaVersion.VERSION_1_7)
Alan Viverette07ff9472019-12-09 17:17:14 -050039 }
Alan Viverettec78e4412020-01-07 14:08:02 -050040
41 buildTypes.all {
42 consumerProguardFiles("proguard-rules.pro")
43 }
Alan Viverette07ff9472019-12-09 17:17:14 -050044}
45
Alan Viverette4ca239d2019-06-12 13:01:59 -040046androidx {
47 name = "Experimental annotation"
48 publish = Publish.SNAPSHOT_AND_RELEASE
Alan Viverette62baf412019-07-12 14:15:51 -040049 mavenVersion = LibraryVersions.ANNOTATION_EXPERIMENTAL
Alan Viverette4ca239d2019-06-12 13:01:59 -040050 mavenGroup = LibraryGroups.ANNOTATION
51 inceptionYear = "2019"
Alan Viverette62baf412019-07-12 14:15:51 -040052 description = "Java annotation for use on unstable Android API surfaces. When used in " +
53 "conjunction with the Experimental annotation lint checks, this annotation provides " +
54 "functional parity with Kotlin's Experimental annotation."
Alan Viverette4ca239d2019-06-12 13:01:59 -040055}