-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
110 lines (91 loc) · 2.91 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
import io.franzbecker.gradle.lombok.task.DelombokTask
plugins {
id 'org.springframework.boot' version '2.3.3.RELEASE'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'org.asciidoctor.jvm.convert' version '3.2.0'
id 'io.franzbecker.gradle-lombok' version '4.0.0'
id 'java'
id 'jacoco'
id 'maven'
}
group = 'com.github.Grupo13-PES-Mascotas'
version = '2.0.3'
sourceCompatibility = '1.8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
ext {
set('snippetsDir', file("build/generated-snippets"))
}
dependencies {
implementation 'com.google.apis:google-api-services-calendar:v3-rev20200818-1.30.10'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'com.google.firebase:firebase-admin:6.16.0'
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.11.2'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '3.5.7'
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: '3.5.7'
}
test {
outputs.dir snippetsDir as Object
useJUnitPlatform()
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
install {
dependsOn assemble
}
task delombok(type: DelombokTask, dependsOn: compileJava) {
ext.outputDir = file("$buildDir/delombok")
outputs.dir(outputDir)
sourceSets.main.java.srcDirs.each {
inputs.dir(it)
args(it, "-d", outputDir)
}
}
javadoc {
dependsOn delombok
source = delombok.outputDir
failOnError = false
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set('javadoc')
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
asciidoctor {
inputs.dir snippetsDir
dependsOn test
}
jacoco {
toolVersion = '0.8.5'
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
def fileFilter = ['**/*Test*.*', '**/entity/**', '**/error/**', '**/*Factory.class', '**/form/**', '**/Web*.class',
'**/*Service.class', '**/*Dao.class', '**/FirestoreDocument.class', '**/FirestoreCollection.class']
def debugTree = fileTree(dir: "${buildDir}/classes/", excludes: fileFilter)
classDirectories.from = files([debugTree])
dependsOn test
}