diff --git a/avro-flink-serde/pom.xml b/avro-flink-serde/pom.xml
index 073a0ae4..e50659e3 100644
--- a/avro-flink-serde/pom.xml
+++ b/avro-flink-serde/pom.xml
@@ -20,7 +20,7 @@
4.0.0
software.amazon.glue
- schema-registry-flink-serde
+ schema-registry-flink-serde_2.12
1.1.17
AWS Glue Schema Registry Flink Avro Serialization Deserialization Schema
The AWS Glue Schema Registry Library for Apache Flink enables Java developers to easily integrate
@@ -65,7 +65,7 @@
software.amazon.glue
- schema-registry-serde
+ schema-registry-serde_2.12
1.1.17
@@ -77,7 +77,7 @@
software.amazon.glue
- schema-registry-serde
+ schema-registry-serde_2.12
1.0.2
tests
test-jar
diff --git a/avro-kafkaconnect-converter/pom.xml b/avro-kafkaconnect-converter/pom.xml
index 208d3e2e..92be452e 100644
--- a/avro-kafkaconnect-converter/pom.xml
+++ b/avro-kafkaconnect-converter/pom.xml
@@ -20,7 +20,7 @@
4.0.0
${parent.groupId}
- schema-registry-kafkaconnect-converter
+ schema-registry-kafkaconnect-converter_2.12
${parent.version}
AWS Glue Schema Registry Kafka Connect AVRO Converter
The AWS Glue Schema Registry Kafka Connect Converter enables Java developers to easily integrate
@@ -31,7 +31,7 @@
software.amazon.glue
- schema-registry-parent
+ schema-registry-parent_2.12
1.1.17
../pom.xml
@@ -62,7 +62,7 @@
${parent.groupId}
- schema-registry-serde
+ schema-registry-serde_2.12
${parent.version}
diff --git a/build-tools/pom.xml b/build-tools/pom.xml
index 009c2fe1..446f3c56 100644
--- a/build-tools/pom.xml
+++ b/build-tools/pom.xml
@@ -21,13 +21,13 @@
software.amazon.glue
- schema-registry-parent
+ schema-registry-parent_2.12
1.1.17
../pom.xml
${parent.groupId}
- schema-registry-build-tools
+ schema-registry-build-tools_2.12
${parent.version}
AWS Glue Schema Registry Build Tools
The AWS Glue Schema Registry build tools helps run code coverage for AWS Glue Schema Registry Library
diff --git a/change-scala-version.sh b/change-scala-version.sh
new file mode 100755
index 00000000..105f3f28
--- /dev/null
+++ b/change-scala-version.sh
@@ -0,0 +1,59 @@
+#!/usr/bin/env bash
+
+#
+# Copyright 2020 Amazon.com, Inc. or its affiliates.
+# Licensed under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+set -e
+
+VALID_VERSIONS=( 2.12 2.13 )
+
+usage() {
+ echo "Usage: $(basename $0) [-h|--help]
+where :
+ -h| --help Display this help text
+ valid version values : ${VALID_VERSIONS[*]}
+" 1>&2
+ exit 1
+}
+
+if [[ ($# -ne 1) || ( $1 == "--help") || $1 == "-h" ]]; then
+ usage
+fi
+
+TO_VERSION=$1
+
+check_scala_version() {
+ for i in ${VALID_VERSIONS[*]}; do [ $i = "$1" ] && return 0; done
+ echo "Invalid Scala version: $1. Valid versions: ${VALID_VERSIONS[*]}" 1>&2
+ exit 1
+}
+
+check_scala_version "$TO_VERSION"
+
+if [ $TO_VERSION = "2.13" ]; then
+ FROM_VERSION="2.12"
+else
+ FROM_VERSION="2.13"
+fi
+
+sed_i() {
+ sed -e "$1" "$2" > "$2.tmp" && mv "$2.tmp" "$2"
+}
+
+BASEDIR=$(dirname $0)
+for f in $(find "$BASEDIR" -name 'pom.xml' -not -path '*target*'); do
+ echo $f
+ sed_i 's/\(artifactId.*\)_'$FROM_VERSION'/\1_'$TO_VERSION'/g' $f
+done
\ No newline at end of file
diff --git a/common/pom.xml b/common/pom.xml
index 9ae68806..4aa45030 100644
--- a/common/pom.xml
+++ b/common/pom.xml
@@ -21,13 +21,13 @@
software.amazon.glue
- schema-registry-parent
+ schema-registry-parent_2.12
1.1.17
../pom.xml
${parent.groupId}
- schema-registry-common
+ schema-registry-common_2.12
${parent.version}
AWS Glue Schema Registry common
The AWS Glue Schema Common is the common package used by AWS Glue Schema Registry Library and has
@@ -67,7 +67,7 @@
${parent.groupId}
- schema-registry-build-tools
+ schema-registry-build-tools_2.12
${parent.version}
diff --git a/examples/pom.xml b/examples/pom.xml
index cb66bf2c..ec7f1d99 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -20,7 +20,7 @@
4.0.0
${parent.groupId}
- schema-registry-examples
+ schema-registry-examples_2.12
${parent.version}
AWS Glue Schema Registry examples
The AWS Glue Schema examples has sample code for using Schema Registry with different applications.
@@ -30,7 +30,7 @@
software.amazon.glue
- schema-registry-parent
+ schema-registry-parent_2.12
1.1.17
../pom.xml
@@ -70,7 +70,7 @@
${parent.groupId}
- schema-registry-serde
+ schema-registry-serde_2.12
${parent.version}
diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index c7e76867..46e8768c 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -20,7 +20,7 @@
4.0.0
${parent.groupId}
- schema-registry-integration-tests
+ schema-registry-integration-tests_2.12
${parent.version}
AWS Glue Schema Registry Integration Tests
The AWS Glue Schema Registry tests would do a sanity check for the schema registry library.
@@ -30,7 +30,7 @@
software.amazon.glue
- schema-registry-parent
+ schema-registry-parent_2.12
1.1.17
../pom.xml
@@ -63,12 +63,12 @@
software.amazon.glue
- schema-registry-serde
+ schema-registry-serde_2.12
${parent.version}
software.amazon.glue
- schema-registry-kafkastreams-serde
+ schema-registry-kafkastreams-serde_2.12
${parent.version}
@@ -102,7 +102,7 @@
org.apache.kafka
- kafka_${kafka.scala.version}
+ kafka_${scala.binary.version}
org.apache.kafka
@@ -184,7 +184,7 @@
software.amazon.glue
- schema-registry-serde
+ schema-registry-serde_2.12
${parent.version}
test-jar
test
diff --git a/jsonschema-kafkaconnect-converter/pom.xml b/jsonschema-kafkaconnect-converter/pom.xml
index 9f75373e..b9f4ea68 100644
--- a/jsonschema-kafkaconnect-converter/pom.xml
+++ b/jsonschema-kafkaconnect-converter/pom.xml
@@ -20,7 +20,7 @@
4.0.0
${parent.groupId}
- jsonschema-kafkaconnect-converter
+ jsonschema-kafkaconnect-converter_2.12
${parent.version}
AWS Glue Schema Registry Kafka Connect JSONSchema Converter
The AWS Glue Schema Registry Kafka Connect Converter enables Java developers to easily integrate
@@ -31,7 +31,7 @@
software.amazon.glue
- schema-registry-parent
+ schema-registry-parent_2.12
1.1.17
../pom.xml
@@ -62,7 +62,7 @@
${parent.groupId}
- schema-registry-serde
+ schema-registry-serde_2.12
${parent.version}
diff --git a/kafkastreams-serde/pom.xml b/kafkastreams-serde/pom.xml
index 2e625130..6c0a434f 100644
--- a/kafkastreams-serde/pom.xml
+++ b/kafkastreams-serde/pom.xml
@@ -20,7 +20,7 @@
4.0.0
${parent.groupId}
- schema-registry-kafkastreams-serde
+ schema-registry-kafkastreams-serde_2.12
${parent.version}
AWS Glue Schema Registry Kafka Streams SerDe
The AWS Glue Schema Registry Kafka Streams SerDe library enables Java developers to easily integrate
@@ -31,7 +31,7 @@
software.amazon.glue
- schema-registry-parent
+ schema-registry-parent_2.12
1.1.17
../pom.xml
@@ -62,7 +62,7 @@
${parent.groupId}
- schema-registry-serde
+ schema-registry-serde_2.12
${parent.version}
diff --git a/pom.xml b/pom.xml
index b5b7c49b..127f9e11 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,7 +20,7 @@
4.0.0
software.amazon.glue
- schema-registry-parent
+ schema-registry-parent_2.12
1.1.17
pom
AWS Glue Schema Registry Library
@@ -82,7 +82,7 @@
software.amazon.glue
2.18.4
1.12.151
- 2.12
+ 2.12
3.6.0
1.11.3
1.0.39
@@ -141,7 +141,7 @@
org.apache.kafka
- kafka_${kafka.scala.version}
+ kafka_${scala.binary.version}
${kafka.version}
@@ -238,7 +238,7 @@
com.kjetland
- mbknor-jackson-jsonschema_${kafka.scala.version}
+ mbknor-jackson-jsonschema_${scala.binary.version}
${mbknor.jsonschema.converter.version}
@@ -499,6 +499,18 @@
+
+ scala-2.12
+
+ 2.12
+
+
+
+ scala-2.13
+
+ 2.13
+
+
publishing
diff --git a/protobuf-kafkaconnect-converter/pom.xml b/protobuf-kafkaconnect-converter/pom.xml
index 63bc30ab..00cc66c7 100644
--- a/protobuf-kafkaconnect-converter/pom.xml
+++ b/protobuf-kafkaconnect-converter/pom.xml
@@ -21,13 +21,13 @@
software.amazon.glue
- schema-registry-parent
+ schema-registry-parent_2.12
1.1.17
../pom.xml
${parent.groupId}
- protobuf-kafkaconnect-converter
+ protobuf-kafkaconnect-converter_2.12
${parent.version}
AWS Glue Schema Registry Kafka Connect Converter for Protobuf
The AWS Glue Schema Registry Kafka Connect Converter enables Java developers to easily integrate
@@ -63,7 +63,7 @@
${parent.groupId}
- schema-registry-serde
+ schema-registry-serde_2.12
${parent.version}
diff --git a/serializer-deserializer-msk-iam/pom.xml b/serializer-deserializer-msk-iam/pom.xml
index 7baee7b9..95427180 100644
--- a/serializer-deserializer-msk-iam/pom.xml
+++ b/serializer-deserializer-msk-iam/pom.xml
@@ -20,7 +20,7 @@
4.0.0
${parent.groupId}
- schema-registry-serde-msk-iam
+ schema-registry-serde-msk-iam_2.12
AWS Glue Schema Registry Serializer Deserializer with MSK IAM Authentication client
The AWS Glue Schema Registry Serializer/Deserializer enables Java developers to easily integrate
their Apache Kafka and AWS Kinesis applications with AWS Glue Schema Registry. MSK IAM Authentication client allows
@@ -32,7 +32,7 @@
software.amazon.glue
- schema-registry-parent
+ schema-registry-parent_2.12
1.1.17
../pom.xml
@@ -68,7 +68,7 @@
${parent.groupId}
- schema-registry-serde
+ schema-registry-serde_2.12
${parent.version}
diff --git a/serializer-deserializer/pom.xml b/serializer-deserializer/pom.xml
index 32e5f709..5537181c 100644
--- a/serializer-deserializer/pom.xml
+++ b/serializer-deserializer/pom.xml
@@ -20,7 +20,7 @@
4.0.0
${parent.groupId}
- schema-registry-serde
+ schema-registry-serde_2.12
AWS Glue Schema Registry Serializer Deserializer
The AWS Glue Schema Registry Serializer/Deserializer enables Java developers to easily integrate
their Apache Kafka and AWS Kinesis applications with AWS Glue Schema Registry
@@ -31,7 +31,7 @@
software.amazon.glue
- schema-registry-parent
+ schema-registry-parent_2.12
1.1.17
../pom.xml
@@ -72,7 +72,7 @@
${parent.groupId}
- schema-registry-common
+ schema-registry-common_2.12
${parent.version}
@@ -89,7 +89,7 @@
com.kjetland
- mbknor-jackson-jsonschema_2.12
+ mbknor-jackson-jsonschema_${scala.binary.version}
io.github.classgraph