-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
150 lines (129 loc) · 5.07 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
id "java"
id "checkstyle"
id "jacoco"
id "maven"
id 'maven-publish'
id "org.embulk.embulk-plugins" version "0.4.2"
}
repositories {
mavenCentral()
jcenter()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = "com.treasuredata.embulk.plugins"
description = "An Embulk plugin to loads records from Azure Blob Storage."
version = "0.3.2"
def embulkVersion = '0.10.31';
dependencies {
compileOnly "org.embulk:embulk-api:$embulkVersion"
compileOnly "org.embulk:embulk-spi:$embulkVersion"
compile("com.microsoft.azure:azure-storage:8.6.6") {
// Conflict with Embulk Core
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
exclude group: 'com.google.guava', module: 'guava'
exclude group: 'org.slf4j', module: 'slf4j-api'
exclude group: 'org.apache.commons', module: 'commons-lang3'
}
compile("org.embulk:embulk-util-config:0.3.1") {
// Conflict with Embulk Core
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-annotations'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
exclude group: 'com.fasterxml.jackson.datatype', module: 'jackson-datatype-jdk8'
exclude group: 'javax.validation', module: 'validation-api'
}
compile 'org.embulk:embulk-util-retryhelper-jetty92:0.8.2'
compile 'org.embulk:embulk-util-file:0.1.3'
// Explicit dependencies for embulk-util-* & embulk-base-restclient that matches with Embulk 0.10.19
compile 'com.fasterxml.jackson.core:jackson-core:2.6.7'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.6.7'
compile 'com.fasterxml.jackson.core:jackson-databind:2.6.7'
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.6.7'
compile 'javax.validation:validation-api:1.1.0.Final'
// Necessary for bval from Java 9+
compile 'javax.xml.bind:jaxb-api:2.2.11'
compile 'com.sun.xml.bind:jaxb-core:2.2.11'
compile 'com.sun.xml.bind:jaxb-impl:2.2.11'
compile 'javax.activation:activation:1.1.1'
compile 'com.google.guava:guava:18.0'
compile 'org.apache.commons:commons-lang3:3.4'
testCompile "junit:junit:4.12"
testCompile "org.embulk:embulk-core:$embulkVersion"
testCompile "org.embulk:embulk-core:$embulkVersion:tests"
testCompile "org.embulk:embulk-deps:$embulkVersion"
testCompile "org.embulk:embulk-junit4:$embulkVersion"
testCompile "org.embulk:embulk-parser-csv:$embulkVersion"
testCompile "org.embulk:embulk-output-file:$embulkVersion"
testCompile "org.embulk:embulk-formatter-csv:$embulkVersion"
}
test {
jvmArgs '-XX:MaxPermSize=128M', '-Xmx2048m'
testLogging {
events "passed", "skipped", "failed"
}
}
tasks.withType(Test) {
testLogging {
// set options for log level LIFECYCLE
events TestLogEvent.FAILED,
TestLogEvent.PASSED,
TestLogEvent.SKIPPED,
TestLogEvent.STANDARD_OUT
exceptionFormat TestExceptionFormat.FULL
showExceptions true
showCauses true
showStackTraces true
afterSuite { desc, result ->
if (!desc.parent) { // will match the outermost suite
def output = "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} passed, ${result.failedTestCount} failed, ${result.skippedTestCount} skipped)"
def startItem = '| ', endItem = ' |'
def repeatLength = startItem.length() + output.length() + endItem.length()
println('\n' + ('-' * repeatLength) + '\n' + startItem + output + endItem + '\n' + ('-' * repeatLength))
}
}
}
}
checkstyle {
configFile = file("${project.rootDir}/config/checkstyle/checkstyle.xml")
toolVersion = '6.14.1'
}
checkstyleMain {
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
ignoreFailures = true
}
checkstyleTest {
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
ignoreFailures = true
}
task checkstyle(type: Checkstyle) {
classpath = sourceSets.main.output + sourceSets.test.output
source = sourceSets.main.allJava + sourceSets.test.allJava
}
jacocoTestReport {
group = "Reporting"
reports {
xml.enabled false
csv.enabled false
html.destination file("${buildDir}/reports/coverage")
}
}
embulkPlugin {
mainClass = "org.embulk.input.azure_blob_storage.AzureBlobStorageFileInputPlugin"
category = "input"
type = "azure_blob_storage"
}
gem {
authors = [ "Satoshi Akama" ]
email = [ "satoshiakama@gmail.com" ]
summary = "Azure Blob Storage input plugin for Embulk"
homepage = "https://github.com/embulk/embulk-input-azure_blob_storage"
licenses = [ "Apache-2.0" ]
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
options.encoding = "UTF-8"
}