-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
65 lines (56 loc) · 1.53 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
plugins {
id "org.embulk.embulk-plugins" version "0.5.5"
id "java"
id "com.diffplug.spotless" version "6.13.0"
id "com.palantir.git-version" version "0.13.0"
}
repositories {
mavenCentral()
}
configurations {
provided
}
version = {
def vd = versionDetails()
if (vd.commitDistance == 0 && vd.lastTag ==~ /^[0-9]+\.[0-9]+\.[0-9]+(\.[a-zA-Z0-9]+)?/) {
vd.lastTag
} else {
"0.0.0.${vd.gitHash}.pre"
}
}()
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
def embulkVersion = "0.10.42"
compileOnly "org.embulk:embulk-api:${embulkVersion}"
compileOnly "org.embulk:embulk-spi:${embulkVersion}"
compile "org.embulk:embulk-util-file:0.1.3"
compile "org.embulk:embulk-util-config:0.3.2"
implementation('com.box:box-java-sdk:4.0.0') {
exclude group: 'org.bouncycastle', module: 'bcprov-jdk15on'
exclude group: 'org.bouncycastle', module: 'bcpkix-jdk15on'
}
runtimeOnly('org.bouncycastle:bcprov-jdk15on:1.70')
runtimeOnly('org.bouncycastle:bcpkix-jdk15on:1.70')
testCompile "junit:junit:4.+"
}
embulkPlugin {
mainClass = "org.embulk.input.box.BoxFileInputPlugin"
category = "input"
type = "box"
}
gem {
from("LICENSE.txt")
authors = [ "d-hrs" ]
email = [ "[email protected]" ]
summary = "embulk input plugin"
homepage = "https://github.com/trocco-io/embulk-input-box"
licenses = [ "MIT" ]
}
spotless {
java {
importOrder()
removeUnusedImports()
googleJavaFormat()
}
}