-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (65 loc) · 1.93 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
group 'com.bluespurs.starterkit'
version '1.0.0'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.4.2.RELEASE'
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'war'
// Load the properties file.
Properties props = new Properties();
props.load(new FileReader(projectDir.getAbsolutePath() + '/src/main/resources/application.properties'))
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
war {
baseName = 'TakeHomeTest'
}
configurations {
providedRuntime
}
ext {
gsonVersion = '2.5'
guavaVersion = '19.0'
gsonVersion = '2.6.1'
hibernateValidatorVersion = '5.2.4.Final'
hamcrestVersion = '1.3'
junitVersion = '4.12'
mockitoVersion = '1.10.19'
restAssuredVersion = '2.8.0'
jsonPathAssertVersion = '0.8.1'
}
dependencies {
// Spring Boot
compile 'org.springframework.boot:spring-boot-devtools',
'org.springframework.boot:spring-boot-starter-web',
'org.springframework.boot:spring-boot-starter-hateoas'
// Input Validator Provider
compile "org.hibernate:hibernate-validator:$hibernateValidatorVersion"
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
// Google libraries
compile "com.google.code.gson:gson:$gsonVersion",
"com.google.guava:guava:$guavaVersion"
// Unit & Integration Testing
testCompile "org.hamcrest:hamcrest-all:$hamcrestVersion",
"junit:junit:$junitVersion",
"org.mockito:mockito-core:$mockitoVersion",
"com.jayway.jsonpath:json-path-assert:$jsonPathAssertVersion"
testCompile 'org.springframework.boot:spring-boot-starter-test'
}
bootRepackage {
excludeDevtools = true
dependsOn test
}
task wrapper(type: Wrapper) {
gradleVersion = '3.2.1'
}