forked from spring-attic/sagan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (74 loc) · 2.67 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
buildscript {
ext.springRepo = 'http://repo.spring.io/libs-release'
repositories {
mavenLocal()
maven { url springRepo }
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.4.4.RELEASE"
classpath 'io.spring.gradle:dependency-management-plugin:0.6.0.RELEASE'
classpath 'org.cloudfoundry:cf-gradle-plugin:1.1.3' // see deploy.gradle
}
}
plugins {
id 'com.github.ben-manes.versions' version '0.14.0'
}
def vJavaLang = '1.8'
def javaProjects = [ project(':sagan-site'), project(':sagan-indexer'), project(':sagan-common') ]
def bootProjects = javaProjects - project(':sagan-common')
def gradleDir = "${rootProject.rootDir}/gradle"
wrapper.gradleVersion = '2.13'
configure(allprojects) {
apply plugin: 'eclipse'
}
configure(javaProjects) {
apply plugin: 'java'
apply plugin: "io.spring.dependency-management"
targetCompatibility = vJavaLang
sourceCompatibility = vJavaLang
repositories {
mavenLocal()
maven { url springRepo }
}
afterEvaluate {
dependencyManagement {
imports {
mavenBom('io.spring.platform:platform-bom:Athens-SR3') {
bomProperties([
'elasticsearch.version': '1.7.1', // see io.searchbox:jest
'hibernate.version': '4.3.11.Final'
])
}
}
}
}
dependencies {
compile 'org.slf4j:slf4j-api'
testCompile 'junit:junit'
testCompile 'org.hamcrest:hamcrest-library'
testCompile 'org.mockito:mockito-core'
testCompile 'org.objenesis:objenesis'
}
configurations {
// replaced with jcl-over-slf4j
all*.exclude group: 'commons-logging', module: 'commons-logging'
// replaced with log4j-over-slf4j
all*.exclude group: 'log4j', module: 'log4j'
}
// Ensure that all Gradle-compiled classes are available to Eclipse's
// classpath.
eclipseClasspath.dependsOn testClasses
// Skip generation and removal of .settings/org.eclipse.jdt.core.prefs files
// during the normal `gradle eclipse` / `gradle cleanEclipse` lifecycle, as
// these files have been checked in with formatting settings imported from
// style/sagan-format.xml and style/sagan.importorder.
// See http://www.gradle.org/docs/current/userguide/eclipse_plugin.html
eclipseJdt.onlyIf { false }
cleanEclipseJdt.onlyIf { false }
}
configure(bootProjects) {
apply plugin: 'org.springframework.boot'
apply from: "$gradleDir/integTest.gradle"
apply from: "$gradleDir/deploy.gradle"
springBoot.backupSource = false
}