forked from Netflix/conductor-community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
139 lines (116 loc) · 4.14 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:7.0.0'
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.6.7'
classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.+'
}
}
plugins {
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'application'
id 'jacoco'
id 'nebula.netflixoss' version '10.6.0'
id 'org.sonarqube' version '3.1.1'
}
// Establish version and status
ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name
subprojects {
tasks.withType(Javadoc).all { enabled = false }
}
apply from: "$rootDir/dependencies.gradle"
allprojects {
apply plugin: 'nebula.netflixoss'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java-library'
apply plugin: 'project-report'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
group = 'com.netflix.conductor'
configurations.all {
exclude group: 'ch.qos.logback', module: 'logback-classic'
exclude group: 'ch.qos.logback', module: 'logback-core'
exclude group: 'org.apache.logging.log4j', module: 'log4j-to-slf4j'
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
repositories {
mavenCentral()
// oss-candidate for -rc.* verions:
maven {
url "https://artifactory-oss.prod.netflix.net/artifactory/maven-oss-candidates"
}
/**
* This repository locates artifacts that don't exist in maven central but we had to backup from jcenter
* The exclusiveContent
*/
exclusiveContent {
forRepository {
maven {
url "https://artifactory-oss.prod.netflix.net/artifactory/required-jcenter-modules-backup"
}
}
filter {
includeGroupByRegex "com\\.github\\.vmg.*"
}
}
}
dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:2.6.7")
}
}
dependencies {
implementation "org.apache.logging.log4j:log4j-core:${revLog4J}"
implementation "org.apache.logging.log4j:log4j-api:${revLog4J}"
implementation "org.apache.logging.log4j:log4j-slf4j-impl:${revLog4J}"
implementation "org.apache.logging.log4j:log4j-jul:${revLog4J}"
implementation "org.apache.logging.log4j:log4j-web:${revLog4J}"
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.boot:spring-boot-starter-log4j2'
testImplementation 'org.junit.vintage:junit-vintage-engine'
}
// processes additional configuration metadata json file as described here
// https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/html/appendix-configuration-metadata.html#configuration-metadata-additional-metadata
compileJava.inputs.files(processResources)
test {
useJUnitPlatform()
testLogging {
events = ["SKIPPED", "FAILED"]
exceptionFormat = "full"
showStandardStreams = false
}
}
}
jacocoTestReport {
reports {
html.enabled = true
xml.enabled = true
csv.enabled = false
}
}
sonarqube {
properties {
property "sonar.projectKey", "com.netflix.conductor:conductor"
property "sonar.organization", "netflix"
property "sonar.host.url", "https://sonarcloud.io"
}
}
configure(allprojects) {
apply plugin: 'com.diffplug.spotless'
spotless {
java {
googleJavaFormat().aosp()
removeUnusedImports()
importOrder('java', 'javax', 'org', 'com.netflix', '', '\\#com.netflix', '\\#')
licenseHeaderFile("$rootDir/licenseheader.txt")
}
}
build.dependsOn(spotlessApply)
}