-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
86 lines (63 loc) · 2.33 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
plugins {
id 'java'
id 'scala'
id "com.commercehub.gradle.plugin.avro" version "0.9.1"
id 'com.github.johnrengelman.shadow' version '5.0.0'
// Apply the application plugin to add support for building an application
// id 'application'
}
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}
sourceSets {
main {
scala {
srcDirs = ['src/main/scala','src/main/java']
}
java {
srcDirs = []
}
}
}
configurations.all {
resolutionStrategy {
// force 'com.fasterxml.jackson.core:jackson-core:2.9.9'
force 'com.fasterxml.jackson.core:jackson-databind:2.6.7.1'
}
}
dependencies {
// compile 'org.scala-lang:scala-library:2.12.8'
compile group: 'org.slf4j', name:'slf4j-api', version: '1.7.26'
compile group: 'ch.qos.logback', name:'logback-classic', version: '1.0.1'
compile group: 'ch.qos.logback', name:'logback-core', version: '1.0.1'
// https://mvnrepository.com/artifact/com.solacesystems/sol-jms
compile group: 'com.solacesystems', name: 'sol-jms', version: '10.6.1'
compileOnly 'org.projectlombok:lombok:1.18.8'
annotationProcessor 'org.projectlombok:lombok:1.18.8'
// https://mvnrepository.com/artifact/org.apache.spark/spark-core
compile group: 'org.apache.spark', name: 'spark-core_2.12', version: '2.4.3'
// https://mvnrepository.com/artifact/org.apache.spark/spark-sql
compile group: 'org.apache.spark', name: 'spark-sql_2.12', version: '2.4.3'
// https://mvnrepository.com/artifact/org.apache.spark/spark-streaming
compile group: 'org.apache.spark', name: 'spark-streaming_2.12', version: '2.4.3'
// https://mvnrepository.com/artifact/org.apache.avro/avro
compile (group: 'org.apache.avro', name: 'avro', version: '1.9.0')
}
// Define the main class for the application
//mainClassName = 'com.solace.spark.streaming.App'
avro {
createSetters = true
fieldVisibility = "PRIVATE"
}
task run(type: JavaExec, dependsOn: classes) {
main = 'solacestream.StructuredApp'
classpath sourceSets.main.runtimeClasspath
classpath configurations.runtime
}
shadowJar {
dependencies {
include(dependency(group: 'com.solacesystems', name: 'sol-jms', version: '10.6.1'))
}
}