-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
84 lines (72 loc) · 2.46 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
plugins {
id "java"
id "maven-publish"
id "org.embulk.embulk-plugins" version "0.4.2"
id "com.palantir.git-version" version "0.12.3"
id "com.diffplug.spotless" version "5.15.0"
id "com.adarshr.test-logger" version "3.0.0"
id "com.github.johnrengelman.shadow" version "6.0.0" apply false
}
repositories {
mavenCentral()
}
group = "io.trocco"
description = "Dumps records to Databricks."
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = {
def vd = versionDetails()
if (vd.commitDistance == 0 && vd.lastTag ==~ /^v[0-9]+\.[0-9]+\.[0-9]+(\.[a-zA-Z0-9]+)?/) {
vd.lastTag.substring(1)
} else {
"0.0.0.${vd.gitHash}"
}
}()
dependencies {
def embulkVersion = "0.10.31"
compileOnly("org.embulk:embulk-api:${embulkVersion}")
compileOnly("org.embulk:embulk-spi:${embulkVersion}")
def jdbcVersion = "0.10.5"
compile("org.embulk:embulk-output-jdbc:$jdbcVersion")
compile("org.embulk:embulk-output-postgresql:$jdbcVersion")
compile project(path: ":shadow-databricks-jdbc", configuration: "shadow")
compile("com.databricks:databricks-sdk-java:0.20.0") {
exclude group: "org.slf4j", module: "slf4j-api"
exclude group: "com.fasterxml.jackson.core", module: "jackson-databind"
}
testImplementation "junit:junit:4.+"
testImplementation "org.embulk:embulk-junit4:0.10.31"
testImplementation "org.embulk:embulk-core:0.10.31"
testImplementation "org.embulk:embulk-core:0.10.31:tests"
testImplementation "org.embulk:embulk-deps:0.10.31"
testImplementation "org.embulk:embulk-input-file:0.10.31"
testImplementation "org.embulk:embulk-parser-csv:0.10.31"
// Supress following logs in gradlew test.
// SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
// SLF4J: Defaulting to no-operation (NOP) logger implementation
// SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
testImplementation("org.slf4j:slf4j-simple:1.7.30")
}
embulkPlugin {
mainClass = "org.embulk.output.DatabricksOutputPlugin"
category = "output"
type = "databricks"
}
gem {
from("LICENSE.txt")
authors = [ "" ]
email = [ "" ]
summary = "Databricks output plugin for Embulk"
homepage = "https://github.com/trocco-io/embulk-output-databricks"
licenses = [ "MIT" ]
}
test {
maxParallelForks 1
}
spotless {
java {
importOrder()
removeUnusedImports()
googleJavaFormat()
}
}