-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
82 lines (78 loc) · 2.82 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 "scala"
id "maven-publish"
id "org.embulk.embulk-plugins" version "0.5.5"
// note: Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
// id "com.diffplug.spotless" version "6.15.0"
// https://github.com/diffplug/spotless/blob/main/plugin-gradle/CHANGES.md#6130---2023-01-14
id "com.diffplug.spotless" version "6.13.0"
// note: We cannot use the latest version because of the following error.
// > org/eclipse/jgit/lib/Repository has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
// id "com.palantir.git-version" version "0.15.0"
id "com.palantir.git-version" version "0.12.3"
}
repositories {
mavenCentral()
}
group = "pro.civitaspo"
description = "Loads records from Dynamodb."
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.41"
def awsSdkVersion = "1.12.406"
compileOnly "org.embulk:embulk-api:${embulkVersion}"
compileOnly "org.embulk:embulk-spi:${embulkVersion}"
implementation "org.scala-lang:scala-library:2.13.10"
implementation "org.embulk:embulk-util-config:0.3.2"
implementation "org.embulk:embulk-util-json:0.1.1"
implementation "org.embulk:embulk-util-timestamp:0.2.1"
implementation "com.amazonaws:aws-java-sdk-dynamodb:${awsSdkVersion}"
implementation "com.amazonaws:aws-java-sdk-sts:${awsSdkVersion}"
testImplementation "junit:junit:4.+"
testImplementation "org.embulk:embulk-junit4:${embulkVersion}"
testImplementation "org.embulk:embulk-deps:${embulkVersion}"
testImplementation "org.embulk:embulk-input-config:0.10.36"
}
test {
jvmArgs '-Xms4g', '-Xmx4g', '-XX:MaxMetaspaceSize=1g'
maxHeapSize = "4g"
}
spotless {
scala {
scalafmt('3.7.1').configFile('.scalafmt.conf')
}
}
embulkPlugin {
mainClass = "org.embulk.input.dynamodb.DynamodbInputPlugin"
category = "input"
type = "dynamodb"
}
publishing {
publications {
embulkPluginMaven(MavenPublication) {
from components.java
}
}
repositories {
maven {
url = "${project.buildDir}/mavenPublishLocal"
}
}
}
gem {
from("LICENSE.txt")
authors = ["Daisuke Higashi", "Civitaspo"]
email = ["[email protected]", "[email protected]"]
summary = "An Embulk plugin to ingest data from Dynamodb."
homepage = "https://github.com/lulichn/embulk-input-dynamodb"
licenses = [ "MIT" ]
}