forked from emeraldpay/etherjar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
89 lines (75 loc) · 2.26 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
plugins {
id "com.jfrog.bintray" version "1.7.3"
}
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'jacoco'
apply plugin: 'idea'
group = 'org.ethereumclassic'
version = '0.5-SNAPSHOT'
description = 'Lightweight Java client to Ethereum blockchain'
targetCompatibility = '1.8'
sourceCompatibility = '1.8'
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
compile "com.fasterxml.jackson.core:jackson-core:$jacksonVersion"
compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
compile "org.apache.httpcomponents:httpmime:$httpClientVersion"
compile "org.apache.httpcomponents:httpclient:$httpClientVersion"
compile "org.bouncycastle:bcprov-jdk15on:$bcprovVersion"
testCompile "org.objenesis:objenesis:$objenesisVersion"
testCompile "org.codehaus.groovy:groovy-all:$groovyVersion"
testCompile "org.spockframework:spock-core:$spockVersion"
}
test {
jvmArgs '-ea'
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
compileJava.options.compilerArgs \
<< "-Xlint:unchecked" << "-Xlint:deprecation"
publishing {
publications {
EtherJarPublication(MavenPublication) {
from components.java
artifact sourceJar
pom.withXml {
asNode().appendNode('description', description)
}
}
}
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
classifier "sources"
}
bintray {
user = project.hasProperty('bintrayUser') ?
project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ?
project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['EtherJarPublication']
pkg {
repo = 'etherjar'
name = 'etherjar'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/ethereumproject/etherjar.git'
labels = ['etherjar', 'etc', 'ethereum', 'blockchain']
publicDownloadNumbers = true
version {
name = project.version
description = project.description
}
}
}
jacocoTestReport {
reports {
xml.enabled true
}
}
test.finalizedBy(jacocoTestReport)