You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by da...@apache.org on 2022/11/14 15:26:38 UTC
[flink-connector-aws] 01/02: [FLINK-30008][Connectors/AWS] Upgrade to Flink 1.16.0 and add CI build profile
This is an automated email from the ASF dual-hosted git repository.
dannycranmer pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-connector-aws.git
commit 77916b67e15c1ee0169fe3dace5ed4f55d07ea5d
Author: Danny Cranmer <da...@apache.org>
AuthorDate: Sun Nov 13 10:51:17 2022 +0000
[FLINK-30008][Connectors/AWS] Upgrade to Flink 1.16.0 and add CI build profile
---
.github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++--
pom.xml | 13 ++-----------
2 files changed, 39 insertions(+), 13 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ff77203..b0dc004 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -19,13 +19,13 @@
name: Build flink-connector-dynamodb
on: [push, pull_request]
jobs:
- compile_and_test:
+ compile_and_test_flink_1_15_2:
runs-on: ubuntu-latest
strategy:
matrix:
jdk: [8, 11]
env:
- MVN_COMMON_OPTIONS: -U -B --no-transfer-progress
+ MVN_COMMON_OPTIONS: -U -B --no-transfer-progress -Dflink.version=1.15.2
MVN_CONNECTION_OPTIONS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
FLINK_URL: https://dlcdn.apache.org/flink/flink-1.15.2/flink-1.15.2-bin-scala_2.12.tgz
MVN_BUILD_OUTPUT_FILE: "/tmp/mvn_build_output.out"
@@ -54,6 +54,41 @@ jobs:
-DaltDeploymentRepository=validation_repository::default::file:${{ env.MVN_VALIDATION_DIR }} \
| tee ${{ env.MVN_BUILD_OUTPUT_FILE }}
+ compile_and_test_flink_1_16_0:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ jdk: [ 8, 11 ]
+ env:
+ MVN_COMMON_OPTIONS: -U -B --no-transfer-progress -Dflink.version=1.16.0
+ MVN_CONNECTION_OPTIONS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
+ FLINK_URL: https://dlcdn.apache.org/flink/flink-1.16.0/flink-1.16.0-bin-scala_2.12.tgz
+ MVN_BUILD_OUTPUT_FILE: "/tmp/mvn_build_output.out"
+ MVN_VALIDATION_DIR: "/tmp/flink-validation-deployment"
+ steps:
+ - run: echo "Running CI pipeline for JDK version ${{ matrix.jdk }}"
+
+ - name: Check out repository code
+ uses: actions/checkout@v2
+
+ - name: Set JDK
+ uses: actions/setup-java@v2
+ with:
+ java-version: ${{ matrix.jdk }}
+ distribution: 'temurin'
+ cache: 'maven'
+
+ - name: Set Maven 3.8.5
+ uses: stCarolas/setup-maven@v4.2
+ with:
+ maven-version: 3.8.5
+
+ - name: Compile and test flink-connector-dynamodb
+ run: |
+ mvn clean install -Dflink.convergence.phase=install -Pcheck-convergence -U -B ${{ env.MVN_CONNECTION_OPTIONS }} \
+ -DaltDeploymentRepository=validation_repository::default::file:${{ env.MVN_VALIDATION_DIR }} \
+ | tee ${{ env.MVN_BUILD_OUTPUT_FILE }}
+
- name: Check licensing
run: |
mvn ${MVN_COMMON_OPTIONS} exec:java@check-licensing -N \
diff --git a/pom.xml b/pom.xml
index f5badf3..1f4ebb0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -52,18 +52,9 @@ under the License.
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/flink-connector-aws.git</developerConnection>
</scm>
- <pluginRepositories>
- <pluginRepository>
- <!-- Allows exec-maven-plugin to resolve snapshot plugin dependencies -->
- <id>apache.snapshots.https</id>
- <name>${distMgmtSnapshotsName}</name>
- <url>${distMgmtSnapshotsUrl}</url>
- </pluginRepository>
- </pluginRepositories>
-
<properties>
<aws.sdk.version>2.17.247</aws.sdk.version>
- <flink.version>1.15.2</flink.version>
+ <flink.version>1.16.0</flink.version>
</properties>
<modules>
@@ -117,7 +108,7 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-ci-tools</artifactId>
- <version>1.16-SNAPSHOT</version>
+ <version>${flink.version}</version>
</dependency>
</dependencies>
</plugin>