feat: Update: 1.class version to 3.7.0.1.0; 2.component builders add … #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven | |
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Java CI with Maven | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
MAVEN_REPO_PATH: "/home/runner/m2/repository" | |
services: | |
zoo_keeper: | |
image: bitnami/zookeeper | |
ports: | |
- 2181:2181 | |
env: | |
ALLOW_ANONYMOUS_LOGIN: yes | |
options: >- | |
--health-cmd "echo mntr | nc -w 2 -q 2 localhost 2181" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
kafka: | |
image: bitnami/kafka:3.7 | |
ports: | |
- 9092:9092 | |
options: >- | |
--health-cmd "kafka-broker-api-versions.sh --version" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
env: | |
# KRaft settings | |
KAFKA_CFG_NODE_ID: 0 | |
KAFKA_CFG_PROCESS_ROLES: controller,broker | |
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 0@kafka:9093 | |
# Listeners | |
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093 | |
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://:9092 | |
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT | |
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER | |
KAFKA_CFG_INTER_BROKER_LISTENER_NAME: PLAINTEXT | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Set up Maven environment | |
run: echo "MAVEN_REPO=${MAVEN_REPO_PATH}" >> $GITHUB_ENV | |
- name: Configure Maven | |
run: | | |
mkdir -p /home/runner/m2/repository | |
echo "<settings xmlns=\"http://maven.apache.org/SETTINGS/1.0.0\" | |
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" | |
xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd\"> | |
<localRepository>/home/runner/m2/repository</localRepository> | |
</settings>" > /home/runner/m2/settings.xml | |
- name: Test with Maven | |
run: mvn test | |
#- name: Install with Maven | |
# run: mvn clean -DskipTests source:jar install | |
- name: Deploy with Maven | |
run: mvn clean -DskipTests source:jar deploy | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive | |
#- name: Update dependency graph | |
# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 |