This repository has been archived by the owner on Mar 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (59 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
plugins {
id 'org.springframework.boot' version '2.1.8.RELEASE' apply false
id 'org.sonarqube' version '2.7.1'
id 'com.github.ben-manes.versions' version '0.25.0'
}
group = 'io.github.bbortt.qdrakeboo'
ext {
set('springBootVersion', "2.1.8.RELEASE")
set('springCloudVersion', "Greenwich.SR3")
}
sonarqube {
properties {
property 'sonar.projectKey', 'bbortt_qdrakeboo'
}
}
allprojects {
version "${version}"
repositories {
mavenCentral()
}
}
subprojects {
def globalJavaConfiguration = {
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'jacoco'
sourceCompatibility = '11'
targetCompatibility = '11'
buildscript {
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
}
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
check.dependsOn jacocoTestReport
}
pluginManager.withPlugin('java', globalJavaConfiguration)
pluginManager.withPlugin('java', {
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
dependencies {
developmentOnly 'org.springframework.boot:spring-boot-devtools'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes-config'
}
})
}