-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
108 lines (87 loc) · 2.59 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath('org.springframework.boot:spring-boot-gradle-plugin:1.2.3.RELEASE')
}
}
plugins {
id "com.github.hierynomus.license" version "0.11.0"
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'war'
springBoot {
mainClass = 'de.fau.amos4.Application'
}
jar {
baseName = 'PFB'
version = '0.1.0'
}
war {
baseName = jar.baseName
version = jar.version
}
configurations {
providedRuntime
}
repositories {
mavenCentral()
}
def javaVersion = '1.7'
def javaEncoding = 'UTF-8'
compileJava { sourceCompatibility = javaVersion; targetCompatibility = javaVersion; options.encoding = javaEncoding }
compileTestJava { sourceCompatibility = javaVersion; targetCompatibility = javaVersion; options.encoding = javaEncoding }
dependencies {
// Framework
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-security')
compile('javax.mail:mail:1.4.1')
// View technology
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
compile('nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:1.2.8')
// Persistance
compile('org.postgresql:postgresql:9.4-1201-jdbc41')
runtime('org.hsqldb:hsqldb:2.3.2')
// Zip
compile('net.lingala.zip4j:zip4j:1.3.2')
// PDF
compile('org.apache.pdfbox:pdfbox:1.8.9')
// Utility
compile('org.apache.commons:commons-lang3:3.4')
compile('org.apache.commons:commons-collections4:4.0')
// Test
testCompile('junit:junit')
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile('org.springframework.security:spring-security-test:4.0.1.RELEASE')
// Deployment
providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
}
test {
afterTest { desc, result ->
println "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}"
}
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
license {
if (System.properties['os.name'].toLowerCase().contains('windows')) {
ignoreFailures = true
}
header = file('LICENSE.header')
ext.year = Calendar.getInstance().get(Calendar.YEAR)
ext.name = 'Attila Bujaki, Werner Sembach, Jonas Gröger, Oswaldo\n' +
' Bejarano, Ardhi Sutadi, Nikitha Mohan, Benedikt Rauh'
// Only mark Java files with license
include '**/*.java'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}