-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
58 lines (49 loc) · 1.45 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.2.5.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'spring-boot'
jar {
baseName = 'lockbox'
version = '0.1.0'
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile("org.springframework.boot:spring-boot-starter-web") {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
}
compile("org.springframework.boot:spring-boot-starter-undertow")
compile("org.springframework.boot:spring-boot-starter-security")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.springframework.boot:spring-boot-starter-data-mongodb")
compile("org.springframework.data:spring-data-mongodb:1.7.1.RELEASE")
compile("org.apache.directory.studio:org.apache.commons.io:2.4")
compile("org.webjars:jquery:2.1.4")
compile("org.webjars:bootstrap:3.3.5")
testCompile("junit:junit")
testCompile("org.springframework:spring-test:4.1.7.RELEASE")
testCompile("org.mockito:mockito-core:")
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}
task stage(type: Copy, dependsOn: [clean, assemble]) {
from jar.archivePath
into project.rootDir
rename {
'app.jar'
}
}
stage.mustRunAfter(clean)
clean << {
project.file('app.jar').delete()
}