[hotfix] Fix Java 11 target compatibility & add tests (#3633)

* [hotfix] Fix Java 11 target compatibility

Signed-off-by: yuxiqian <34335406+yuxiqian@users.noreply.github.com>

# Conflicts:
#	.github/workflows/flink_cdc_java_8.yml
#	.github/workflows/flink_cdc_migration_test_base.yml
#	pom.xml

* fix: clarify GiHub workflow names

Signed-off-by: yuxiqian <34335406+yuxiqian@users.noreply.github.com>

---------

Signed-off-by: yuxiqian <34335406+yuxiqian@users.noreply.github.com>
pull/3807/head
yuxiqian 1 month ago committed by GitHub
parent b0a7d920b9
commit 6d21941661
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -19,14 +19,15 @@ on:
workflow_call:
inputs:
java-version:
description: "Jdk version to test against."
description: "Jdk versions to test against."
required: false
type: string
default: "8"
default: "['8']"
flink-version:
description: "Flink version to test against."
description: "Flink versions to test against."
required: false
type: string
default: "['generic']"
module:
description: "Flink CDC module to test against."
required: true
@ -99,9 +100,12 @@ jobs:
compile_and_test:
runs-on: ubuntu-latest
timeout-minutes: 120
strategy:
matrix:
java-version: ${{ fromJSON(inputs.java-version) }}
flink-version: ${{ fromJSON(inputs.flink-version) }}
steps:
- run: echo "Running CI pipeline for JDK version ${{ inputs.java-version }}"
- run: echo "Running CI pipeline for JDK version ${{ matrix.java-version }}"
- name: Clean up disk space
run: |
set -euo pipefail
@ -127,7 +131,7 @@ jobs:
- name: Set JDK
uses: actions/setup-java@v4
with:
java-version: ${{ inputs.java-version }}
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: 'maven'
@ -200,8 +204,8 @@ jobs:
build_maven_parameter="-DspecifiedMongoVersion=7.0.12"
fi
if [ ! -z "${{ inputs.flink-version }}" ]; then
build_maven_parameter="${build_maven_parameter:+$build_maven_parameter }-DspecifiedFlinkVersion=${{ inputs.flink-version }}"
if [ ! -z "${{ matrix.flink-version }}" ]; then
build_maven_parameter="${build_maven_parameter:+$build_maven_parameter }-DspecifiedFlinkVersion=${{ matrix.flink-version }}"
fi
build_maven_parameter="${build_maven_parameter:+$build_maven_parameter }${{ inputs.custom-maven-parameter }}"

@ -0,0 +1,77 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
name: Flink CDC CI Nightly
on:
schedule:
- cron: '0 0 * * *' # Deploy every day
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true
jobs:
license_check:
name: License Check
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Ruby environment
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Set JDK
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: 'maven'
- name: Compiling jar packages
run: mvn --no-snapshot-updates -B package -DskipTests
- name: Run license check
run: gem install rubyzip -v 2.3.0 && ./tools/ci/license_check.rb
ut:
strategy:
matrix:
module: [ 'core', 'pipeline_connectors', 'mysql', 'postgres', 'oracle', 'mongodb6', 'mongodb7', 'sqlserver', 'tidb', 'oceanbase', 'db2', 'vitess' ]
name: Unit Tests
uses: ./.github/workflows/flink_cdc_base.yml
with:
java-version: "[11]"
module: ${{ matrix.module }}
pipeline_e2e:
name: Pipeline E2E Tests
uses: ./.github/workflows/flink_cdc_base.yml
with:
java-version: "[11]"
flink-version: "['1.19.1', '1.20.0']"
module: pipeline_e2e
source_e2e:
name: Source E2E Tests
uses: ./.github/workflows/flink_cdc_base.yml
with:
java-version: "[11]"
flink-version: "['1.19.1', '1.20.0']"
module: source_e2e
migration_test:
name: Migration Tests
uses: ./.github/workflows/flink_cdc_migration_test_base.yml
with:
java-version: "[11]"
flink-version: "['1.19.1', '1.20.0']"

@ -60,37 +60,29 @@ jobs:
ut:
strategy:
matrix:
java-version: [ '8' ]
module: [ 'core', 'pipeline_connectors', 'mysql', 'postgres', 'oracle', 'mongodb6', 'mongodb7', 'sqlserver', 'tidb', 'oceanbase', 'db2', 'vitess' ]
name: Unit Tests
uses: ./.github/workflows/flink_cdc_base.yml
with:
java-version: ${{ matrix.java-version }}
java-version: "[8]"
module: ${{ matrix.module }}
pipeline_e2e:
strategy:
matrix:
java-version: [ '8' ]
flink-version: ['1.19.1', '1.20.0']
module: [ 'pipeline_e2e' ]
name: Pipeline E2E Tests
uses: ./.github/workflows/flink_cdc_base.yml
with:
java-version: ${{ matrix.java-version }}
flink-version: ${{ matrix.flink-version }}
module: ${{ matrix.module }}
java-version: "[8]"
flink-version: "['1.19.1', '1.20.0']"
module: pipeline_e2e
source_e2e:
strategy:
matrix:
java-version: [ '8' ]
flink-version: ['1.19.1', '1.20.0']
module: [ 'source_e2e' ]
name: Source E2E Tests
uses: ./.github/workflows/flink_cdc_base.yml
with:
java-version: ${{ matrix.java-version }}
flink-version: ${{ matrix.flink-version }}
module: ${{ matrix.module }}
java-version: "[8]"
flink-version: "['1.19.1', '1.20.0']"
module: source_e2e
migration_test:
name: Migration Tests
uses: ./.github/workflows/flink_cdc_migration_test.yml
uses: ./.github/workflows/flink_cdc_migration_test_base.yml
with:
java-version: "[8]"
flink-version: "['1.19.1', '1.20.0']"

@ -17,10 +17,24 @@ name: Migration Tests
on:
workflow_call:
inputs:
java-version:
description: "Jdk versions to test against, passed as a JSON array string."
required: false
type: string
default: "['8']"
flink-version:
description: "Flink versions to test against, passed as a JSON array string."
required: true
type: string
jobs:
migration_test_ut:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: ${{ fromJSON(inputs.java-version) }}
flink-version: ${{ fromJSON(inputs.flink-version) }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
@ -28,7 +42,7 @@ jobs:
submodules: true
- uses: actions/setup-java@v4
with:
java-version: 8
java-version: ${{ matrix.java-version }}
distribution: temurin
- name: Compile snapshot CDC version
run: mvn --no-snapshot-updates -B install -DskipTests
@ -39,8 +53,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
flink-version: [ '1.19.1', '1.20.0' ]
java-version: ${{ fromJSON(inputs.java-version) }}
flink-version: ${{ fromJSON(inputs.flink-version) }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
@ -50,7 +64,7 @@ jobs:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- uses: actions/setup-java@v4
with:
java-version: 8
java-version: ${{ matrix.java-version }}
distribution: temurin
cache: maven
- name: Install dependencies
@ -78,6 +92,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: ${{ fromJSON(inputs.java-version) }}
flink-version: [ '1.19.1', '1.20.0' ]
steps:
@ -89,7 +104,7 @@ jobs:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- uses: actions/setup-java@v4
with:
java-version: 8
java-version: ${{ matrix.java-version }}
distribution: temurin
cache: maven
- name: Install dependencies

@ -112,6 +112,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -222,7 +222,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<phase>package</phase>
@ -245,15 +245,6 @@ limitations under the License.
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

@ -81,7 +81,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.1</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -144,7 +144,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -260,7 +260,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.1</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -80,7 +80,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.1</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -51,7 +51,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.1</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -46,7 +46,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -40,7 +40,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -40,7 +40,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -40,7 +40,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -40,7 +40,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -40,7 +40,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -40,7 +40,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -40,7 +40,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -40,7 +40,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>

@ -59,6 +59,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-dist</id>

@ -29,8 +29,6 @@ limitations under the License.
<name>flink-cdc-migration-testcases</name>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>

@ -51,7 +51,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink-cdc</id>

@ -51,7 +51,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink-cdc</id>

@ -51,7 +51,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink-cdc</id>

@ -51,7 +51,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink-cdc</id>

@ -54,7 +54,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink-cdc</id>

@ -39,8 +39,6 @@ limitations under the License.
</modules>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

@ -28,8 +28,6 @@ limitations under the License.
<artifactId>flink-cdc-pipeline-udf-examples</artifactId>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<scala.plugin.version>4.8.0</scala.plugin.version>
<compiler.encoding>UTF-8</compiler.encoding>
@ -85,20 +83,6 @@ limitations under the License.
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

@ -60,10 +60,7 @@ limitations under the License.
<properties>
<revision>3.3-SNAPSHOT</revision>
<java.version>1.8</java.version>
<scala.binary.version>2.12</scala.binary.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Enforce single fork execution due to heavy mini cluster use in the tests -->
<flink.forkCount>1</flink.forkCount>
@ -97,6 +94,8 @@ limitations under the License.
<janino.version>3.1.10</janino.version>
<!-- This is for Scala UDF testing purposes only. -->
<scala.version>2.12.16</scala.version>
<!-- Maven shade plugin prior to 3.2.0 could not correctly shade nested classes with JDK 8+. -->
<maven.shade.plugin.version>3.6.0</maven.shade.plugin.version>
</properties>
<dependencyManagement>
@ -453,6 +452,7 @@ limitations under the License.
<exclude>docs/site/**</exclude>
<!-- Tests -->
<exclude>**/*.txt</exclude>
<exclude>tools/mig-test/**</exclude>
<exclude>
flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mysql-cdc/src/test/resources/file/*.json
</exclude>
@ -576,7 +576,7 @@ limitations under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<id>shade-flink</id>
@ -677,6 +677,15 @@ limitations under the License.
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
</plugins>
</build>
@ -762,5 +771,27 @@ limitations under the License.
</plugins>
</build>
</profile>
<profile>
<id>java-8-target</id>
<activation>
<jdk>[1.8,11)</jdk>
</activation>
<properties>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
</profile>
<profile>
<id>java-11-target</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<properties>
<java.version>11</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
</profile>
</profiles>
</project>

@ -32,8 +32,6 @@ limitations under the License.
<debezium.version>1.9.7.Final</debezium.version>
<scala.binary.version>2.12</scala.binary.version>
<slf4j.version>2.0.13</slf4j.version>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@ -129,7 +127,14 @@ limitations under the License.
<build>
<plugins>
<!-- any other plugins -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
@ -148,4 +153,28 @@ limitations under the License.
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java-8-target</id>
<activation>
<jdk>[1.8,11)</jdk>
</activation>
<properties>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
</profile>
<profile>
<id>java-11-target</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<properties>
<java.version>11</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
</profile>
</profiles>
</project>

@ -32,8 +32,6 @@ limitations under the License.
<debezium.version>1.9.7.Final</debezium.version>
<scala.binary.version>2.12</scala.binary.version>
<slf4j.version>2.0.13</slf4j.version>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@ -129,7 +127,14 @@ limitations under the License.
<build>
<plugins>
<!-- any other plugins -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
@ -148,4 +153,28 @@ limitations under the License.
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java-8-target</id>
<activation>
<jdk>[1.8,11)</jdk>
</activation>
<properties>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
</profile>
<profile>
<id>java-11-target</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<properties>
<java.version>11</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
</profile>
</profiles>
</project>

@ -32,8 +32,6 @@ limitations under the License.
<debezium.version>1.9.7.Final</debezium.version>
<scala.binary.version>2.12</scala.binary.version>
<slf4j.version>2.0.13</slf4j.version>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@ -129,7 +127,14 @@ limitations under the License.
<build>
<plugins>
<!-- any other plugins -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
@ -148,4 +153,28 @@ limitations under the License.
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java-8-target</id>
<activation>
<jdk>[1.8,11)</jdk>
</activation>
<properties>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
</profile>
<profile>
<id>java-11-target</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<properties>
<java.version>11</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
</profile>
</profiles>
</project>

@ -32,8 +32,6 @@ limitations under the License.
<debezium.version>1.9.7.Final</debezium.version>
<scala.binary.version>2.12</scala.binary.version>
<slf4j.version>2.0.13</slf4j.version>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@ -129,7 +127,14 @@ limitations under the License.
<build>
<plugins>
<!-- any other plugins -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
@ -148,4 +153,28 @@ limitations under the License.
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java-8-target</id>
<activation>
<jdk>[1.8,11)</jdk>
</activation>
<properties>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
</profile>
<profile>
<id>java-11-target</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<properties>
<java.version>11</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
</profile>
</profiles>
</project>

@ -32,8 +32,6 @@ limitations under the License.
<debezium.version>1.9.7.Final</debezium.version>
<scala.binary.version>2.12</scala.binary.version>
<slf4j.version>2.0.13</slf4j.version>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@ -129,7 +127,14 @@ limitations under the License.
<build>
<plugins>
<!-- any other plugins -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
@ -148,4 +153,28 @@ limitations under the License.
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java-8-target</id>
<activation>
<jdk>[1.8,11)</jdk>
</activation>
<properties>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
</profile>
<profile>
<id>java-11-target</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<properties>
<java.version>11</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
</profile>
</profiles>
</project>

@ -32,8 +32,6 @@ limitations under the License.
<debezium.version>1.9.7.Final</debezium.version>
<scala.binary.version>2.12</scala.binary.version>
<slf4j.version>2.0.13</slf4j.version>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@ -129,7 +127,14 @@ limitations under the License.
<build>
<plugins>
<!-- any other plugins -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
@ -148,4 +153,28 @@ limitations under the License.
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java-8-target</id>
<activation>
<jdk>[1.8,11)</jdk>
</activation>
<properties>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
</profile>
<profile>
<id>java-11-target</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<properties>
<java.version>11</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>
</profile>
</profiles>
</project>
Loading…
Cancel
Save