forked from evanwong/hipchat-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (42 loc) · 1.13 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
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'signing'
repositories {
mavenCentral()
maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
}
sourceCompatibility = 1.8
group = 'io.evanwong.oss'
version = "0.4.0"
dependencies {
compile 'org.apache.httpcomponents:httpclient:4.3.5'
compile 'org.slf4j:slf4j-api:1.7.7'
compile 'com.fasterxml.jackson.core:jackson-databind:2.4.2'
testCompile "org.codehaus.groovy:groovy-all:2.3.7"
testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
testRuntime 'org.slf4j:slf4j-simple:1.7.7'
}
test {
systemProperty 'hipchat.token', System.properties['hipchat.token']
}
javadoc {
println "1234"
options.links = ["http://docs.oracle.com/javase/8/docs/api/"]
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
if (hasProperty('ossrhUsername') && hasProperty('ossrhPassword')) {
apply from: 'sonatype.gradle'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}