forked from nekdenis/jacoco-android-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
85 lines (71 loc) · 1.5 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
plugins {
id 'groovy'
id 'maven-publish'
id 'jacoco'
id 'pl.allegro.tech.build.axion-release' version '1.3.3'
id 'com.jfrog.bintray' version '1.5'
}
sourceCompatibility = JavaVersion.VERSION_1_5
configurations {
provided
}
repositories {
jcenter()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.4'
compile gradleApi()
provided 'com.google.code.findbugs:jsr305:3.0.1'
testCompile(group: 'org.spockframework', name: 'spock-core', version: '1.0-groovy-2.4') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
testCompile 'com.android.tools.build:gradle:1.5.0'
}
scmVersion {
tag {
prefix = 'jacoco-android-release'
}
}
group = 'com.dicedmelon.gradle'
version = scmVersion.version
test {
testLogging {
exceptionFormat "full"
}
}
jacocoTestReport {
reports {
html.enabled false
xml.enabled true
}
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
publishing {
publications {
plugin(MavenPublication) {
from components.java
artifact sourcesJar
}
}
}
bintray {
def credentials = (project.hasProperty('bintray.credentials') ?
project.property('bintray.credentials') : System.getenv('BINTRAY_CREDENTIALS') ?: '').split(
':')
user = credentials.first()
key = credentials.last()
publications = ['plugin']
pkg {
repo = 'maven'
name = "$project.group:$project.name"
userOrg = 'dicedmelon'
version {
gpg {
sign = true
}
}
}
}