forked from leanstacks/skeleton-ws-spring-boot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
107 lines (85 loc) · 2.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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: '1.4.0.RELEASE'
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'spring-boot'
apply plugin: 'jacoco'
apply plugin: 'checkstyle'
apply plugin: 'pmd'
apply plugin: 'project-report'
apply plugin: 'build-dashboard'
ext {
jacocoVersion = '0.7.7.201606060606'
checkstyleVersion = '7.1'
pmdVersion = '5.5.1'
guavaVersion = '19.0'
jadiraVersion = '5.0.0.GA'
swaggerVersion = '2.5.0'
}
group = 'com.leanstacks'
version = '1.6.1'
sourceCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-security'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa'
compile group: 'org.springframework', name: 'spring-context-support'
compile group: 'joda-time', name: 'joda-time'
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-joda'
compile group: 'com.google.guava', name: 'guava', version: guavaVersion
compile group: 'com.github.ben-manes.caffeine', name: 'caffeine'
compile group: 'org.jadira.usertype', name: 'usertype.extended', version: jadiraVersion
compile group: 'io.springfox', name: 'springfox-swagger2', version: swaggerVersion
compile group: 'io.springfox', name: 'springfox-swagger-ui', version: swaggerVersion
// https://mvnrepository.com/artifact/com.google.code.gson/gson
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.1'
runtime group: 'org.hsqldb', name: 'hsqldb'
runtime group: 'mysql', name: 'mysql-connector-java'
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test'
}
defaultTasks 'clean', 'build'
task wrapper(type: Wrapper) {
gradleVersion = '2.14.1'
}
task encodePassword(type: JavaExec) {
classpath = sourceSets.test.runtimeClasspath
main = 'com.leanstacks.ws.util.BCryptPasswordEncoderUtil'
if(project.hasProperty('mainargs')) {
args(mainargs.split(','))
}
}
springBoot {
buildInfo()
}
jacoco {
toolVersion = jacocoVersion
}
jacocoTestReport {
reports {
html.enabled = true
xml.enabled = true
csv.enabled = false
}
}
test.finalizedBy jacocoTestReport
checkstyle {
toolVersion = checkstyleVersion
config = rootProject.resources.text.fromFile('etc/checkstyle/rules.xml')
}
pmd {
toolVersion = pmdVersion
ruleSetConfig = rootProject.resources.text.fromFile('etc/pmd/ruleset.xml')
ignoreFailures = true
}
check.finalizedBy projectReport
projectReport.finalizedBy buildDashboard