-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
97 lines (89 loc) · 3.06 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
plugins {
id "java"
id "maven-publish"
id "org.embulk.embulk-plugins" version "0.4.2"
id "com.diffplug.spotless" version "5.15.0"
id "com.palantir.git-version" version "0.12.3"
}
repositories {
mavenCentral()
}
group = "io.trocco"
description = "An embulk output plugin to egest records as json via http/https."
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}"
}
}()
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
def embulkVersion = "0.10.33"
compileOnly "org.embulk:embulk-api:${embulkVersion}"
compileOnly "org.embulk:embulk-spi:${embulkVersion}"
compile "org.embulk:embulk-util-config:0.3.0"
compile "org.embulk:embulk-util-json:0.1.1"
compile "org.embulk:embulk-util-timestamp:0.2.1"
compile "org.hibernate:hibernate-validator:7.0.1.Final"
compile "org.glassfish:jakarta.el:4.0.2"
compile "org.embulk:embulk-base-restclient:0.10.1"
compile("org.embulk:embulk-util-retryhelper-jaxrs:0.8.1") {
exclude group: "org.slf4j", module: "slf4j-api"
}
// NOTE: Avoid 'java.lang.LinkageError: ClassCastException: attempting to castjar:file:./build/gemContents/classpath/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/client/ClientBuilder.class to jar:file:./build/gemContents/classpath/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/client/ClientBuilder.class'
// compile "org.glassfish.jersey.core:jersey-client:3.0.3"
compile "org.glassfish.jersey.core:jersey-client:2.25.1"
compile project(path: ":shadow-jackson-jq", configuration: 'shadow')
testImplementation platform('org.junit:junit-bom:5.8.1')
testImplementation "org.junit.jupiter:junit-jupiter"
testImplementation "org.embulk:embulk-core:${embulkVersion}"
testImplementation "org.embulk:embulk-deps:${embulkVersion}"
testImplementation "org.embulk:embulk-input-config:${embulkVersion}"
testImplementation 'com.github.tomakehurst:wiremock-jre8:2.32.0'
}
embulkPlugin {
mainClass = "org.embulk.output.http_json.HttpJsonOutputPlugin"
category = "output"
type = "http_json"
}
publishing {
publications {
embulkPluginMaven(MavenPublication) {
from components.java
}
}
repositories {
maven {
url = "${project.buildDir}/mavenPublishLocal"
}
}
}
gem {
from("LICENSE.txt")
authors = [ "Civitaspo" ]
email = [ "[email protected]" ]
summary = "An embulk output plugin to egest records as json via http/https."
homepage = "https://github.com/trocco-io/embulk-output-http_json"
licenses = [ "MIT" ]
}
spotless {
java {
importOrder()
removeUnusedImports()
googleJavaFormat().aosp()
}
}
test {
useJUnitPlatform()
testLogging {
events "PASSED", "SKIPPED", "FAILED", "STANDARD_OUT", "STANDARD_ERROR"
exceptionFormat "full"
showExceptions true
showCauses true
showStackTraces true
showStandardStreams true
}
}