Skip to content

Commit c52829a

Browse files
committed
build: Moved to gradle
1 parent 9293082 commit c52829a

File tree

72 files changed

+1343
-1352
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+1343
-1352
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ on:
66
jobs:
77
build:
88
name: 'Build'
9-
uses: redis-field-engineering/redis-github-workflows/.github/workflows/build-maven.yml@main
9+
uses: redis-field-engineering/redis-github-workflows/.github/workflows/build.yml@main

.github/workflows/early-access.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: EarlyAccess
1+
name: 'Early Access'
22

33
on:
44
push:
@@ -8,29 +8,16 @@ jobs:
88
earlyaccess:
99
name: 'Early Access'
1010
if: github.repository == 'redis-field-engineering/redis-kafka-connect' && startsWith(github.event.head_commit.message, 'Releasing version') != true
11-
uses: redis-field-engineering/redis-github-workflows/.github/workflows/early-access-maven.yml@main
11+
uses: redis-field-engineering/redis-github-workflows/.github/workflows/early-access.yml@main
1212
with:
1313
jreleaser-arguments: full-release
14-
java-version: '17'
1514
secrets:
1615
github-token: ${{ secrets.GIT_ACCESS_TOKEN }}
1716
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
1817
gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }}
1918
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
2019
sonatype-username: ${{ secrets.SONATYPE_USERNAME }}
21-
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}
20+
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}
2221
docker-username: ${{ secrets.DOCKER_USERNAME }}
2322
docker-password: ${{ secrets.DOCKER_PASSWORD }}
24-
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
25-
26-
docker:
27-
name: 'Docker'
28-
needs: [earlyaccess]
29-
if: startsWith(github.event.head_commit.message, 'Releasing version') != true
30-
uses: redis-field-engineering/redis-github-workflows/.github/workflows/docker.yml@main
31-
with:
32-
tags: fieldengineering/redis-kafka-connect:early-access
33-
secrets:
34-
github-token: ${{ secrets.GIT_ACCESS_TOKEN }}
35-
docker-username: ${{ secrets.DOCKER_USERNAME }}
36-
docker-password: ${{ secrets.DOCKER_PASSWORD }}
23+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ on:
1414
jobs:
1515
release:
1616
name: Release
17-
uses: redis-field-engineering/redis-github-workflows/.github/workflows/release-maven.yml@main
17+
uses: redis-field-engineering/redis-github-workflows/.github/workflows/release.yml@main
1818
with:
1919
branch: ${{ github.event.inputs.branch }}
2020
version: ${{ github.event.inputs.version }}
21-
publish: true
21+
tasks: build aggregateTestReports publish gitPublishPush
2222
secrets:
2323
github-token: ${{ secrets.GIT_ACCESS_TOKEN }}
2424
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
@@ -29,14 +29,12 @@ jobs:
2929
sonatype-username: ${{ secrets.SONATYPE_USERNAME }}
3030
sonatype-password: ${{ secrets.SONATYPE_PASSWORD }}
3131
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
32-
32+
3333
docker:
3434
name: 'Docker'
3535
needs: [release]
3636
uses: redis-field-engineering/redis-github-workflows/.github/workflows/docker.yml@main
3737
with:
3838
tags: fieldengineering/redis-kafka-connect:latest,fieldengineering/redis-kafka-connect:${{ github.event.inputs.version }}
3939
secrets:
40-
github-token: ${{ secrets.GIT_ACCESS_TOKEN }}
41-
docker-username: ${{ secrets.DOCKER_USERNAME }}
42-
docker-password: ${{ secrets.DOCKER_PASSWORD }}
40+
github-token: ${{ secrets.GIT_ACCESS_TOKEN }}

.gitignore

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ hs_err_*.log
1212

1313
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
1414
!/.mvn/wrapper/maven-wrapper.jar
15-
/.classpath
16-
/.project
17-
/.settings/
18-
/.factorypath
15+
.classpath
16+
.project
17+
.settings
18+
.factorypath
1919
/.idea/
20-
/build/
21-
/.gradle/
22-
/bin/
23-
/dump.rdb
20+
build
21+
.gradle
22+
bin
23+
dump.rdb
2424
.DS_Store
2525
/out/
2626
*.dylib

.mvn/wrapper/MavenWrapperDownloader.java

Lines changed: 0 additions & 117 deletions
This file was deleted.

.mvn/wrapper/maven-wrapper.jar

-49.5 KB
Binary file not shown.

.mvn/wrapper/maven-wrapper.properties

Lines changed: 0 additions & 2 deletions
This file was deleted.

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
ARG CP_VERSION=7.2.0
2-
ARG BASE_PREFIX=confluentinc
2+
ARG BASE_PREFIX=confluentinc
33
ARG CONNECT_IMAGE=cp-server-connect
44

5-
FROM docker.io/library/maven:3.8.6-openjdk-18 AS builder
5+
FROM openjdk:18-jdk-slim AS build
66
WORKDIR /root/redis-kafka-connect
77
COPY . /root/redis-kafka-connect
8-
ENV MAVEN_FAST_INSTALL="-DskipTests -Dair.check.skip-all=true -Dmaven.javadoc.skip=true -B -q -T C1"
9-
RUN mvn package $MAVEN_FAST_INSTALL
8+
RUN ./gradlew createConfluentArchive
109

1110
FROM $BASE_PREFIX/$CONNECT_IMAGE:$CP_VERSION
1211

13-
COPY --from=builder /root/redis-kafka-connect/target/components/packages/redis-redis-enterprise-kafka-6.*.zip /tmp/redis-redis-enterprise-kafka-6.zip
12+
COPY --from=build /root/redis-kafka-connect/core/redis-kafka-connect/build/confluent/redis-redis-kafka-connect-*.zip /tmp/redis-redis-kafka-connect.zip
1413

1514
ENV CONNECT_PLUGIN_PATH="/usr/share/java,/usr/share/confluent-hub-components"
1615

1716
RUN confluent-hub install --no-prompt confluentinc/kafka-connect-datagen:0.5.3
1817

19-
RUN confluent-hub install --no-prompt /tmp/redis-redis-enterprise-kafka-6.zip
18+
RUN confluent-hub install --no-prompt /tmp/redis-redis-kafka-connect.zip

LICENSE

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Apache License
23
Version 2.0, January 2004
34
http://www.apache.org/licenses/
@@ -174,28 +175,3 @@
174175
of your accepting any such warranty or additional liability.
175176

176177
END OF TERMS AND CONDITIONS
177-
178-
APPENDIX: How to apply the Apache License to your work.
179-
180-
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "[]"
182-
replaced with your own identifying information. (Don't include
183-
the brackets!) The text should be enclosed in the appropriate
184-
comment syntax for the file format. We also recommend that a
185-
file or class name and description of purpose be included on the
186-
same "printed page" as the copyright notice for easier
187-
identification within third-party archives.
188-
189-
Copyright [yyyy] [name of copyright owner]
190-
191-
Licensed under the Apache License, Version 2.0 (the "License");
192-
you may not use this file except in compliance with the License.
193-
You may obtain a copy of the License at
194-
195-
http://www.apache.org/licenses/LICENSE-2.0
196-
197-
Unless required by applicable law or agreed to in writing, software
198-
distributed under the License is distributed on an "AS IS" BASIS,
199-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200-
See the License for the specific language governing permissions and
201-
limitations under the License.

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.7.5-SNAPSHOT

0 commit comments

Comments
 (0)