-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
96 lines (78 loc) · 2.55 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
buildscript {
ext {
coverallsVersion = "2.7.1"
springBootVersion = "1.5.7.RELEASE"
queryDslVersion = "1.0.9"
}
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("gradle.plugin.com.ewerk.gradle.plugins:querydsl-plugin:${queryDslVersion}")
classpath("org.kt3k.gradle.plugin:coveralls-gradle-plugin:${coverallsVersion}")
}
}
apply plugin: 'java'
ext {
jUnitVersion = "4.+"
lombokVersion = "1.16.12"
//docker
dockerRepository = 'klhauser/microservices4vaadin-'
}
// all subprojects
project(':microservices') {
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'maven'
springBoot {
requiresUnpack = ['com.netflix.eureka:eureka-core','com.netflix.eureka:eureka-client']
}
repositories {
mavenLocal()
mavenCentral()
}
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-starter-parent:Dalston.SR4'
}
}
group = 'microservices4vaadin'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.cloud:spring-cloud-starter-config")
compile("org.springframework.cloud:spring-cloud-starter-eureka")
compile "org.projectlombok:lombok:${lombokVersion}"
compile("com.google.guava:guava:18.0")
compile("com.jayway.jsonpath:json-path")
testCompile("org.springframework.boot:spring-boot-starter-test")
testCompile("junit:junit:${jUnitVersion}")
}
repositories {
maven {
url 'https://repo.spring.io/libs-snapshot'
}
}
jar {
manifest.attributes provider: 'gradle'
}
apply from: '../../gradle/jacoco.gradle'
apply from: '../../gradle/docker.gradle'
}
}
if (project != project(':common')) {
apply from: 'gradle/jacocoAll.gradle'
}
task wrapper(type: Wrapper) {
gradleVersion = '4.2.1'
}