Skip to content

Commit 43f43d5

Browse files
authored
Merge pull request #27 from embulk/add-jaxb-and-upgrade-aws-sdk
Add external JAXB dependencies with upgrading aws-java-sdk to 1.11.1034
2 parents d92c1c5 + cbc7ab8 commit 43f43d5

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

NOTICE_GEM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ It is licensed under the Apache Software License, Version 2.0.
2323
The gem distribution of this product includes a JAR of the Apache HttpClient 4.5 (http://hc.apache.org/httpcomponents-client-4.5.x/index.html), as-is.
2424
It is licensed under the Apache Software License, Version 2.0.
2525

26-
The gem distribution of this product includes a JAR of the Apache HttpCore 4.5 (http://hc.apache.org/httpcomponents-core-4.4.x/index.html), as-is.
26+
The gem distribution of this product includes a JAR of the Apache HttpCore 4.4 (http://hc.apache.org/httpcomponents-core-4.4.x/index.html), as-is.
2727
It is licensed under the Apache Software License, Version 2.0.
2828

2929
The gem distribution of this product includes a JAR of the JCL 1.2 implemented over SLF4J (http://www.slf4j.org/legacy.html) 1.7, as-is.

build.gradle

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repositories {
1111
}
1212

1313
group = "org.embulk"
14-
version = "1.6.0-SNAPSHOT"
14+
version = "1.7.0-SNAPSHOT"
1515
description = "Stores files on S3."
1616

1717
sourceCompatibility = 1.8
@@ -31,7 +31,7 @@ dependencies {
3131
compileOnly "org.embulk:embulk-spi:0.10.31"
3232
compileOnly "org.embulk:embulk-api:0.10.31"
3333

34-
compile("com.amazonaws:aws-java-sdk-s3:1.11.271") {
34+
compile("com.amazonaws:aws-java-sdk-s3:1.11.1034") {
3535
// Jackson libraries conflict with embulk-core before v0.10.32.
3636
// They are once excluded here, and re-added explicitly below.
3737
exclude group: "com.fasterxml.jackson.core", module: "jackson-annotations"
@@ -66,6 +66,9 @@ dependencies {
6666
// "jackson-databind:2.6.7.1" is a little bit different from "embulk-core:0.10.31"'s dependency ("2.6.7"). But,
6767
// "embulk-output-s3" had contained "jackson-databind:2.6.7.1", not "2.6.7", for a long time. It has been working.
6868
// Keeping this "2.6.7.1" here for compatibility with older versions. It has no problems with Embulk v0.10.32+.
69+
//
70+
// "aws-java-sdk-s3:1.11.1034" depends on "jackson-databind:2.6.7.4", not "2.6.7.1", but keeping it with "2.6.7.1"
71+
// until Embulk v0.11 gets widely used.
6972
compile "com.fasterxml.jackson.core:jackson-databind:2.6.7.1"
7073

7174
compile "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.6.7"
@@ -83,14 +86,6 @@ dependencies {
8386
exclude group: "org.slf4j", module: "slf4j-api"
8487
}
8588

86-
// TODO: Enable those JAXB dependencies.
87-
//
88-
// Including explicit JAXB dependencies would be needed to work with Java 9+. But they didn't work with aws-java-sdk-s3:1.11.271.
89-
// On the other hand, upgrading aws-java-sdk has another compatibility risk.
90-
//
91-
// We decided to release one version without JAXB and AWS SDK upgrade, but only with v0.10 catch-up, at first.
92-
// Then, we will release a next version both with JAXB and AWS SDK upgrade.
93-
//
9489
// Adding dependencies on JAXB explicitly.
9590
// JAXB 2.2.11 is chosen here because:
9691
// 1. JDK 8's bundled JAXB is 2.2.8. Better with a closer version while we are on Java 8.
@@ -102,9 +97,9 @@ dependencies {
10297
// https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl
10398
// 4. JAXB 2.2.8 and 2.2.11 look to have the same set of classes.
10499
// Although their internal implementations are a bit different, class loaders would not be confused.
105-
// compile "javax.xml.bind:jaxb-api:2.2.11"
106-
// compile "com.sun.xml.bind:jaxb-core:2.2.11"
107-
// compile "com.sun.xml.bind:jaxb-impl:2.2.11"
100+
compile "javax.xml.bind:jaxb-api:2.2.11"
101+
compile "com.sun.xml.bind:jaxb-core:2.2.11"
102+
compile "com.sun.xml.bind:jaxb-impl:2.2.11"
108103

109104
testCompile "junit:junit:4.13.2"
110105
testCompile "org.embulk:embulk-core:0.10.31"

gradle/dependency-locks/embulkPluginRuntime.lockfile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
# This is a Gradle generated file for dependency locking.
22
# Manual edits can break the build and are not advised.
33
# This file is expected to be part of source control.
4-
com.amazonaws:aws-java-sdk-core:1.11.271
5-
com.amazonaws:aws-java-sdk-kms:1.11.271
6-
com.amazonaws:aws-java-sdk-s3:1.11.271
7-
com.amazonaws:jmespath-java:1.11.271
4+
com.amazonaws:aws-java-sdk-core:1.11.1034
5+
com.amazonaws:aws-java-sdk-kms:1.11.1034
6+
com.amazonaws:aws-java-sdk-s3:1.11.1034
7+
com.amazonaws:jmespath-java:1.11.1034
88
com.fasterxml.jackson.core:jackson-annotations:2.6.7
99
com.fasterxml.jackson.core:jackson-core:2.6.7
1010
com.fasterxml.jackson.core:jackson-databind:2.6.7.1
1111
com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.6.7
1212
com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.6.7
13-
commons-codec:commons-codec:1.9
13+
com.sun.xml.bind:jaxb-core:2.2.11
14+
com.sun.xml.bind:jaxb-impl:2.2.11
15+
commons-codec:commons-codec:1.15
1416
javax.validation:validation-api:1.1.0.Final
17+
javax.xml.bind:jaxb-api:2.2.11
1518
joda-time:joda-time:2.9.2
16-
org.apache.httpcomponents:httpclient:4.5.2
17-
org.apache.httpcomponents:httpcore:4.4.4
19+
org.apache.httpcomponents:httpclient:4.5.13
20+
org.apache.httpcomponents:httpcore:4.4.13
1821
org.embulk:embulk-util-config:0.3.1
1922
org.embulk:embulk-util-file:0.1.3
2023
org.slf4j:jcl-over-slf4j:1.7.12

0 commit comments

Comments
 (0)