| Dustin Lam | 6db1c77 | 2019-03-13 18:24:44 -0700 | [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 | |
| 18 | import androidx.build.CompilationTarget |
| 19 | import androidx.build.LibraryGroups |
| 20 | import androidx.build.LibraryVersions |
| 21 | |
| 22 | import static androidx.build.dependencies.DependenciesKt.* |
| 23 | |
| 24 | apply plugin: androidx.build.SupportKotlinLibraryPlugin |
| 25 | apply plugin: 'java-gradle-plugin' |
| 26 | |
| 27 | sourceSets { |
| 28 | test.java.srcDirs += 'src/main/kotlin' |
| 29 | } |
| 30 | |
| 31 | dependencies { |
| 32 | implementation gradleApi() |
| 33 | implementation(build_libs.gradle) |
| 34 | implementation(KOTLIN_STDLIB) |
| 35 | implementation(TEST_RUNNER) |
| 36 | |
| 37 | testImplementation gradleTestKit() |
| 38 | testImplementation(JUNIT) |
| 39 | } |
| 40 | |
| 41 | gradlePlugin { |
| 42 | plugins { |
| 43 | benchmark { |
| 44 | id = "androidx.benchmark" |
| 45 | implementationClass = "androidx.benchmark.gradle.BenchmarkPlugin" |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | |
| Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame^] | 50 | androidx { |
| Dustin Lam | 6db1c77 | 2019-03-13 18:24:44 -0700 | [diff] [blame] | 51 | name = "Android Benchmark Gradle Plugin" |
| 52 | publish = true |
| 53 | toolingProject = true |
| 54 | mavenVersion = LibraryVersions.BENCHMARK |
| 55 | mavenGroup = LibraryGroups.BENCHMARK |
| 56 | inceptionYear = "2019" |
| 57 | description = "Android Benchmark Gradle Plugin" |
| 58 | compilationTarget = CompilationTarget.HOST |
| 59 | } |