Skip to content

Commit 3f94b8c

Browse files
committed
Updated dependencies
1 parent 05d8362 commit 3f94b8c

File tree

24 files changed

+407
-249
lines changed

24 files changed

+407
-249
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,16 @@ jobs:
2020
# Steps represent a sequence of tasks that will be executed as part of the job
2121
steps:
2222
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2424

25-
- uses: actions/setup-java@v1
25+
- uses: actions/setup-java@v3
2626
with:
27+
distribution: temurin
2728
java-version: 11
2829

29-
- name: Cache
30-
uses: actions/cache@v2
31-
with:
32-
# Cache gradle directories
33-
path: |
34-
~/.gradle/caches
35-
~/.gradle/wrapper
36-
# Key for restoring and saving the cache
37-
key: ${{ runner.os }}-gradle-${{ hashFiles('gradlew', '**/*.gradle', 'gradle.properties', 'gradle/**') }}
38-
restore-keys: |
39-
${{ runner.os }}-gradle-
30+
- name: Setup Gradle
31+
uses: gradle/gradle-build-action@v2
4032

41-
# Compile the code
4233
- name: Compile code
4334
run: ./gradlew assemble
4435

@@ -53,25 +44,26 @@ jobs:
5344
# Steps represent a sequence of tasks that will be executed as part of the job
5445
steps:
5546
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
56-
- uses: actions/checkout@v2
47+
- uses: actions/checkout@v3
5748

5849
- name: Docker build parameters
5950
id: docker_params
6051
run: |
61-
echo "::set-output name=has_docker_login::${{ secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != '' }}"
62-
if [ "${{ github.event_name == 'pull_request' }}" = "true" ]; then
63-
echo "::set-output name=push::false"
64-
echo "::set-output name=load::true"
65-
echo "::set-output name=platforms::linux/amd64"
52+
HAS_DOCKER_LOGIN=${{ secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != '' }}
53+
echo "has_docker_login=$HAS_DOCKER_LOGIN" >> $GITHUB_OUTPUT
54+
if [ "${{ github.event_name == 'pull_request' }}" = "true" ] || [ "$HAS_DOCKER_LOGIN" = "false" ]; then
55+
echo "push=false" >> $GITHUB_OUTPUT
56+
echo "load=true" >> $GITHUB_OUTPUT
57+
echo "platforms=linux/amd64" >> $GITHUB_OUTPUT
6658
else
67-
echo "::set-output name=push::true"
68-
echo "::set-output name=load::false"
69-
echo "::set-output name=platforms::linux/amd64,linux/arm64"
59+
echo "push=true" >> $GITHUB_OUTPUT
60+
echo "load=false" >> $GITHUB_OUTPUT
61+
echo "platforms=linux/amd64,linux/arm64" >> $GITHUB_OUTPUT
7062
fi
7163
7264
- name: Cache Docker layers
7365
id: cache_buildx
74-
uses: actions/cache@v2
66+
uses: actions/cache@v3
7567
with:
7668
path: /tmp/.buildx-cache
7769
key: ${{ runner.os }}-buildx-${{ steps.docker_params.outputs.push }}-${{ hashFiles('**/Dockerfile', '**/*.gradle', 'gradle.properties', '.dockerignore', '*/src/main/**', 'docker/**') }}
@@ -81,24 +73,24 @@ jobs:
8173
8274
- name: Login to Docker Hub
8375
if: steps.docker_params.outputs.has_docker_login == 'true'
84-
uses: docker/login-action@v1
76+
uses: docker/login-action@v2
8577
with:
8678
username: ${{ secrets.DOCKERHUB_USERNAME }}
8779
password: ${{ secrets.DOCKERHUB_TOKEN }}
8880

8981
# Add Docker labels and tags
9082
- name: Docker meta
9183
id: docker_meta
92-
uses: crazy-max/ghaction-docker-meta@v2
84+
uses: docker/metadata-action@v4
9385
with:
9486
images: ${{ env.DOCKER_IMAGE }}
9587

9688
# Setup docker build environment
9789
- name: Set up QEMU
98-
uses: docker/setup-qemu-action@v1
90+
uses: docker/setup-qemu-action@v2
9991

10092
- name: Set up Docker Buildx
101-
uses: docker/setup-buildx-action@v1
93+
uses: docker/setup-buildx-action@v2
10294

10395
- name: Cache parameters
10496
id: cache-parameters
@@ -110,8 +102,9 @@ jobs:
110102
fi
111103
112104
- name: Build docker
113-
uses: docker/build-push-action@v2
105+
uses: docker/build-push-action@v3
114106
with:
107+
context: .
115108
cache-from: type=local,src=/tmp/.buildx-cache
116109
cache-to: ${{ steps.cache-parameters.outputs.cache-to }}
117110
platforms: ${{ steps.docker_params.outputs.platforms }}
@@ -134,8 +127,11 @@ jobs:
134127
- name: Inspect docker image
135128
run: |
136129
docker image inspect ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }}
137-
docker run --rm ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }} curl --help
130+
docker run --rm ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }} curl --version
131+
138132
133+
# https://github.com/docker/build-push-action/issues/252
134+
# https://github.com/moby/buildkit/issues/1896
139135
- name: Move docker build cache
140136
if: steps.cache_buildx.outputs.cache-hit != 'true'
141137
run: |

.github/workflows/release.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ jobs:
1616
# Steps represent a sequence of tasks that will be executed as part of the job
1717
steps:
1818
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19-
- uses: actions/checkout@v2
20-
- uses: actions/setup-java@v1
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-java@v3
2121
with:
22+
distribution: temurin
2223
java-version: 11
2324

2425
- name: Gradle cache
25-
uses: actions/cache@v2
26+
uses: actions/cache@v3
2627
with:
2728
# Cache gradle directories
2829
path: |
@@ -51,33 +52,34 @@ jobs:
5152

5253
# Steps represent a sequence of tasks that will be executed as part of the job
5354
steps:
54-
- uses: actions/checkout@v2
55+
- uses: actions/checkout@v3
5556

5657
# Setup docker build environment
5758
- name: Set up QEMU
58-
uses: docker/setup-qemu-action@v1
59+
uses: docker/setup-qemu-action@v2
5960
- name: Set up Docker Buildx
60-
uses: docker/setup-buildx-action@v1
61+
uses: docker/setup-buildx-action@v2
6162

6263
- name: Login to DockerHub
63-
uses: docker/login-action@v1
64+
uses: docker/login-action@v2
6465
with:
6566
username: ${{ secrets.DOCKERHUB_USERNAME }}
6667
password: ${{ secrets.DOCKERHUB_TOKEN }}
6768

6869
# Add Docker labels and tags
6970
- name: Docker meta
7071
id: docker_meta
71-
uses: crazy-max/ghaction-docker-meta@v2
72+
uses: docker/metadata-action@v4
7273
with:
7374
images: ${{ env.DOCKER_IMAGE }}
7475
tags: |
7576
type=semver,pattern={{version}}
7677
type=semver,pattern={{major}}.{{minor}}
7778
7879
- name: Build docker
79-
uses: docker/build-push-action@v2
80+
uses: docker/build-push-action@v3
8081
with:
82+
context: .
8183
platforms: linux/amd64,linux/arm64
8284
push: true
8385
tags: ${{ steps.docker_meta.outputs.tags }}

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM gradle:7.2-jdk11 as builder
15+
FROM --platform=$BUILDPLATFORM gradle:7.5-jdk11 as builder
1616

1717
RUN mkdir /code
1818
WORKDIR /code
1919

2020
ENV GRADLE_USER_HOME=/code/.gradlecache \
21-
GRADLE_OPTS="-Dorg.gradle.vfs.watch=false"
21+
GRADLE_OPTS="-Dorg.gradle.vfs.watch=false -Djdk.lang.Process.launchMechanism=vfork"
2222

2323
COPY ./build.gradle ./settings.gradle ./gradle.properties /code/
2424
COPY kafka-connect-rest-source/build.gradle /code/kafka-connect-rest-source/
@@ -31,7 +31,7 @@ COPY ./kafka-connect-fitbit-source/src/ /code/kafka-connect-fitbit-source/src
3131

3232
RUN gradle jar
3333

34-
FROM confluentinc/cp-kafka-connect-base:6.2.0-3-ubi8
34+
FROM confluentinc/cp-kafka-connect-base:7.2.2
3535

3636
MAINTAINER Joris Borgdorff <[email protected]>
3737

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
22

33
plugins {
4-
id("com.github.ben-manes.versions") version "0.39.0"
4+
id("com.github.ben-manes.versions") version "0.43.0"
55
}
66

77
description = 'kafka-connect-rest-source'
@@ -19,9 +19,9 @@ allprojects {
1919

2020
subprojects {
2121
ext {
22-
kafkaVersion = '2.8.0'
23-
confluentVersion = '6.2.0'
24-
jacksonVersion = '2.12.5'
22+
kafkaVersion = '7.2.2-ce'
23+
confluentVersion = '7.2.2'
24+
jacksonVersion = '2.13.2'
2525
}
2626

2727
apply plugin: 'java'
@@ -32,7 +32,7 @@ subprojects {
3232
}
3333

3434
wrapper {
35-
gradleVersion '7.2'
35+
gradleVersion '7.5.1'
3636
}
3737

3838
evaluationDependsOnChildren()
@@ -50,7 +50,7 @@ task downloadDependencies {
5050

5151

5252
def isNonStable = { String version ->
53-
def stableKeyword = ["RELEASE", "FINAL", "GA"].any { version.toUpperCase().contains(it) }
53+
def stableKeyword = ["RELEASE", "FINAL", "GA", "-CE"].any { version.toUpperCase().contains(it) }
5454
def regex = /^[0-9,.v-]+(-r)?$/
5555
return !stableKeyword && !(version ==~ regex)
5656
}

docker-compose.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
# Zookeeper Cluster #
1010
#---------------------------------------------------------------------------#
1111
zookeeper-1:
12-
image: confluentinc/cp-zookeeper:6.2.0
12+
image: confluentinc/cp-zookeeper:7.2.2
1313
environment:
1414
ZOOKEEPER_SERVER_ID: 1
1515
ZOOKEEPER_CLIENT_PORT: 2181
@@ -19,7 +19,7 @@ services:
1919
ZOOKEEPER_SERVERS: zookeeper-1:2888:3888;zookeeper-2:2888:3888;zookeeper-3:2888:3888
2020

2121
zookeeper-2:
22-
image: confluentinc/cp-zookeeper:6.2.0
22+
image: confluentinc/cp-zookeeper:7.2.2
2323
environment:
2424
ZOOKEEPER_SERVER_ID: 2
2525
ZOOKEEPER_CLIENT_PORT: 2181
@@ -29,7 +29,7 @@ services:
2929
ZOOKEEPER_SERVERS: zookeeper-1:2888:3888;zookeeper-2:2888:3888;zookeeper-3:2888:3888
3030

3131
zookeeper-3:
32-
image: confluentinc/cp-zookeeper:6.2.0
32+
image: confluentinc/cp-zookeeper:7.2.2
3333
environment:
3434
ZOOKEEPER_SERVER_ID: 3
3535
ZOOKEEPER_CLIENT_PORT: 2181
@@ -42,7 +42,7 @@ services:
4242
# Kafka Cluster #
4343
#---------------------------------------------------------------------------#
4444
kafka-1:
45-
image: confluentinc/cp-kafka:6.2.0
45+
image: confluentinc/cp-kafka:7.2.2
4646
depends_on:
4747
- zookeeper-1
4848
- zookeeper-2
@@ -61,7 +61,7 @@ services:
6161
KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: "false"
6262

6363
kafka-2:
64-
image: confluentinc/cp-kafka:6.2.0
64+
image: confluentinc/cp-kafka:7.2.2
6565
depends_on:
6666
- zookeeper-1
6767
- zookeeper-2
@@ -80,7 +80,7 @@ services:
8080
KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: "false"
8181

8282
kafka-3:
83-
image: confluentinc/cp-kafka:6.2.0
83+
image: confluentinc/cp-kafka:7.2.2
8484
depends_on:
8585
- zookeeper-1
8686
- zookeeper-2
@@ -102,7 +102,7 @@ services:
102102
# Schema Registry #
103103
#---------------------------------------------------------------------------#
104104
schema-registry-1:
105-
image: confluentinc/cp-schema-registry:6.2.0
105+
image: confluentinc/cp-schema-registry:7.2.2
106106
depends_on:
107107
- kafka-1
108108
- kafka-2
@@ -121,7 +121,7 @@ services:
121121
# REST proxy #
122122
#---------------------------------------------------------------------------#
123123
rest-proxy-1:
124-
image: confluentinc/cp-kafka-rest:6.2.0
124+
image: confluentinc/cp-kafka-rest:7.2.2
125125
depends_on:
126126
- kafka-1
127127
- kafka-2

gradle/wrapper/gradle-wrapper.jar

1.19 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)