-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
74 lines (65 loc) · 2.26 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
buildscript {
ext {
springBootVersion = '2.0.3.RELEASE'
}
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.palantir.gradle.docker:gradle-docker:0.20.1"
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: "com.palantir.docker"
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'jacoco'
group = 'de.eichstaedt'
version = '1.0.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
bootJar {
launchScript()
mustRunAfter tasks.clean
mainClassName = 'de.eichstaedt.haushaltsbuch.HaushaltsbuchApplication'
archiveName 'haushaltsbuch.jar'
}
docker {
dependsOn build
name "${project.group}/${bootJar.baseName}"
files bootJar.archivePath
buildArgs(['JAR_FILE': "${bootJar.archiveName}"])
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
compile("org.springframework.boot:spring-boot-starter-security")
compile("org.thymeleaf.extras:thymeleaf-extras-springsecurity4")
compile group: 'org.postgresql', name: 'postgresql', version: '9.4-1201-jdbc41'
compile('org.hsqldb:hsqldb:2.4.0')
compile group: 'org.webjars', name: 'bootstrap', version: '4.3.1'
compile group: 'org.webjars', name: 'jquery', version: '3.4.1'
compile group: 'org.webjars', name: 'font-awesome', version: '5.12.0'
compile group: 'org.webjars', name: 'bootstrap-datepicker', version: '1.9.0'
compile 'org.webjars.bower:datatables:1.10.19'
compile group: 'org.webjars.bowergithub.datatables', name: 'dist-datatables-bootstrap4', version: '1.10.20'
developmentOnly("org.springframework.boot:spring-boot-devtools")
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile group: 'org.springframework.security', name: 'spring-security-test', version: '5.0.6.RELEASE'
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.19.0'
}