-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
60 lines (48 loc) · 1.32 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
plugins {
id 'java'
id 'eclipse'
id "com.diffplug.spotless" version "5.1.0"
id 'org.sonarqube' version '3.0'
id 'jacoco'
id 'checkstyle'
id "org.springframework.boot" version "${springBootVersion}"
id "io.spring.dependency-management" version "1.0.11.RELEASE"
}
repositories {
jcenter()
mavenLocal()
}
sourceCompatibility = JavaVersion.VERSION_11
dependencies {
implementation('org.springframework.boot:spring-boot-starter-web')
implementation('org.springframework.boot:spring-boot-starter-validation')
implementation("io.springfox:springfox-boot-starter:3.0.0")
implementation("com.google.code.gson:gson:2.8.7")
implementation('org.springframework.data:spring-data-commons')
implementation("org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.0")
runtimeOnly 'mysql:mysql-connector-java'
testImplementation('org.springframework.boot:spring-boot-starter-test')
developmentOnly("org.springframework.boot:spring-boot-devtools")
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
eclipse {
classpath {
downloadJavadoc = true
downloadSources = true
}
}
spotless {
java {
googleJavaFormat('1.9')
}
groovyGradle {
target '*.gradle'
greclipse().configFile('greclipse.properties')
}
}
spotlessCheck.dependsOn spotlessApply
checkstyle {
toolVersion '8.42'
}