-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
93 lines (71 loc) · 2.26 KB
/
build.gradle
File metadata and controls
93 lines (71 loc) · 2.26 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
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
plugins {
id 'java'
id 'checkstyle'
id 'org.springframework.boot' version '2.2.2.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
}
group = 'com.reckure'
version = '1.0.SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
dependencies {
/* for properties */
implementation 'org.springframework.boot:spring-boot-configuration-processor'
/* web */
implementation 'org.springframework.boot:spring-boot-starter-web'
/* security */
// implementation 'org.springframework.boot:spring-boot-starter-security'
/* database */
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation 'org.mongodb:mongo-java-driver:3.12.0'
/* data mapping */
implementation 'org.modelmapper:modelmapper:2.3.7'
/* swagger */
implementation 'io.springfox:springfox-swagger2:2.9.2'
implementation 'io.springfox:springfox-swagger-ui:2.9.2'
/* mongobee */
implementation 'org.javassist:javassist:3.18.2-GA'
implementation 'com.github.mongobee:mongobee:0.13'
/* lombok */
compileOnly 'org.projectlombok:lombok:1.18.4'
annotationProcessor 'org.projectlombok:lombok:1.18.10'
/* test */
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
/* test */
testImplementation 'de.flapdoodle.embed:de.flapdoodle.embed.mongo'
/* devtools */
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
/* other */
compile group: 'org.apache.commons', name: 'commons-text', version: '1.8'
implementation 'javax.xml.bind:jaxb-api:2.3.0' // for binding xml
}
/* checkstyle */
checkstyle {
toolVersion '7.8.1'
configFile file("config/checkstyle/checkstyle.xml")
}
checkstyleMain {
source ='src/main/java'
}
checkstyleTest {
source ='src/test/java'
}
tasks.withType(Checkstyle) {
reports {
xml.enabled false
html.enabled true
html.stylesheet resources.text.fromFile('config/checkstyle/report.xsl')
}
}
test {
useJUnitPlatform()
}
def profile = "develop"
bootRun {
args = ["--spring.profiles.active=" + profile]
}