-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (71 loc) · 1.86 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
plugins {
id 'org.springframework.boot' version '2.5.6'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'jacoco'
}
group = 'br.com.aann'
version = '1.0'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
bootRun {
jvmArgs = ["-Duser.timezone=Brazil/East"]
}
repositories {
mavenCentral()
}
sourceSets {
test {
java {
srcDirs = ["src/test/java"]
}
resources {
srcDirs = ["src/test/resources"]
}
}
}
jacoco {
toolVersion = "0.8.5"
}
build.dependsOn jacocoTestReport
jacocoTestReport {
group = "Reporting"
reports {
xml.enabled true
csv.enabled true
html.destination file("${buildDir}/reports/coverage")
}
}
jar {
manifest {
attributes(
'Main-Class': 'br.com.aann.financeiro.FinanceiroApplication'
)
}
}
check.dependsOn jacocoTestCoverageVerification
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc:2.5.6'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:2.5.6'
implementation 'org.springframework.boot:spring-boot-starter-security:2.5.6'
implementation 'org.springframework.boot:spring-boot-starter-web:2.5.6'
implementation 'org.postgresql:postgresql:42.3.1'
implementation 'org.modelmapper:modelmapper:2.4.4'
implementation 'org.flywaydb:flyway-core:8.0.3'
implementation 'io.springfox:springfox-boot-starter:3.0.0'
compileOnly 'org.projectlombok:lombok:1.18.22'
compileOnly 'org.hibernate:hibernate-jpamodelgen:5.6.1.Final'
runtimeOnly 'com.h2database:h2:1.4.200'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor("javax.xml.bind:jaxb-api")
annotationProcessor("org.hibernate:hibernate-jpamodelgen")
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.5.6'
testImplementation 'org.springframework.security:spring-security-test:5.5.1'
}
test {
useJUnitPlatform()
}