-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle
118 lines (105 loc) · 4.25 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import org.codehaus.groovy.runtime.GStringImpl
buildscript {
ext.artifactId = 'quaklog-api'
ext.archive_extension = 'jar'
ext.archive_file_name = "${artifactId}.${archive_extension}" as GStringImpl
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
}
dependencies {
classpath 'gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.12.2'
}
}
group 'br.com.helpdev'
version '1.1.0'
description = "API para importação e consulta de arquivos de log do jogo Quake"
allprojects {
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'jacoco'
repositories {
jcenter()
}
}
subprojects {
apply plugin: 'java'
ext {
versions = [
junit : "5.9.3",
assertj : "3.11.1",
spring : "3.1.1",
swagger : '2.1.0',
inject : '2.0.1',
mockito : '5.4.0',
lombok : '1.18.28',
caffeine: '3.1.6',
jackson : '2.15.2'
]
libs = [
inject : [
"jakarta.inject:jakarta.inject-api:${versions.inject}"
],
spring_test : [
"org.springframework.boot:spring-boot-starter-test:${versions.spring}",
],
unit_test : [
"org.junit.jupiter:junit-jupiter-api:${versions.junit}",
"org.junit.jupiter:junit-jupiter-params:${versions.junit}",
"org.junit.jupiter:junit-jupiter-engine:${versions.junit}",
"org.mockito:mockito-core:${versions.mockito}"
],
spring_config : [
"org.springframework.boot:spring-boot-starter-web:${versions.spring}",
"io.springfox:springfox-swagger2:${versions.swagger}",
],
cacheable : [
"org.springframework.boot:spring-boot-starter-cache:${versions.spring}",
"com.github.ben-manes.caffeine:caffeine:${versions.caffeine}",
"com.github.ben-manes.caffeine:guava:${versions.caffeine}",
"com.github.ben-manes.caffeine:jcache:${versions.caffeine}",
],
spring_annotation_processor : [
"org.springframework.boot:spring-boot-configuration-processor:${versions.spring}",
],
communs_libs : [
"com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}",
"org.projectlombok:lombok:${versions.lombok}"
],
communs_annotation_processor: [
"org.projectlombok:lombok:${versions.lombok}"
],
entrypoint : [
"org.springframework.boot:spring-boot-starter-web:${versions.spring}",
"org.springdoc:springdoc-openapi-starter-webmvc-ui:${versions.swagger}",
],
database : [
"org.springframework.boot:spring-boot-starter-data-mongodb:${versions.spring}",
],
]
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
}
}
tasks.register('jacocoRootReport', JacocoReport) {
description = 'Generates an aggregate report from all subprojects'
dependsOn = subprojects.test
additionalSourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs)
sourceDirectories = files(subprojects.sourceSets.main.allSource.srcDirs)
classDirectories = files(subprojects.sourceSets.main.output)
executionData = files(subprojects.jacocoTestReport.executionData)
reports {
html.required = true // human readable
xml.required = true // required by coveralls
}
}
coveralls {
sourceDirs = subprojects.sourceSets.main.allSource.srcDirs.flatten()
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoRootReport/jacocoRootReport.xml"
}