-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
46 lines (37 loc) · 1.06 KB
/
build.gradle
File metadata and controls
46 lines (37 loc) · 1.06 KB
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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.9.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'spring-boot'
sourceCompatibility = 1.7
version = '0.1.0-SNAPSHOT'
bootRun {
if (project.hasProperty('jvmArgs')) {
jvmArgs project.jvmArgs.split('\\s+')
}
}
test {
systemProperty 'filesystem.base', './build/resources/test/fs'
}
repositories {
mavenCentral()
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.webjars:jquery:2.1.1")
testCompile("org.springframework.boot:spring-boot-starter-test")
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}
task docker(type: Exec, dependsOn: build) {
description 'Builds image for Docker.'
commandLine 'docker', 'build', '.', '-t', "azhuchkov/${project.name}",
'--build-arg', "JAR_FILE=${projectDir.toPath().relativize(jar.archivePath.toPath())}"
}