forked from blockchain/unused-My-Wallet-V3-jar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
95 lines (85 loc) · 3.1 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
plugins {
id 'java'
id 'maven'
id 'maven-publish'
id 'jacoco'
id "com.github.kt3k.coveralls" version "2.7.1"
}
group = 'info.blockchain'
version = PROJECT_VERSION
apply from: "integTest.gradle"
sourceCompatibility = 1.7
targetCompatibility = 1.7
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
// TODO: Switch this back once the client is published
// maven {
// url nexusUrl + '/repository/maven-public/'
// credentials(PasswordCredentials) {
// username nexusUsername
// password nexusPassword
// }
// }
}
//publishing {
// publications {
// mavenJava(MavenPublication) {
// from components.java
//
// artifact sourceJar {
// classifier "sources"
// }
// }
// }
//
// repositories {
// project.ext.set('repo', project.version.endsWith('-SNAPSHOT') ? 'snapshots' : 'releases')
// maven {
// url "${nexusUrl}/repository/maven-${project.repo}/"
// credentials(PasswordCredentials) {
// username nexusUsername
// password nexusPassword
// }
// }
// }
//}
task sourceJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
dependencies {
compile files('libs/api-client-0.1.14-SNAPSHOT.jar')
// TODO: Switch this back once the client is published
// compile group: 'info.blockchain', name: 'api-client', version: '0.1.15-SNAPSHOT'
compile group: 'org.bitcoinj', name: 'bitcoinj-core', version: '0.14.4'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.21'
compile group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.7.5'
compile group: 'commons-io', name: 'commons-io', version: '2.4'
compile group: 'commons-cli', name: 'commons-cli', version: '1.3'
compile group: 'commons-codec', name: 'commons-codec', version: '1.4'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'
compile group: 'io.mikael', name: 'urlbuilder', version: '2.0.8'
compile group: 'org.json', name: 'json', version: '20160810'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.5'
compile group: 'com.squareup.retrofit2', name: 'retrofit', version: '2.2.0'
compile group: 'com.squareup.retrofit2', name: 'converter-jackson', version: '2.2.0'
compile group: 'com.squareup.retrofit2', name: 'adapter-rxjava2', version: '2.2.0'
compile group: 'com.squareup.okhttp3', name: 'logging-interceptor', version: '3.6.0'
compile group: 'io.jsonwebtoken', name: 'jjwt', version: '0.7.0'
compile group: 'com.squareup.okio', name: 'okio', version: '1.11.0'
compile group: 'org.mockito', name: 'mockito-all', version: '1.9.5'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}