blob: d2d11a7def06d95d8686e1f426c13b4c0a8a363a [file] [log] [blame]
Dustin Lam6db1c772019-03-13 18:24:44 -07001/*
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
18import androidx.build.CompilationTarget
19import androidx.build.LibraryGroups
20import androidx.build.LibraryVersions
21
22import static androidx.build.dependencies.DependenciesKt.*
23
24apply plugin: androidx.build.SupportKotlinLibraryPlugin
25apply plugin: 'java-gradle-plugin'
26
27sourceSets {
28 test.java.srcDirs += 'src/main/kotlin'
29}
30
31dependencies {
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
41gradlePlugin {
42 plugins {
43 benchmark {
44 id = "androidx.benchmark"
45 implementationClass = "androidx.benchmark.gradle.BenchmarkPlugin"
46 }
47 }
48}
49
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070050androidx {
Dustin Lam6db1c772019-03-13 18:24:44 -070051 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}