| Alan Viverette | 4ca239d | 2019-06-12 13:01:59 -0400 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | import androidx.build.LibraryGroups |
| 18 | import androidx.build.LibraryVersions |
| 19 | import androidx.build.Publish |
| 20 | |
| Alan Viverette | 07ff947 | 2019-12-09 17:17:14 -0500 | [diff] [blame] | 21 | import static androidx.build.dependencies.DependenciesKt.getKOTLIN_STDLIB |
| 22 | |
| Alan Viverette | 4ca239d | 2019-06-12 13:01:59 -0400 | [diff] [blame] | 23 | plugins { |
| 24 | id("AndroidXPlugin") |
| 25 | id("com.android.library") |
| Alan Viverette | 07ff947 | 2019-12-09 17:17:14 -0500 | [diff] [blame] | 26 | id("org.jetbrains.kotlin.android") |
| Alan Viverette | 4ca239d | 2019-06-12 13:01:59 -0400 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | dependencies { |
| Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame^] | 30 | compileOnly(KOTLIN_STDLIB) |
| Alan Viverette | 07ff947 | 2019-12-09 17:17:14 -0500 | [diff] [blame] | 31 | |
| Alan Viverette | 4ca239d | 2019-06-12 13:01:59 -0400 | [diff] [blame] | 32 | lintPublish(project(":annotation:annotation-experimental-lint")) |
| 33 | } |
| 34 | |
| Alan Viverette | 07ff947 | 2019-12-09 17:17:14 -0500 | [diff] [blame] | 35 | android { |
| 36 | compileOptions { |
| Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame^] | 37 | sourceCompatibility(JavaVersion.VERSION_1_7) |
| 38 | targetCompatibility(JavaVersion.VERSION_1_7) |
| Alan Viverette | 07ff947 | 2019-12-09 17:17:14 -0500 | [diff] [blame] | 39 | } |
| Alan Viverette | c78e441 | 2020-01-07 14:08:02 -0500 | [diff] [blame] | 40 | |
| 41 | buildTypes.all { |
| 42 | consumerProguardFiles("proguard-rules.pro") |
| 43 | } |
| Alan Viverette | 07ff947 | 2019-12-09 17:17:14 -0500 | [diff] [blame] | 44 | } |
| 45 | |
| Alan Viverette | 4ca239d | 2019-06-12 13:01:59 -0400 | [diff] [blame] | 46 | androidx { |
| 47 | name = "Experimental annotation" |
| 48 | publish = Publish.SNAPSHOT_AND_RELEASE |
| Alan Viverette | 62baf41 | 2019-07-12 14:15:51 -0400 | [diff] [blame] | 49 | mavenVersion = LibraryVersions.ANNOTATION_EXPERIMENTAL |
| Alan Viverette | 4ca239d | 2019-06-12 13:01:59 -0400 | [diff] [blame] | 50 | mavenGroup = LibraryGroups.ANNOTATION |
| 51 | inceptionYear = "2019" |
| Alan Viverette | 62baf41 | 2019-07-12 14:15:51 -0400 | [diff] [blame] | 52 | 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 Viverette | 4ca239d | 2019-06-12 13:01:59 -0400 | [diff] [blame] | 55 | } |