-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
111 lines (86 loc) · 2.58 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
buildscript {
repositories {
maven { url "http://repo.spring.io/libs-release" }
maven { url "http://repo.spring.io/libs-milestone" }
mavenLocal()
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.1.RELEASE")
}
}
allprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = 1.7
version = '1.0'
// define repos for all the dependant jars
repositories {
mavenLocal()
mavenCentral()
maven { url "http://repo.spring.io/libs-release" }
maven { url "http://repo.spring.io/libs-milestone" }
maven { url "https://repository.jboss.org/nexus/content/repositories/releases" }
}
// Use http://search.maven.org/ to find the correct groupId, artifactId and version
ext.libraries = [
apache : 'commons-lang:commons-lang:2.4',
jackson: ['org.codehaus.jackson:jackson-core-asl:1.9.7',
'org.codehaus.jackson:jackson-mapper-asl:1.9.7'
],
logging: 'org.slf4j:slf4j-api:1.6.4'
]
}
//custom variables for this project
project.ext {
}
apply plugin: 'spring-boot'
apply plugin: 'jacoco'
dependencies {
compile project('libs:payments-reference-implementation')
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.hsqldb:hsqldb")
compile("org.springframework.data:spring-data-rest-webmvc")
compile("commons-io:commons-io:2.4")
compile("org.joda:joda-money:0.9.1")
compile("ma.glasnost.orika:orika-core:1.4.5")
compile fileTree(dir: "libs/qbo-sdk", include: "*.jar")
testCompile("org.jmockit:jmockit:1.10")
testCompile("org.springframework.boot:spring-boot-starter-test")
//oauth dependencies
compile("oauth.signpost:signpost-core:1.2.1.2")
}
sourceSets {
main {
java {
srcDir 'src/main/java'
srcDir 'src-general/main/java'
}
resources {
output.resourcesDir = output.classesDir
}
}
test {
java {
srcDir 'src-general/test/java'
}
}
}
jar {
baseName = 'ecommerce'
version = '0.1.0'
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12' //tie this buildscript to a specific version of gradle so that we get consistent behavior
}
jacoco {
toolVersion = "0.7.1.201405082137" //specify a version of jacoco that works with java 8
}
test {
ignoreFailures = true
reports.html.enabled = false
}
clean {
delete 'database'
}