forked from shun0102/embulk-parser-jsonl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
78 lines (66 loc) · 1.92 KB
/
build.gradle
File metadata and controls
78 lines (66 loc) · 1.92 KB
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
plugins {
id "java"
id "jacoco"
id "com.diffplug.spotless" version "6.11.0"
id "com.palantir.git-version" version "3.4.0"
id "org.embulk.embulk-plugins" version "0.7.0"
}
repositories {
mavenCentral()
}
description = "JSONL parser plugin for Embulk"
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"
}
}()
compileJava.options.encoding = 'UTF-8' // source encoding
sourceCompatibility = 1.8
targetCompatibility = 1.8
embulkPlugin {
group = "primenumber-dev"
mainClass = "org.embulk.parser.jsonl.JsonlParserPlugin"
category = "parser"
type = "jsonl"
}
gem {
authors = ["Shunsuke Mikami"]
email = ["shun0102@gmail.com"]
summary = "Jsonl parser plugin for Embulk"
homepage = "https://github.com/shun0102/embulk-parser-jsonl"
licenses = ["MIT"]
from("lib") {
into("lib")
}
}
dependencies {
compileOnly "org.embulk:embulk-api:0.10.43"
compileOnly "org.embulk:embulk-spi:0.11"
implementation "org.embulk:embulk-util-config:0.3.4"
implementation "org.embulk:embulk-util-json:0.3.0"
implementation "org.embulk:embulk-util-timestamp:0.2.2"
implementation "org.embulk:embulk-util-text:0.1.1"
implementation "org.embulk:embulk-util-guess:0.3.0"
testImplementation "junit:junit:4.+"
testImplementation "org.embulk:embulk-api:0.10.43"
testImplementation "org.embulk:embulk-spi:0.11"
testImplementation "org.embulk:embulk-junit4:0.11.5"
testImplementation "org.embulk:embulk-util-config:0.3.4"
testImplementation "org.embulk:embulk-deps:0.11.5"
}
spotless {
java {
importOrder()
removeUnusedImports()
googleJavaFormat()
}
}
dependencyLocking {
lockAllConfigurations()
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation"
}