-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (64 loc) · 1.94 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.2.3.RELEASE")
}
}
apply plugin: 'groovy'
apply plugin: 'spring-boot'
jar {
baseName = 'gs-spring-boot'
version = '0.1.0'
}
sourceSets {
main {
groovy {
srcDirs = ['src/main/groovy']
}
}
test {
groovy {
srcDirs = ['src/test/groovy']
}
}
}
repositories {
jcenter()
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web") {
exclude module: "spring-boot-starter-tomcat"
}
compile "org.springframework.boot:spring-boot-starter-data-jpa"
compile "org.springframework.boot:spring-boot-starter-jetty"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.cloud:spring-cloud-starter-hystrix-dashboard:1.0.0.RC2"
compile 'org.springframework.cloud:spring-cloud-starter-hystrix:1.0.2.RELEASE'
compile 'org.springframework.cloud:spring-cloud-starter-eureka:1.0.2.RELEASE'
compile 'org.springframework.cloud:spring-cloud-starter-eureka-server:1.0.2.RELEASE'
compile "org.codehaus.groovy:groovy-all:2.4.3"
compile 'org.codehaus.woodstox:woodstox-core-asl:4.4.1'
compile 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.5.3'
compile 'postgresql:postgresql:9.1-901-1.jdbc4'
compile 'com.h2database:h2:1.4.187'
testCompile "org.spockframework:spock-core:0.7-groovy-2.0"
testCompile files('libs/contracto-jvm-core-1.0.jar')
testCompile files('libs/contracto-spring-1.0.jar')
testCompile 'com.squareup.retrofit:retrofit:1.9.0'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}
task stage(type: Copy, dependsOn: [clean, build]) {
from jar.archivePath
into project.rootDir
rename {
'app.jar'
}
}
stage.mustRunAfter(clean)
clean << {
project.file('app.jar').delete()
}