diff --git a/.github/actions/setup-java/action.yml b/.github/actions/setup-java/action.yml new file mode 100644 index 00000000..0dc9944a --- /dev/null +++ b/.github/actions/setup-java/action.yml @@ -0,0 +1,22 @@ +name: "Set up Java" +description: "Set up the desired version of Java" + +inputs: + distribution: + description: "The Java distribution to use" + required: false + default: "temurin" + java-version: + description: "The java version to install" + required: false + default: 17 + +runs: + using: "composite" + steps: + - name: Set up Java ${{ inputs.java-version }} + uses: actions/setup-java@v4 + with: + distribution: ${{ inputs.distribution }} + java-version: ${{ inputs.java-version }} + diff --git a/.github/workflows/apache-pulsar-workflow.yml b/.github/workflows/apache-pulsar-workflow.yml index 17e3ab5f..9d0b8587 100644 --- a/.github/workflows/apache-pulsar-workflow.yml +++ b/.github/workflows/apache-pulsar-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/auditlog-workflow.yml b/.github/workflows/auditlog-workflow.yml index 3617948e..0be249eb 100644 --- a/.github/workflows/auditlog-workflow.yml +++ b/.github/workflows/auditlog-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/cache-invalidation-workflow.yml b/.github/workflows/cache-invalidation-workflow.yml index 92f093c4..806d7308 100644 --- a/.github/workflows/cache-invalidation-workflow.yml +++ b/.github/workflows/cache-invalidation-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/camel-component.yml b/.github/workflows/camel-component.yml index 05c7e82f..8625c5a6 100644 --- a/.github/workflows/camel-component.yml +++ b/.github/workflows/camel-component.yml @@ -17,11 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Java 17 - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: 17 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/camel-kafka-connect.yml b/.github/workflows/camel-kafka-connect.yml index ded1c160..b88ac663 100644 --- a/.github/workflows/camel-kafka-connect.yml +++ b/.github/workflows/camel-kafka-connect.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/cloudevents.yml b/.github/workflows/cloudevents.yml index 8a5cd9eb..a9942c5d 100644 --- a/.github/workflows/cloudevents.yml +++ b/.github/workflows/cloudevents.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/debezium-server-name-mapper-workflow.yml b/.github/workflows/debezium-server-name-mapper-workflow.yml index 5d02f8f3..fd00f9cc 100644 --- a/.github/workflows/debezium-server-name-mapper-workflow.yml +++ b/.github/workflows/debezium-server-name-mapper-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/distributed-caching-workflow.yml b/.github/workflows/distributed-caching-workflow.yml index 0d343ef9..b4cd8e02 100644 --- a/.github/workflows/distributed-caching-workflow.yml +++ b/.github/workflows/distributed-caching-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/end-to-end-demo-workflow.yml b/.github/workflows/end-to-end-demo-workflow.yml index 3c5b7a93..ae309a75 100644 --- a/.github/workflows/end-to-end-demo-workflow.yml +++ b/.github/workflows/end-to-end-demo-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/graphql-workflow.yml b/.github/workflows/graphql-workflow.yml index 49a5ab53..39ad0901 100644 --- a/.github/workflows/graphql-workflow.yml +++ b/.github/workflows/graphql-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/http-signaling-notifications-workflow.yml b/.github/workflows/http-signaling-notifications-workflow.yml index bb30fb4c..61864000 100644 --- a/.github/workflows/http-signaling-notifications-workflow.yml +++ b/.github/workflows/http-signaling-notifications-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/jpa-aggregations-workflow.yml b/.github/workflows/jpa-aggregations-workflow.yml index 6432dd7f..138ad3b1 100644 --- a/.github/workflows/jpa-aggregations-workflow.yml +++ b/.github/workflows/jpa-aggregations-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/kinesis-workflow.yml b/.github/workflows/kinesis-workflow.yml index 3dad56c0..2cb93109 100644 --- a/.github/workflows/kinesis-workflow.yml +++ b/.github/workflows/kinesis-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/kstreams-fk-join-workflow.yml b/.github/workflows/kstreams-fk-join-workflow.yml index d728ee66..b828c3c7 100644 --- a/.github/workflows/kstreams-fk-join-workflow.yml +++ b/.github/workflows/kstreams-fk-join-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/kstreams-live-update-workflow.yml b/.github/workflows/kstreams-live-update-workflow.yml index 1fdbd65c..acc28c28 100644 --- a/.github/workflows/kstreams-live-update-workflow.yml +++ b/.github/workflows/kstreams-live-update-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/kstreams-workflow.yml b/.github/workflows/kstreams-workflow.yml index 6af7072e..f372c7b6 100644 --- a/.github/workflows/kstreams-workflow.yml +++ b/.github/workflows/kstreams-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/machine-learning-workflow.yml b/.github/workflows/machine-learning-workflow.yml index d3ade8fb..79a07a10 100644 --- a/.github/workflows/machine-learning-workflow.yml +++ b/.github/workflows/machine-learning-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/offset-editor-workflow.yml b/.github/workflows/offset-editor-workflow.yml index e15e2791..5d50a577 100644 --- a/.github/workflows/offset-editor-workflow.yml +++ b/.github/workflows/offset-editor-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/outbox-workflow.yml b/.github/workflows/outbox-workflow.yml index f18f0cde..192555b5 100644 --- a/.github/workflows/outbox-workflow.yml +++ b/.github/workflows/outbox-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/postgres-toast-workflow.yml b/.github/workflows/postgres-toast-workflow.yml index 68dcf3ec..205c52f8 100644 --- a/.github/workflows/postgres-toast-workflow.yml +++ b/.github/workflows/postgres-toast-workflow.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/saga-workflow.yml b/.github/workflows/saga-workflow.yml index c79f4a65..cacd0310 100644 --- a/.github/workflows/saga-workflow.yml +++ b/.github/workflows/saga-workflow.yml @@ -16,6 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/testcontainers-workflow.yml b/.github/workflows/testcontainers-workflow.yml index aa3b3e61..bc7ee7f8 100644 --- a/.github/workflows/testcontainers-workflow.yml +++ b/.github/workflows/testcontainers-workflow.yml @@ -17,11 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Java 17 - uses: actions/setup-java@v2 - with: - distribution: 'temurin' - java-version: 17 + - uses: ./.github/actions/setup-java - name: Cache local Maven repository uses: actions/cache@v2 with: