-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
118 lines (100 loc) · 2.99 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
plugins {
id 'groovy'
id 'java-gradle-plugin'
id "com.gradle.plugin-publish" version "1.1.0"
id "com.github.breadmoirai.github-release" version "2.4.1"
id 'org.unbroken-dome.test-sets' version '4.0.0'
id "com.avast.gradle.docker-compose" version "0.16.11"
id "com.github.ben-manes.versions" version "0.44.0"
id "com.redpillanalytics.gradle-analytics" version "1.4.6"
id 'com.adarshr.test-logger' version '3.2.0'
id 'build-dashboard'
}
// send analytics
analytics {
organization = 'Red Pill Analytics'
bq {
devops {
bucket = 'rpa-gradle-analytics'
dataset = 'gradle_analytics'
}
}
}
githubRelease {
token project.findProperty('githubToken').toString()
owner 'RedPillAnalytics'
repo rootProject.name
overwrite true
targetCommitish "master"
releaseAssets jar.destinationDirectory.files()
generateReleaseNotes true
}
dependencies {
implementation 'org.codehaus.groovy:groovy:3.0.13'
implementation 'com.konghq:unirest-java:3.13.13'
implementation 'com.google.code.gson:gson:2.10'
// Gradle Properties
// It also has the Common library in it, thus the dependency here
implementation 'gradle.plugin.com.redpillanalytics:gradle-properties:1.0.7'
// testing
testImplementation 'org.spockframework:spock-core:2.1-groovy-3.0'
testImplementation "org.testcontainers:spock:1.17.6"
testImplementation "org.testcontainers:kafka:1.17.6"
}
// Default artifact naming.
group = 'com.redpillanalytics'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
gradlePlugin {
plugins {
gradleConfluent {
id = 'com.redpillanalytics.gradle-confluent'
implementationClass = 'com.redpillanalytics.gradle.ConfluentPlugin'
displayName = 'gradle-confluent'
}
}
}
pluginBundle {
website = 'https://github.com/RedPillAnalytics/gradle-confluent'
vcsUrl = 'https://github.com/RedPillAnalytics/gradle-confluent'
description = "A plugin for deploying streaming applications to a Confluent Kafka cluster."
tags = ['kafka', 'confluent', 'ksql', 'streams']
}
testSets {
ksqlServerTest
ksqlPipelinesTest
deployTest
buildTest
}
tasks.deployTest.mustRunAfter tasks.buildTest
task cleanJunit(type: Delete) {
delete getTestResultsDir()
}
task cleanLibs(type: Delete) {
delete libsDirectory.files()
}
task runAllTests {
description 'Run all defined tests.'
group 'verification'
}
tasks.withType(Test) {
runAllTests.dependsOn it
failFast true
testLogging.showStandardStreams true
systemProperty 'projectDir', temporaryDir
systemProperty 'analyticsVersion', analyticsVersion
useJUnitPlatform()
//maxParallelForks = Runtime.runtime.availableProcessors()
}
tasks.publish.dependsOn tasks.publishPlugins, tasks.githubRelease, tasks.build
tasks.githubRelease.mustRunAfter tasks.publishPlugins, tasks.build
tasks.deployTest.mustRunAfter tasks.buildTest