-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
58 lines (48 loc) · 1.71 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
plugins {
// Apply the java plugin to add support for Java
id 'java'
}
allprojects {
repositories {
jcenter()
// Add Confluent maven repo for Confluent dependencies
maven {
url "https://packages.confluent.io/maven/"
}
// Required for com.github.everit-org.json-schema:org.everit.json.schema:
maven {
url "https://jitpack.io"
}
// Add local repo this way regression tests can be run on every build
mavenLocal()
}
}
ext {
// Run ./gradlew setDependenciesForRegressionTesting to set this properties
assertjVersion = 'PLACEHOLDER'
confluentVersion = 'PLACEHOLDER'
kafkaJunitVersion = 'PLACEHOLDER'
junitJupiterVersion = 'PLACEHOLDER'
lombokVersion = 'PLACEHOLDER'
}
subprojects {
// Every module is a Java library
apply plugin: 'java-library'
dependencies {
// Lombok configuration
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
testImplementation "org.projectlombok:lombok:$lombokVersion"
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
testImplementation "org.assertj:assertj-core:$assertjVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitJupiterVersion"
}
test {
// Use junit platform for unit tests
useJUnitPlatform()
}
// Keep Java8 compatibility
apply from: "$rootProject.projectDir/../keep-java8-compatibility.gradle"
}