forked from paulc4/microservices-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
54 lines (43 loc) · 1.46 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
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'spring-boot'
buildscript {
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:" + springBootVersion)
}
repositories {
mavenCentral()
}
}
assemble {
manifest {
attributes 'Implementation-Title': 'Micro Services Demo', 'Implementation-Version': version
}
doLast {
mkdir 'target'
copy {
from 'build/libs'
into 'target'
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile 'org.springframework.boot:spring-boot-starter:' + springBootVersion,
'org.springframework.boot:spring-boot-starter-web:' + springBootVersion,
'org.springframework.boot:spring-boot-starter-thymeleaf:' + springBootVersion,
'org.springframework.data:spring-data-commons:' + springDataCommonsVersion,
'org.springframework.boot:spring-boot-starter-test:' + springBootVersion,
'org.springframework.boot:spring-boot-starter-data-jpa:' + springBootVersion,
'org.hsqldb:hsqldb:' + hsqldbVersion,
'org.springframework.cloud:spring-cloud-starter:' + springCloudStarterVersion,
'org.springframework.cloud:spring-cloud-starter-eureka-server:' + springCloudStarterEurekaServerVersion
testCompile 'junit:junit:4.+'
}
springBoot {
mainClass = "io.pivotal.microservices.services.Main"
}