-
Notifications
You must be signed in to change notification settings - Fork 66
/
build.gradle
95 lines (80 loc) · 2.69 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
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.3.2.RELEASE"
}
}
allprojects {
apply plugin: 'java'
}
configure(subprojects) {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
ext {
systemPropsFromGradle = {
project.gradle.startParameter.systemPropertiesArgs.entrySet().collect{"-D${it.key}=${it.value}"}
}
buildNrLoc = project.hasProperty('buildNr') ? "${buildNr}" : "1.0.0"
}
group = 'io.spring.cloud.sleuth.docs'
version = buildNrLoc
sourceCompatibility = '1.8'
configurations {
all {
resolutionStrategy {
eachDependency { DependencyResolveDetails details ->
// To prevent an accidental usage of groovy-all.jar and groovy.jar in different versions
// all modularized Groovy jars are replaced with groovy-all.jar by default.
if (details.requested.group == 'org.codehaus.groovy' && details.requested.name != "groovy-all") {
details.useTarget("org.codehaus.groovy:groovy-all:${details.requested.version}")
}
}
}
}
}
repositories {
mavenLocal()
jcenter()
maven {
url "http://repo.spring.io/snapshot"
}
maven {
url "http://repo.spring.io/milestone"
}
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-starter-parent:$BOM_VERSION"
}
}
}
configure(subprojects) {
dependencies {
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.springframework:spring-web"
compile 'org.apache.tomcat.embed:tomcat-embed-core:8.0.23'
compile "org.springframework.cloud:spring-cloud-starter-hystrix"
compile "org.springframework.cloud:spring-cloud-starter-zipkin"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework:spring-context-support"
compile 'com.fasterxml.jackson.core:jackson-databind'
compile "org.codehaus.jackson:jackson-mapper-asl:$jacksonMapper"
compile "org.codehaus.jackson:jackson-core-asl:$jacksonMapper"
compile "org.aspectj:aspectjrt"
runtime 'cglib:cglib-nodep:3.1'
runtime 'org.objenesis:objenesis:2.2'
runtime 'org.aspectj:aspectjweaver'
}
wrapper {
gradleVersion '2.11'
}
bootRun {
jvmArgs = systemPropsFromGradle()
}
}