forked from spinnaker/gate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
67 lines (58 loc) · 1.66 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
buildscript {
ext {
springBootVersion = "1.2.8.RELEASE"
}
repositories {
jcenter()
maven { url "http://spinnaker.bintray.com/gradle" }
}
dependencies {
classpath 'com.netflix.spinnaker.gradle:spinnaker-gradle-project:3.9.0'
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
}
}
allprojects {
apply plugin: 'spinnaker.project'
apply plugin: 'groovy'
ext {
spinnakerDependenciesVersion = project.hasProperty('spinnakerDependenciesVersion') ? project.property('spinnakerDependenciesVersion') : '0.63.0'
}
def checkLocalVersions = [spinnakerDependenciesVersion: spinnakerDependenciesVersion]
if (ext.has('versions')) {
def extVers = ext.get('versions')
if (extVers instanceof Map) {
checkLocalVersions.putAll(extVers)
}
}
def localVersions = checkLocalVersions.findAll { it.value.endsWith('-SNAPSHOT') }
if (localVersions) {
logger.info("Enabling mavenLocal repo for $localVersions")
repositories {
mavenLocal()
}
}
spinnaker {
dependenciesVersion = spinnakerDependenciesVersion
}
configurations.all {
exclude group: 'javax.servlet', module: 'servlet-api'
exclude group: 'javax.servlet', module: 'javax.servlet-api'
resolutionStrategy {
eachDependency {
if (it.requested.group == 'org.springframework.boot') {
it.useVersion '1.2.8.RELEASE'
}
if (it.requested.group == 'org.springframework') {
it.useVersion '4.1.9.RELEASE'
}
}
}
}
group = "com.netflix.spinnaker.gate"
test {
testLogging {
exceptionFormat = 'full'
}
}
}
defaultTasks ':gate-web:bootRun'