Chris Craik | 9fd8e61 | 2017-06-23 14:07:04 -0700 | [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 | |
Yigit Boyar | d382982 | 2017-08-25 16:53:25 -0700 | [diff] [blame] | 17 | import android.support.LibraryVersions |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 18 | import android.support.SupportLibraryExtension; |
Chris Craik | 9fd8e61 | 2017-06-23 14:07:04 -0700 | [diff] [blame] | 19 | |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 20 | apply plugin: android.support.SupportJavaLibraryPlugin |
Chris Craik | 2e9d513 | 2017-08-24 18:10:23 -0700 | [diff] [blame] | 21 | apply plugin: 'kotlin' |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 22 | |
Chris Craik | 9fd8e61 | 2017-06-23 14:07:04 -0700 | [diff] [blame] | 23 | dependencies { |
| 24 | compile libs.support.annotations |
| 25 | compile project(":arch:common") |
| 26 | |
| 27 | testCompile libs.junit |
| 28 | testCompile libs.mockito_core |
Chris Craik | 2e9d513 | 2017-08-24 18:10:23 -0700 | [diff] [blame] | 29 | compile libs.support.annotations |
Chris Craik | 9fd8e61 | 2017-06-23 14:07:04 -0700 | [diff] [blame] | 30 | compile project(path: ':arch:common') |
Chris Craik | 2e9d513 | 2017-08-24 18:10:23 -0700 | [diff] [blame] | 31 | compile libs.junit |
| 32 | testCompile libs.kotlin.stdlib |
Chris Craik | 9fd8e61 | 2017-06-23 14:07:04 -0700 | [diff] [blame] | 33 | } |
| 34 | |
Chris Craik | 9fd8e61 | 2017-06-23 14:07:04 -0700 | [diff] [blame] | 35 | createAndroidCheckstyle(project) |
Chris Craik | 2e9d513 | 2017-08-24 18:10:23 -0700 | [diff] [blame] | 36 | createKotlinCheckstyle(project) |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 37 | |
Yigit Boyar | d382982 | 2017-08-25 16:53:25 -0700 | [diff] [blame] | 38 | version = LibraryVersions.PAGING.toString() |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 39 | supportLibrary { |
| 40 | name 'Android Paging-Common' |
Yigit Boyar | ad919fe | 2017-09-11 13:29:36 -0700 | [diff] [blame] | 41 | publish true |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 42 | inceptionYear '2017' |
| 43 | description "Android Paging-Common" |
| 44 | url SupportLibraryExtension.ARCHITECTURE_URL |
| 45 | } |