-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (55 loc) · 1.45 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
plugins {
id 'java'
id "io.spring.dependency-management" version "1.0.10.RELEASE" apply false
id "org.sonarqube" version "3.1" apply false
id "jacoco"
id "org.owasp.dependencycheck" version "6.0.3" apply false
id 'org.springframework.boot' version '2.3.6.RELEASE' apply false
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
allprojects {
group = 'br.com.mballoni'
version = "0.0.1- ${hashNumber()}-SNAPSHOT"
sourceCompatibility = '1.8'
}
static def hashNumber() {
'git rev-parse --short HEAD'.execute().getText().trim()
}
subprojects {
apply plugin: "java"
apply plugin: "io.spring.dependency-management"
apply plugin: "org.sonarqube"
apply plugin: "jacoco"
apply plugin: "org.owasp.dependencycheck"
apply plugin: "maven"
apply plugin: 'maven-publish'
ext {
set('springBootVersion', '2.3.6.RELEASE')
}
repositories {
maven { url "https://repo.spring.io/libs-release" }
mavenCentral()
mavenLocal()
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}
}
sonarqube {
properties {
property "sonar.sourceEncoding", "UTF-8"
property "sonar.projectName", "Toggle Boot"
}
}
jacocoTestReport {
reports {
xml.enabled true
}
}
}
jar.enabled = false