-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
91 lines (74 loc) · 2.35 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
plugins {
id 'org.springframework.boot' version '2.5.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id "org.sonarqube" version "3.3"
id 'checkstyle'
id 'jacoco'
}
group = 'com.apus.drones'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
bootJar {
archiveFileName = "${archiveBaseName.get()}.${archiveExtension.get()}"
}
repositories {
mavenCentral()
}
checkstyle {
configFile = file('checkstyle.xml')
ignoreFailures = false
toolVersion = '9.0.1'
}
dependencies {
def activeProfile = System.getenv('SPRING_PROFILES_ACTIVE') ?: 'local'
logger.quiet(String.format('SPRING_PROFILES_ACTIVE: %s', activeProfile))
implementation 'org.springframework.boot:spring-boot-starter-web:2.5.4'
implementation 'io.springfox:springfox-swagger2:3.0.0'
implementation 'io.springfox:springfox-boot-starter:3.0.0'
implementation 'io.springfox:springfox-swagger-ui:3.0.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.5.4'
//Adding JWT
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'io.jsonwebtoken:jjwt:0.9.1'
implementation 'javax.xml.bind:jaxb-api'
testImplementation 'org.springframework.security:spring-security-test:5.5.1'
//json parsing
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.5'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:2.5.4'
implementation 'org.hibernate:hibernate-spatial:5.5.7.Final'
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
implementation 'org.springframework.boot:spring-boot-starter-validation:2.5.4'
testImplementation('org.assertj:assertj-core:3.20.2')
implementation 'com.amazonaws:aws-java-sdk:1.12.77'
if (activeProfile == 'prd') {
//mysql db (production)
runtimeOnly 'mysql:mysql-connector-java:8.0.25'
} else {
//embedded db
// A versão 1.4.200 do H2 não funciona com o h2gis
runtimeOnly 'com.h2database:h2:1.4.197'
runtimeOnly 'org.orbisgis:h2gis:1.5.0'
}
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
testLogging {
events "failed"
exceptionFormat "full"
}
}
jacocoTestReport {
dependsOn test
}
sonarqube {
properties {
property "sonar.projectKey", "apus-drones-backend"
property "sonar.qualitygate.wait", true
}
}
bootRun {
main = 'com.apus.drones.apusdronesbackend.ApusDronesBackendApplication'
}