Sergey Vasilinets | 968529a | 2018-01-03 16:13:53 -0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2017 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 static android.support.dependencies.DependenciesKt.* |
| 18 | import android.support.LibraryGroups |
| 19 | import android.support.LibraryVersions |
| 20 | import android.support.SupportLibraryExtension |
| 21 | |
| 22 | apply plugin: android.support.SupportKotlinLibraryPlugin |
| 23 | apply plugin: 'java-gradle-plugin' |
| 24 | |
| 25 | sourceSets { |
| 26 | test.java.srcDirs += 'src/tests/kotlin' |
| 27 | } |
| 28 | |
| 29 | dependencies { |
| 30 | compile gradleApi() |
| 31 | } |
| 32 | |
| 33 | gradlePlugin { |
| 34 | plugins { |
| 35 | safeargs { |
| 36 | id = "android.arch.navigation.safeargs" |
| 37 | implementationClass = "android.arch.navigation.SafeArgsPlugin" |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | supportLibrary { |
| 43 | name = "Android Navigation TypeSafe Arguments Gradle Plugin" |
| 44 | publish = true |
| 45 | mavenVersion = LibraryVersions.NAVIGATION |
| 46 | mavenGroup = LibraryGroups.NAVIGATION |
| 47 | inceptionYear = "2017" |
| 48 | description = "Android Navigation TypeSafe Arguments Gradle Plugin" |
| 49 | url = SupportLibraryExtension.ARCHITECTURE_URL |
| 50 | } |