-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
85 lines (74 loc) · 2.19 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
group 'ee.euro2'
version '0.0.2-SNAPSHOT'
buildscript {
ext {
springBootVersion = '1.5.2.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'signing'
apply plugin: 'maven-publish'
project.version = '0.0.2-SNAPSHOT'
sourceCompatibility = 1.8
jar {
baseName = 'wallet-server-client'
}
repositories {
mavenCentral()
maven { url "http://dl.bintray.com/ethereum/maven" }
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives javadocJar, sourcesJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
repositories {
// mavenLocal()
maven {
def repoUrl = project.version.endsWith('-SNAPSHOT') ? "https://oss.sonatype.org/content/repositories/snapshots" : "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
url repoUrl
credentials {
username "${System.env.OSSRH_USERNAME}"
password "${System.env.OSSRH_PASSWORD}"
}
}
}
}
dependencies {
compile('org.springframework:spring-core:4.3.7.RELEASE')
compile('org.springframework:spring-context:4.3.7.RELEASE')
compile('org.springframework:spring-web:4.3.7.RELEASE')
compile('io.springfox:springfox-swagger2:2.6.1')
compile('io.springfox:springfox-swagger-ui:2.6.1')
compile('org.projectlombok:lombok:1.16.18')
compile('org.ethereum:ethereumj-core:1.3.1-RELEASE') {
exclude group: "org.slf4j", module: "slf4j-log4j12"
}
testCompile("org.springframework.boot:spring-boot-starter-test") {
exclude module: "spock-core"
}
testCompile("org.spockframework:spock-core:1.1-groovy-2.4-rc-3")
testCompile("org.spockframework:spock-spring:1.1-groovy-2.4-rc-3")
testCompile('cglib:cglib-nodep:3.2.4') // for stubbing of classes
}