forked from greghaskins/spectrum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
90 lines (77 loc) · 1.86 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
plugins {
id "com.cinnober.gradle.semver-git" version "2.2.2"
id "com.github.kt3k.coveralls" version "2.4.0x"
id "com.jfrog.bintray" version "1.3.1"
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'maven-publish'
repositories {
mavenCentral()
}
dependencies {
compile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3'
testCompile group: 'org.mockito', name: 'mockito-core', version: '1.10.8'
}
compileJava {
sourceCompatibility = 1.6
}
compileTestJava {
sourceCompatibility = 1.8
}
test {
finalizedBy jacocoTestReport
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar, javadocJar
}
publishing {
publications {
bintrayPublication(MavenPublication) {
from components.java
groupId 'com.greghaskins'
artifactId 'spectrum'
version project.version
artifact sourcesJar
artifact javadocJar
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publish = true
publications = ['bintrayPublication']
pkg {
repo = 'maven'
name = 'Spectrum'
licenses = ['MIT']
desc = 'A colorful BDD-style test runner for Java'
websiteUrl = 'https://github.com/greghaskins/spectrum'
issueTrackerUrl = 'https://github.com/greghaskins/spectrum/issues'
vcsUrl = 'https://github.com/greghaskins/spectrum.git'
labels = ['java', 'junit', 'bdd', 'testing', 'unit testing', 'java8', 'lambda']
version {
name = project.version
released = new Date()
}
}
}