-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
76 lines (67 loc) · 1.99 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.3'
id 'io.spring.dependency-management' version '1.1.4'
id "com.diffplug.spotless" version "5.16.0"
id "jacoco"
id "application"
}
group = 'com.sitblueprint'
version = '0.0.1-SNAPSHOT'
mainClassName = 'com.sitblueprint.admin.BlueprintAdmin'
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
spotless {
// optional: limit format enforcement to just the files changed by this feature branch
// ratchetFrom 'origin/main'
format 'misc', {
// define the files to apply `misc` to
target '*.gradle', '*.md', '.gitignore'
// define the steps to apply to those files
trimTrailingWhitespace()
indentWithSpaces(3) // or spaces. Takes an integer argument if you don't like 4
endWithNewline()
setEncoding('utf-8')
}
java {
eclipse() // I like eclipse formatting over google
// googleJavaFormat('1.11.0').aosp().reflowLongStrings(), this is the other option
}
}
jacocoTestReport {
dependsOn test
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.02
}
}
}
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.data:spring-data-rest-hal-explorer'
implementation "org.springframework.boot:spring-boot-starter-security"
implementation 'org.hibernate:hibernate-validator:6.0.13.Final'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
runtimeOnly 'org.postgresql:postgresql:42.2.23'
}
tasks.named('test') {
useJUnitPlatform()
// finalizedBy jacocoTestCoverageVerification
}