-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
83 lines (70 loc) · 2.24 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
plugins {
id "java"
id "maven-publish"
id "org.embulk.embulk-plugins" version "0.5.5"
id "com.palantir.git-version" version "0.13.0"
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 = "Loads records from 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.36"
compileOnly("org.embulk:embulk-api:${embulkVersion}")
compileOnly("org.embulk:embulk-spi:${embulkVersion}")
compile("org.embulk:embulk-input-jdbc:0.13.2")
compile project(path: ":shadow-databricks-jdbc", configuration: "shadow")
testImplementation "junit:junit:4.+"
testImplementation "org.embulk:embulk-junit4:${embulkVersion}"
testImplementation "org.embulk:embulk-core:${embulkVersion}"
testImplementation "org.embulk:embulk-deps:${embulkVersion}"
testImplementation "org.embulk:embulk-formatter-csv:${embulkVersion}"
testImplementation "org.embulk:embulk-output-file:${embulkVersion}"
// 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.input.DatabricksInputPlugin"
category = "input"
type = "databricks"
}
test {
environment "TZ", "UTC"
}
clean {
delete "classpath"
delete 'default_jdbc_driver'
}
gem {
from("LICENSE.txt")
authors = [ "" ]
email = [ "" ]
summary = "Databricks input plugin for Embulk"
homepage = "https://github.com/trocco-io/embulk-input-databricks"
licenses = [ "MIT" ]
}
spotless {
java {
importOrder()
removeUnusedImports()
googleJavaFormat()
toggleOffOn()
}
}