-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
61 lines (49 loc) · 1.3 KB
/
build.gradle.kts
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
plugins {
jacoco
`java-library`
id("org.sonarqube") version "5.1.0.4882"
}
repositories {
mavenCentral()
}
val flumeVersion = "1.11.0"
dependencies {
api("org.apache.flume:flume-ng-configuration:${flumeVersion}")
api("org.apache.flume:flume-ng-core:${flumeVersion}")
api("org.apache.flume:flume-ng-sdk:${flumeVersion}")
implementation("org.apache.commons:commons-lang3:3.17.0")
implementation("org.mongodb:mongodb-driver:3.12.14")
implementation("org.slf4j:slf4j-api:2.0.16")
testImplementation("junit:junit:4.13.2")
testImplementation("org.hamcrest:hamcrest:3.0")
testImplementation("org.testcontainers:testcontainers:1.20.2")
}
group = "art.iculate.flume"
version = "0.2"
description = "flume-mongodb-sink"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.setDeprecation(true)
}
jacoco {
toolVersion = "0.8.12"
}
tasks.jacocoTestReport {
dependsOn(tasks.test)
reports {
xml.required.set(true)
}
}
sonar {
properties {
property("sonar.projectKey", "nossralf_flume-mongodb-sink")
property("sonar.organization", "nossralf")
property("sonar.host.url", "https://sonarcloud.io")
}
}
tasks.sonar {
dependsOn(tasks.jacocoTestReport)
}