-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (49 loc) · 1.47 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
plugins {
id 'java'
id 'java-library'
id 'idea'
id 'maven-publish'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
group 'com.talaria.spark.sql'
version '1.0-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation group: 'com.talaria.client', name: 'java-client', version: '1.0-SNAPSHOT'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
implementation group: 'org.apache.spark', name: 'spark-sql_2.13', version: '3.2.1'
implementation group: 'org.apache.spark', name: 'spark-core_2.13', version: '3.2.1'
implementation group: 'org.json', name: 'json', version: '20220320'
implementation group: 'org.apache.spark', name: 'spark-streaming_2.13', version: '3.2.1'
implementation group: 'com.google.guava', name: 'guava', version: '31.1-jre'
//implementation 'com.google.cloud.bigdataoss:gcs-connector:hadoop3-2.2.0'
}
test {
useJUnitPlatform()
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'com.talaria.spark.sql'
artifactId = 'talaria-spark-connector'
version = '1.0-SNAPSHOT'
from components.java
}
}
repositories {
mavenLocal()
}
}
task fatJar(type: Jar) {
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}