This repository was archived by the owner on Jun 20, 2024. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
102 lines (79 loc) · 3.15 KB
/
Copy pathbuild.gradle
File metadata and controls
102 lines (79 loc) · 3.15 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
94
95
96
97
98
99
100
101
102
plugins {
id 'org.springframework.boot' version '2.4.5'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'jacoco'
}
group = 'tech.onlycoders'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
compile.exclude module: "spring-boot-starter-tomcat"
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-amqp'
compile 'com.fasterxml.jackson.core:jackson-databind:2.12.3'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.12.3'
compile 'com.fasterxml.jackson.core:jackson-core:2.12.3'
implementation 'org.springframework.boot:spring-boot-starter-data-neo4j'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-jetty'
implementation 'com.github.javafaker:javafaker:0.12'
compile 'org.redisson:redisson-spring-boot-starter:3.15.5'
compile 'org.springdoc:springdoc-openapi-ui:1.5.8'
compile 'joda-time:joda-time:2.10.10'
compile 'eu.michael-simons.neo4j:neo4j-migrations-spring-boot-starter:0.1.3'
compile 'com.google.firebase:firebase-admin:7.1.1'
compile 'io.jsonwebtoken:jjwt:0.9.1'
compile 'javax.xml.bind:jaxb-api:2.3.1'
compile 'org.mapstruct:mapstruct:1.4.2.Final'
compileOnly 'org.projectlombok:lombok:1.18.20'
compile 'org.mapstruct:mapstruct:1.4.2.Final'
compileOnly 'org.mapstruct:mapstruct-processor:1.4.2.Final'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok-mapstruct-binding:0.1.0'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.4.2.Final'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testCompile 'org.jeasy:easy-random-core:5.0.0'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport // report is always generated after tests run
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
compileJava {
options.compilerArgs += [
'-Amapstruct.suppressGeneratorTimestamp=true',
'-Amapstruct.suppressGeneratorVersionInfoComment=true',
// '-Amapstruct.verbose=true'
]
}
jacocoTestCoverageVerification {
violationRules {
rule {
element = 'CLASS'
includes = ['tech.onlycoders.backend.service.*']
excludes = ['tech.onlycoders.backend.service.MailService*']
limit {
counter = 'LINE'
value = 'COVEREDRATIO'
minimum = 0.8
}
}
}
}
check.dependsOn jacocoTestCoverageVerification