-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
77 lines (59 loc) · 1.59 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.4.RELEASE")
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:2.2.+'
}
}
group = "ru.jeeconf"
version = "0.0.1"
allprojects {
apply plugin: 'io.spring.dependency-management'
apply plugin: 'provided-base'
repositories {
jcenter()
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-starter-parent:Camden.SR5"
}
dependencies {
dependency 'org.projectlombok:lombok:1.16.8'
dependency 'org.codehaus.groovy:groovy-all:2.4.5'
}
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
sourceCompatibility = 1.8
targetCompatibility = 1.8
jar {
archiveName = project.name + ".jar"
}
dependencies {
compile 'org.codehaus.groovy:groovy-all'
compile 'org.springframework.cloud:spring-cloud-starter-zipkin'
compile 'org.springframework.cloud:spring-cloud-sleuth-zipkin'
compile 'org.springframework.cloud:spring-cloud-starter-eureka'
// compile 'org.springframework.cloud:spring-cloud-starter-consul-all'
provided 'org.projectlombok:lombok'
testCompile 'org.springframework.boot:spring-boot-starter-test'
}
task dockerBuild << {
exec {
commandLine 'docker', 'build', '--force-rm=true', "--tag=${project.name}", '.'
}
}
dockerBuild.dependsOn build
springBoot {
executable = true
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.13'
}