forked from bitsoex/bitso-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (46 loc) · 1.26 KB
/
build.gradle
File metadata and controls
57 lines (46 loc) · 1.26 KB
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
apply plugin: 'java'
apply plugin: 'maven'
group = 'com.bitso'
version = '3.2.0-SNAPSHOT'
description = """bitso-java"""
sourceCompatibility = 1.5
targetCompatibility = 1.5
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
maven { url "https://repo.maven.apache.org/maven2/" }
}
dependencies {
compile group: 'org.apache.httpcomponents', name: 'httpclient', version:'4.3.6'
compile group: 'org.json', name: 'json', version:'20140107'
compile group: 'org.mockito', name: 'mockito-all', version:'1.9.5'
compile group: 'io.netty', name: 'netty-all', version:'4.1.55.Final'
testCompile group: 'junit', name: 'junit', version:'4.12'
}
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
archives javadocJar
}
// To specify a license in the pom:
install {
repositories.mavenInstaller {
pom.project {
licenses {
license {
name 'The MIT License (MIT)'
url 'https://github.com/bitsoex/bitso-java/blob/master/LICENSE'
distribution 'repo'
}
}
}
}
}