diff --git a/.github/workflows/db2.yml b/.github/workflows/db2.yml index 8276bae9d54..9d0b522f9b6 100644 --- a/.github/workflows/db2.yml +++ b/.github/workflows/db2.yml @@ -6,6 +6,10 @@ on: - master - 'flowable-release-*' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test_db2: name: DB2 ${{ matrix.db2 }} @@ -33,12 +37,14 @@ jobs: --health-timeout 40s --health-retries 10 steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: temurin + java-version: 8 + cache: maven - name: Test # use db2 for the host here because we have specified a container for the job. # If we were running the job on the VM this would be localhost @@ -79,12 +85,14 @@ jobs: --health-timeout 40s --health-retries 10 steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: temurin + java-version: 8 + cache: maven - name: Test # use db2 for the host here because we have specified a container for the job. # If we were running the job on the VM this would be localhost @@ -126,12 +134,14 @@ jobs: --health-timeout 40s --health-retries 10 steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: temurin + java-version: 8 + cache: maven - name: Test # use db2 for the host here because we have specified a container for the job. # If we were running the job on the VM this would be localhost diff --git a/.github/workflows/flowable5.yml b/.github/workflows/flowable5.yml index 81898e54724..b746a5091b1 100644 --- a/.github/workflows/flowable5.yml +++ b/.github/workflows/flowable5.yml @@ -6,6 +6,10 @@ on: - master - 'flowable-release-*' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test_jdk: name: Flowable 5 Tests @@ -18,9 +22,11 @@ jobs: -B --no-transfer-progress steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: temurin + java-version: 8 + cache: maven - name: Build and Test run: cd scripts && ./run-flowable5-tests.sh diff --git a/.github/workflows/java-ea.yml b/.github/workflows/java-ea.yml index e5297718432..0d23bfbe9de 100644 --- a/.github/workflows/java-ea.yml +++ b/.github/workflows/java-ea.yml @@ -6,12 +6,16 @@ on: - master - 'flowable-release-*' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test_jdk14: name: Linux (OpenJDK EA) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - name: Install diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3e95de1db5b..a5227d66e97 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,15 @@ name: Flowable Main Build -on: [push, pull_request] +on: + push: + branches: + - master + - 'flowable-release-*' + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: test_jdk: @@ -9,14 +18,16 @@ jobs: strategy: fail-fast: false matrix: - java: [1.8, 11, 13] + java: [8, 11, 13] steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: + distribution: zulu java-version: ${{ matrix.java }} + cache: maven - name: Install # Need to do install first in order for the OSGi tests to work run: ./mvnw install -V -B --no-transfer-progress -DskipTests=true -Dmaven.javadoc.skip=true -B -V diff --git a/.github/workflows/mysql.yml b/.github/workflows/mysql.yml index 85b05403efc..9a108c059b4 100644 --- a/.github/workflows/mysql.yml +++ b/.github/workflows/mysql.yml @@ -7,6 +7,10 @@ on: - 'flowable-release-*' # We explicitly don't use a container for running the job since there is some connectivity issues to MySQL if that is done +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test_mysql: name: MySQL ${{ matrix.mysql }} @@ -30,12 +34,14 @@ jobs: # needed because the mysql container does not provide a health check options: --health-cmd="mysqladmin -uflowable -pflowable status" --health-interval 10s --health-timeout 5s --health-retries 5 --tmpfs /var/lib/mysql:rw steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: temurin + java-version: 8 + cache: maven - name: Test # use localhost for the host here because we have specified a vm for the job. # '>-' is a special YAML syntax and means that new lines would be replaced with spaces @@ -71,12 +77,14 @@ jobs: # needed because the mysql container does not provide a health check options: --health-cmd="mysqladmin -uflowable -pflowable status" --health-interval 10s --health-timeout 5s --health-retries 5 --tmpfs /var/lib/mysql:rw steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: temurin + java-version: 8 + cache: maven - name: Test # use mysql for the host here because we have specified a container for the job. # '>-' is a special YAML syntax and means that new lines would be replaced with spaces @@ -113,12 +121,14 @@ jobs: # needed because the mysql container does not provide a health check options: --health-cmd="mysqladmin -uflowable -pflowable status" --health-interval 10s --health-timeout 5s --health-retries 5 --tmpfs /var/lib/mysql:rw steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: temurin + java-version: 8 + cache: maven - name: Test # use localhost for the host here because we have specified a vm for the job. # '>-' is a special YAML syntax and means that new lines would be replaced with spaces diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml index b9d875ea91c..14badc65c51 100644 --- a/.github/workflows/postgres.yml +++ b/.github/workflows/postgres.yml @@ -6,6 +6,10 @@ on: - master - 'flowable-release-*' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test_postgres: name: Postgres ${{ matrix.postgres }} @@ -25,12 +29,14 @@ jobs: # needed because the postgres container does not provide a health check options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 --tmpfs /var/lib/postgresql/data:rw steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: temurin + java-version: 8 + cache: maven - name: Test # use postgres for the host here because we have specified a container for the job. # If we were running the job on the VM this would be localhost @@ -63,12 +69,14 @@ jobs: # needed because the postgres container does not provide a health check options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 --tmpfs /var/lib/postgresql/data:rw steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: temurin + java-version: 8 + cache: maven - name: Test # use postgres for the host here because we have specified a container for the job. # If we were running the job on the VM this would be localhost @@ -102,12 +110,14 @@ jobs: # needed because the postgres container does not provide a health check options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 --tmpfs /var/lib/postgresql/data:rw steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: temurin + java-version: 8 + cache: maven - name: Test # use postgres for the host here because we have specified a container for the job. # If we were running the job on the VM this would be localhost diff --git a/.github/workflows/sbom.yml b/.github/workflows/sbom.yml index 77fce86a102..66e195e0181 100644 --- a/.github/workflows/sbom.yml +++ b/.github/workflows/sbom.yml @@ -7,17 +7,19 @@ on: jobs: build_java_and_docker: - name: Linux (JDK 13) + name: Linux (JDK 21) runs-on: ubuntu-latest env: IMAGE_NAME: adito/flowable steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: - java-version: 13 + distribution: temurin + java-version: 21 + cache: maven - name: Install run: ./mvnw clean install -V -B --no-transfer-progress -DskipTests=true -Dmaven.javadoc.skip=true -B -V -Pdistro - name: Build an image from Dockerfile @@ -66,12 +68,12 @@ jobs: run: cosign attach sbom --sbom target/combined-sbom-1.6.json --type cyclonedx $IMAGE_NAME:${{ github.ref_name }} - name: Upload SBOM to Dependency-Track - uses: DependencyTrack/gh-upload-sbom@48feab3080ff9e8f51f4d21861d9fc914eb744f5 + uses: DependencyTrack/gh-upload-sbom@v4.1.0 with: - serverHostname: ${{ secrets.DEPENDENCYTRACK_HOSTNAME }} - apiKey: ${{ secrets.DEPENDENCYTRACK_APIKEY }} - projectName: ${{ github.event.repository.name }} - projectVersion: ${{ github.ref_name }} - projectTags: 'flowable-modeler,${{ github.event.repository.name }}' - bomFilename: "target/combined-sbom-1.6.json" - autoCreate: true + serverhostname: ${{ secrets.DEPENDENCYTRACK_HOSTNAME }} + apikey: ${{ secrets.DEPENDENCYTRACK_APIKEY }} + projectname: ${{ github.event.repository.name }} + projectversion: ${{ github.ref_name }} + projecttags: 'flowable-modeler,${{ github.event.repository.name }}' + bomfilename: "target/combined-sbom-1.6.json" + autocreate: true diff --git a/.github/workflows/sql-server.yml b/.github/workflows/sql-server.yml index db6461b9d2b..65767c02ed1 100644 --- a/.github/workflows/sql-server.yml +++ b/.github/workflows/sql-server.yml @@ -6,6 +6,10 @@ on: - master - 'flowable-release-*' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test_mssql: name: SQL Server ${{ matrix.mssql }} @@ -30,7 +34,7 @@ jobs: --health-timeout 5s --health-retries 10 steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - name: Prepare Database @@ -40,9 +44,11 @@ jobs: # If we were running the job on a container this would be mssql MSSQL_HOST: localhost MSSQL_PORT: ${{ job.services.mssql.ports[1433] }} # get randomly assigned published port - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: temurin + java-version: 8 + cache: maven - name: Test # use localhost for the host here because we have specified a vm for the job. # If we were running the job on a container this would be mssql @@ -80,7 +86,7 @@ jobs: --health-timeout 5s --health-retries 10 steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - name: Prepare Database @@ -90,9 +96,11 @@ jobs: # If we were running the job on a container this would be mssql MSSQL_HOST: localhost MSSQL_PORT: ${{ job.services.mssql.ports[1433] }} # get randomly assigned published port - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: temurin + java-version: 8 + cache: maven - name: Test # use localhost for the host here because we have specified a vm for the job. # If we were running the job on a container this would be mssql @@ -131,7 +139,7 @@ jobs: --health-timeout 5s --health-retries 10 steps: - - uses: actions/checkout@v2-beta + - uses: actions/checkout@v4 with: fetch-depth: 10 - name: Prepare Database @@ -141,9 +149,11 @@ jobs: # If we were running the job on a container this would be mssql MSSQL_HOST: localhost MSSQL_PORT: ${{ job.services.mssql.ports[1433] }} # get randomly assigned published port - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: - java-version: 1.8 + distribution: temurin + java-version: 8 + cache: maven - name: Test # use localhost for the host here because we have specified a vm for the job. # If we were running the job on a container this would be mssql diff --git a/docker/all-in-one/Dockerfile b/docker/all-in-one/Dockerfile index 1742de8ab6d..9bcfbfa0c60 100644 --- a/docker/all-in-one/Dockerfile +++ b/docker/all-in-one/Dockerfile @@ -1,12 +1,18 @@ -FROM eclipse-temurin:21.0.6_7-jdk-alpine-3.21 +FROM eclipse-temurin:21.0.13.1_2-jre-alpine-3.23 ADD wait-for-something.sh . RUN apk update && apk add fontconfig ghostscript-fonts && rm -rf /var/cache/apk/* RUN addgroup tomcat && adduser -s /bin/false -G tomcat -h /opt/tomcat -D tomcat -RUN wget http://archive.apache.org/dist/tomcat/tomcat-9/v9.0.14/bin/apache-tomcat-9.0.14.tar.gz -O /tmp/tomcat.tar.gz -RUN cd /tmp && tar xvfz tomcat.tar.gz && cp -Rv /tmp/apache-tomcat-9.0.14/* /opt/tomcat/ && rm -Rf /tmp/apache-tomcat-9.0.14 +# Tomcat 9.0.x is the last line supporting javax.servlet (required by Flowable 6.5 / Spring Boot 2.2). +# On version bump, update TOMCAT_SHA512 from the .sha512 file next to the tarball. +ARG TOMCAT_VERSION=9.0.124 +ARG TOMCAT_SHA512=925e4fefe25b2ecccd032acd0b4cb1b506455037ed0f8b0e51824bed839c5e92bf5e58982b990d2fdcbc790bcda1a533db7faffb325f8a7baee939fc8ae871c1 +RUN wget -q https://archive.apache.org/dist/tomcat/tomcat-9/v${TOMCAT_VERSION}/bin/apache-tomcat-${TOMCAT_VERSION}.tar.gz -O /tmp/tomcat.tar.gz \ + && echo "${TOMCAT_SHA512} /tmp/tomcat.tar.gz" | sha512sum -c - \ + && tar xzf /tmp/tomcat.tar.gz -C /opt/tomcat --strip-components=1 \ + && rm -rf /tmp/tomcat.tar.gz /opt/tomcat/webapps/* COPY context.xml /opt/tomcat/conf/context.xml diff --git a/modules/flowable-app-engine/pom.xml b/modules/flowable-app-engine/pom.xml index 7d5f1fe8981..6383f6a75c2 100644 --- a/modules/flowable-app-engine/pom.xml +++ b/modules/flowable-app-engine/pom.xml @@ -471,7 +471,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test @@ -488,7 +488,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test @@ -505,7 +505,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test diff --git a/modules/flowable-cmmn-engine/pom.xml b/modules/flowable-cmmn-engine/pom.xml index 0d9c60a9dc1..ac096aa9588 100644 --- a/modules/flowable-cmmn-engine/pom.xml +++ b/modules/flowable-cmmn-engine/pom.xml @@ -523,7 +523,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test @@ -540,7 +540,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test @@ -557,7 +557,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test diff --git a/modules/flowable-content-engine/pom.xml b/modules/flowable-content-engine/pom.xml index 20cc0b07856..d7bc7688258 100755 --- a/modules/flowable-content-engine/pom.xml +++ b/modules/flowable-content-engine/pom.xml @@ -382,7 +382,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test @@ -399,7 +399,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test diff --git a/modules/flowable-dmn-engine/pom.xml b/modules/flowable-dmn-engine/pom.xml index 971519ad169..3524eefad99 100755 --- a/modules/flowable-dmn-engine/pom.xml +++ b/modules/flowable-dmn-engine/pom.xml @@ -424,7 +424,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test @@ -441,7 +441,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test diff --git a/modules/flowable-engine/pom.xml b/modules/flowable-engine/pom.xml index 6e6ba47a44b..fa0c9c7ec2e 100755 --- a/modules/flowable-engine/pom.xml +++ b/modules/flowable-engine/pom.xml @@ -1411,7 +1411,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test @@ -1428,7 +1428,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test @@ -1445,7 +1445,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test diff --git a/modules/flowable-event-registry/pom.xml b/modules/flowable-event-registry/pom.xml index 70baf0b7d5a..cccfcc9224e 100644 --- a/modules/flowable-event-registry/pom.xml +++ b/modules/flowable-event-registry/pom.xml @@ -378,7 +378,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test @@ -395,7 +395,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test diff --git a/modules/flowable-form-engine/pom.xml b/modules/flowable-form-engine/pom.xml index 492bc32c862..4f20fb8843f 100755 --- a/modules/flowable-form-engine/pom.xml +++ b/modules/flowable-form-engine/pom.xml @@ -433,7 +433,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test @@ -450,7 +450,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test diff --git a/modules/flowable-idm-engine/pom.xml b/modules/flowable-idm-engine/pom.xml index 056c98820f3..84ea2d9f25e 100755 --- a/modules/flowable-idm-engine/pom.xml +++ b/modules/flowable-idm-engine/pom.xml @@ -435,7 +435,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test @@ -452,7 +452,7 @@ - com.oracle.jdbc + com.oracle.database.jdbc ${oracle.jdbc.artifact} test diff --git a/modules/flowable-ui-admin/flowable-ui-admin-app/pom.xml b/modules/flowable-ui-admin/flowable-ui-admin-app/pom.xml index c5379d426c6..7c6f5aebea1 100644 --- a/modules/flowable-ui-admin/flowable-ui-admin-app/pom.xml +++ b/modules/flowable-ui-admin/flowable-ui-admin-app/pom.xml @@ -330,12 +330,12 @@