-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
95 lines (77 loc) · 2.49 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
buildscript {
ext {
springBootVersion = '2.1.2.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id 'com.github.spotbugs' version '1.6.9'
id 'checkstyle'
id 'java'
id 'org.springframework.boot' version '2.1.2.RELEASE'
id 'io.spring.dependency-management' version '1.0.6.RELEASE'
}
group = 'de.hhu'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
checkstyle {
toolVersion '8.17'
configFile file("config/checkstyle/checkstyle.xml")
}
checkstyleMain {
source ='src/main/java'
}
checkstyleTest {
source ='src/test/java'
}
// spotbugs {
// toolVersion = '3.1.11'
// }
// To generate an HTML report instead of XML
tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports.xml.enabled = false
reports.html.enabled = true
}
dependencies {
//javax.xml.bind
compile 'javax.xml.bind:jaxb-api:2.3.0'
testCompile 'javax.xml.bind:jaxb-api:2.3.0'
//jpa
compile 'org.springframework.boot:spring-boot-starter-data-jpa:2.1.2.RELEASE'
//devtools
runtime 'org.springframework.boot:spring-boot-devtools:2.1.2.RELEASE'
compile 'mysql:mysql-connector-java:8.0.13'
runtimeOnly 'com.h2database:h2:1.4.197'
implementation 'org.springframework.boot:spring-boot-starter-data-rest:2.1.2.RELEASE'
implementation 'org.springframework.boot:spring-boot-starter-jdbc:2.1.2.RELEASE'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf:2.1.2.RELEASE'
implementation 'org.springframework.boot:spring-boot-starter-web:2.1.2.RELEASE'
//apache commons lang
compile 'org.apache.commons:commons-lang3:3.8.1'
//lombok, annotation processor
compileOnly 'org.projectlombok:lombok:1.18.4'
annotationProcessor 'org.projectlombok:lombok:1.18.4'
//spring security
compile 'org.springframework.boot:spring-boot-starter-security:2.1.2.RELEASE'
compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
//testing
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.1.2.RELEASE'
testImplementation 'org.springframework.security:spring-security-test:5.1.3.RELEASE'
//spotbugs
// annotationProcessor 'com.github.spotbugs:spotbugs-annotations:3.1.3'
// spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.7.1'
compileOnly 'net.jcip:jcip-annotations:1.0'
compileOnly 'com.github.spotbugs:spotbugs-annotations:3.1.3'
}
tasks.register("checkstyle") {
dependsOn 'checkstyleMain'
dependsOn 'checkstyleTest'
}