-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
114 lines (100 loc) · 3.75 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
109
110
111
112
113
plugins {
id 'java'
id 'idea'
id 'com.craigburke.client-dependencies' version '1.4.0'
id 'org.springframework.boot' version '1.5.7.RELEASE'
id 'checkstyle'
id 'pmd'
id 'findbugs'
id 'com.palantir.docker' version '0.13.0'
id "com.eriwen.gradle.js" version "2.14.1"
}
group 'de.hft-stuttgart'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
def versions = [
checkstyle: '8.3',
]
repositories {
mavenCentral()
jcenter()
}
jar {
baseName = 'projectindoorweb'
version = '0.1.0'
}
// JavaScript handling
combineJs {
encoding = "UTF-8"
source = [
"${projectDir}/src/main/resources/static/assets/vendor/angular/angular.js",
"${projectDir}/src/main/resources/static/assets/vendor/angular/modules/angular-animate.js",
"${projectDir}/src/main/resources/static/assets/vendor/angular/modules/angular-aria.js",
"${projectDir}/src/main/resources/static/assets/vendor/angular/modules/angular-messages.js",
"${projectDir}/src/main/resources/static/assets/vendor/angular/modules/angular-route.js",
"${projectDir}/src/main/resources/static/assets/vendor/angular/modules/angular-sanitize.js",
"${projectDir}/src/main/resources/static/assets/vendor/angular-material/angular-material.js",
"${projectDir}/src/main/resources/static/assets/vendor/openlayers/ol.js",
"${projectDir}/src/main/resources/static/assets/vendor/angular-openlayers-directive/angular-openlayers-directive.js",
"${projectDir}/src/main/resources/static/assets/vendor/jquery/jquery.js",
"${projectDir}/src/main/resources/static/js/app.js"
]
dest = file("${projectDir}/src/main/resources/static/assets/all-indoor.js")
}
configurations {
checkstyleConfig
}
checkstyle {
ignoreFailures = true
toolVersion = "${versions.checkstyle}"
config = resources.text.fromArchiveEntry(configurations.checkstyleConfig, 'sun_checks.xml')
}
pmd {
ignoreFailures = true
sourceSets = [sourceSets.main]
reportsDir = file("$project.buildDir/reports/pmd")
ruleSets = [
"java-basic",
"java-braces"
]
}
findbugs {
ignoreFailures = true
sourceSets = [sourceSets.main]
}
docker {
name "hftstuttgart/${jar.baseName}"
files jar.archivePath
buildArgs(['JAR_FILE': "${jar.archiveName}"])
}
clientDependencies {
installDir = 'src/main/resources/static/assets/vendor'
npm {
'jquery'('3.2.1')
'angular'('1.5.5')
'angular-animate'('1.5.5', into: 'angular/modules')
'angular-aria'('1.5.5', into: 'angular/modules')
'angular-messages'('1.5.5', into: 'angular/modules')
'angular-route'('1.5.5', into: 'angular/modules')
'angular-sanitize'('1.5.5', into: 'angular/modules')
'angular-material'('1.1.0')
'openlayers'('3.18.1', transitive: false)
'angular-openlayers-directive'('1.20.1', transitive: false)
'material-design-icons'('3.0.1', from: 'iconfont', transitive: false)
}
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.springframework.boot:spring-boot-devtools")
compile("org.springframework.boot:spring-boot-starter-test")
compile("org.apache.commons:commons-csv:1.5")
compile("commons-fileupload:commons-fileupload:1.2.1")
compile 'mysql:mysql-connector-java'
compile("com.h2database:h2")
compile "io.springfox:springfox-swagger2:2.7.0"
compile 'io.springfox:springfox-swagger-ui:2.7.0'
checkstyleConfig("com.puppycrawl.tools:checkstyle:${versions.checkstyle}") { transitive = false }
testCompile group: 'junit', name: 'junit', version: '4.12'
}