-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathbuild.gradle
68 lines (57 loc) · 1.64 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
buildscript {
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
dependencies {
classpath 'com.gradle.publish:plugin-publish-plugin:0.10.0'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.17.0'
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.11.0'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.6.0'
}
}
apply plugin: 'groovy'
apply plugin: 'java-library'
apply plugin: 'java-gradle-plugin'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'com.gradle.plugin-publish'
apply plugin: 'com.vanniktech.android.junit.jacoco'
apply plugin: "com.vanniktech.maven.publish"
gradlePlugin {
plugins {
androidJUnitJacocoPlugin {
id = 'com.vanniktech.android.junit.jacoco'
implementationClass = 'com.vanniktech.android.junit.jacoco.GenerationPlugin'
}
}
}
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
api gradleApi()
api localGroovy()
compileOnly 'com.android.tools.build:gradle:3.1.2'
testCompile 'com.android.tools.build:gradle:3.1.2'
testCompile 'junit:junit:4.12'
testCompile 'org.spockframework:spock-core:1.1-groovy-2.4', { exclude module: "groovy-all" } // Use localGroovy()
}
sourceCompatibility = JavaVersion.VERSION_1_7
pluginBundle {
website = POM_URL
vcsUrl = POM_SCM_URL
plugins {
androidJUnitJacocoPlugin {
displayName = POM_NAME
tags = ['gradle', 'android', 'jacoco', 'app module', 'library module', 'junit', 'unit', 'testing', 'coverage']
description = POM_DESCRIPTION
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.8'
distributionType = Wrapper.DistributionType.ALL
}