-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
127 lines (109 loc) · 3.8 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
buildscript {
ext {
springBootVersion = '1.3.4.RELEASE'
versionEyeVersion = '1.4.0'
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:0.6.1.RELEASE"
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
classpath "org.standardout:gradle-versioneye-plugin:$versionEyeVersion"
}
}
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'spring-boot'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'org.standardout.versioneye'
apply plugin: 'io.spring.dependency-management'
war {
baseName = 'ROOT'
}
versioneye {
includeSubProjects = true
}
allprojects {
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/libs-milestone-local' }
maven { url 'https://repo.spring.io/libs-release-local' }
}
ext {
aspectjVersion = '1.8.7'
commonsVersion = '1.3.1'
commonsLangVersion = '3.5'
guavaVersion = '19.0-rc2'
hibernateVersion = '5.0.5.Final'
h2Version = '1.4.190'
jacksonVersion = '2.6.3'
jadiraVersion = '4.0.0.GA'
javaxServletVersion = '4.0.0-b01'
jodaTimeVersion = '2.9'
junitVersion = '4.12'
mockitoVersion = '2.0.2-beta'
postgresVersion = '9.4-1205-jdbc42'
powerMockVersion = '1.6.3'
springVersion = '4.3.3.RELEASE'
springBootVersion = '1.3.4.RELEASE'
springHateoasVersion = '0.19.0.RELEASE'
springJpaVersion = '1.9.1.RELEASE'
springSecurityVersion = '4.1.0.RELEASE'
springSecurityOAuthVersion = '2.0.11.RELEASE'
springSocialVersion = '1.1.4.RELEASE'
springSocialFacebookVersion = '2.0.3.RELEASE'
thymeleafVersion = '2.1.2.RELEASE'
thymeleafExtrasJava8TimeVersion = '2.1.0.RELEASE'
thymeleafLayoutVersion = '1.3.1'
}
dependencies {
compile "com.google.guava:guava:$guavaVersion"
compile "org.apache.commons:commons-lang3:$commonsLangVersion"
compile "org.springframework:spring-core:$springVersion"
//compile "org.springframework:spring-context:$springVersion"
testCompile "junit:junit:$junitVersion"
testCompile "org.mockito:mockito-all:$mockitoVersion"
testCompile "org.powermock:powermock-mockito-release-full:$powerMockVersion"
testCompile "org.springframework:spring-test:$springVersion"
testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVersion"
}
}
dependencies {
compile project(":admin")
compile project(":api")
compile project(":config")
compile project(":core")
compile project(":dcsc-web")
compile project(":athena")
compile project(":utilities")
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
providedRuntime 'javax.websocket:javax.websocket-api:1.1'
}
bootRun() {
Map properties = project.getProperties()
String templateDir = properties.get("org.dcsc.template.directory")
String resourceDir = properties.get("org.dcsc.resource.directory")
jvmArgs = ["-Ddcsc.template.directory=$templateDir",
"-Ddcsc.resource.directory=$resourceDir"
]
}
task wrapper(type: Wrapper) {
gradleVersion = '3.1'
}
test {
testLogging.showStandardStreams = true
testLogging.exceptionFormat = 'full'
testLogging {
afterSuite { desc, result ->
if (!desc.parent) { // will match the outermost suite
println "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
}
}
}
}