forked from openbakery/CoverageReport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
137 lines (111 loc) · 3.12 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'application'
apply plugin: 'signing'
sourceCompatibility = "1.6"
targetCompatibility = "1.6"
mainClassName = 'org.openbakery.coverage.CoverageReport'
version = '0.9.3'
group = "org.openbakery.coverage"
archivesBaseName = "CoverageReport"
task wrapper(type: Wrapper) {
gradleVersion = '2.8'
}
configurations {
deployerJars
}
repositories {
mavenCentral()
}
dependencies {
compile localGroovy()
compile 'commons-cli:commons-cli:1.3.1'
compile 'ch.qos.logback:logback-core:1.1.5'
compile 'ch.qos.logback:logback-classic:1.1.5'
compile 'commons-io:commons-io:1.4'
compile 'commons-collections:commons-collections:3.2.2'
compile "com.github.spullara.mustache.java:compiler:0.8.18"
compile 'org.apache.ant:ant:1.9.6'
testCompile 'junit:junit:4.12'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'org.codehaus.groovy:groovy-all:2.4.4'
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
testCompile 'cglib:cglib-nodep:3.1'
}
sourceSets {
main {
groovy {
srcDirs = ['source/main/groovy']
}
resources {
srcDirs = [ 'source/main/resources' ]
}
}
test {
groovy {
srcDirs = ['source/test/groovy']
}
}
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
sign configurations.archives
}
gradle.taskGraph.whenReady { taskGraph ->
if (taskGraph.allTasks.any { it instanceof Sign }) {
Console console = System.console()
console.printf "\n\nWe have to sign some things in this build." +
"\n\nPlease enter your signing details.\n\n"
def password = console.readPassword("PGP Private Key Password: ")
allprojects { ext."signing.password" = password }
}
}
def ossrhUsername = hasProperty('ossrhUsername') ? ossrhUsername : ''
def ossrhPassword = hasProperty('ossrhPassword') ? ossrhPassword : ''
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'CoverageReport'
packaging 'jar'
description 'CoverageReport convert the llvm profdata code coverage to text, HTML or XML'
url 'https://github.com/openbakery/CoverageReport'
scm {
connection 'scm:git:https://github.com/openbakery/CoverageReport.git'
developerConnection 'scm:https://github.com/openbakery/CoverageReport.git'
url 'https://github.com/openbakery/CoverageReport'
}
licenses {
license {
name 'BSD-3'
url 'https://raw.githubusercontent.com/openbakery/CoverageReport/master/LICENSE'
}
}
developers {
developer {
id 'renep'
name 'René Pirringer'
email 'rene@openbakery.org'
}
}
}
}
}
}