From b1c483ed5abd705cf38c4e7f227726f2c02ca958 Mon Sep 17 00:00:00 2001 From: Philipp Schirmer Date: Wed, 20 Sep 2023 10:26:07 +0200 Subject: [PATCH] Add actions for maven builds --- actions/java-maven-build/README.md | 2 +- actions/java-maven-build/action.yaml | 6 +++--- actions/java-maven-release/README.md | 2 +- actions/java-maven-release/action.yaml | 6 +++--- actions/java-maven-setup/README.md | 2 +- actions/java-maven-setup/action.yaml | 6 +++--- actions/java-maven-test/README.md | 2 +- actions/java-maven-test/action.yaml | 6 +++--- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/actions/java-maven-build/README.md b/actions/java-maven-build/README.md index e5b7ea4b2..c46dc0a6e 100644 --- a/actions/java-maven-build/README.md +++ b/actions/java-maven-build/README.md @@ -6,9 +6,9 @@ This action builds Java artifacts using Maven. | Name | Required | Default Value | Type | Description | | ----------------- | :------: | :-----------: | :----: | -------------------------------------------------------------------------------------------------- | +| maven-version | ✅ | - | string | Maven version to be installed | | java-distribution | ❌ | microsoft | string | [Java distribution](https://github.com/actions/setup-java#supported-distributions) to be installed | | java-version | ❌ | 11 | string | Java version to be installed | -| maven-version | ✅ | - | string | Maven version to be installed | | working-directory | ❌ | "." | string | Working directory of your Maven artifacts | | command | ❌ | compile | string | Command to run build with | diff --git a/actions/java-maven-build/action.yaml b/actions/java-maven-build/action.yaml index 0301b1dc5..c8b391885 100644 --- a/actions/java-maven-build/action.yaml +++ b/actions/java-maven-build/action.yaml @@ -2,6 +2,9 @@ name: "Build Java artifacts" description: "Build Java artifacts using Maven" inputs: + maven-version: + description: "Maven version to be installed." + required: true java-distribution: description: "Java distribution to be installed. (Default is microsoft)" required: false @@ -10,9 +13,6 @@ inputs: description: "Java version to be installed. (Default is 11)" required: false default: "11" - maven-version: - description: "Maven version to be installed." - required: true working-directory: description: "Working directory of your Maven artifacts. (Default is .)" required: false diff --git a/actions/java-maven-release/README.md b/actions/java-maven-release/README.md index 3b4956a85..c5db94d67 100644 --- a/actions/java-maven-release/README.md +++ b/actions/java-maven-release/README.md @@ -10,9 +10,9 @@ This action releases Java Maven artifacts by createing a tag on GitHub. | github-email | ✅ | - | string | GitHub email for requesting changes from API | | github-username | ✅ | - | string | GitHub username for requesting changes from API | | github-token | ✅ | - | string | GitHub token for requesting changes from API | +| maven-version | ✅ | - | string | Maven version to be installed | | java-distribution | ❌ | microsoft | string | [Java distribution](https://github.com/actions/setup-java#supported-distributions) to be installed | | java-version | ❌ | 11 | string | Java version to be installed | -| maven-version | ✅ | - | string | Maven version to be installed | | working-directory | ❌ | "." | string | Working directory of your Maven artifacts | ## Usage diff --git a/actions/java-maven-release/action.yaml b/actions/java-maven-release/action.yaml index 1d1377886..420434dde 100644 --- a/actions/java-maven-release/action.yaml +++ b/actions/java-maven-release/action.yaml @@ -2,6 +2,9 @@ name: "Release Java artifacts" description: "Release Java Maven artifacts on Github" inputs: + maven-version: + description: "Maven version to be installed." + required: true release-type: description: "Scope of the release" required: true @@ -22,9 +25,6 @@ inputs: description: "Java version to be installed. (Default is 11)" required: false default: "11" - maven-version: - description: "Maven version to be installed." - required: true working-directory: description: "Working directory of your Maven artifacts. (Default is .)" required: false diff --git a/actions/java-maven-setup/README.md b/actions/java-maven-setup/README.md index d8b6807c8..d288a59d1 100644 --- a/actions/java-maven-setup/README.md +++ b/actions/java-maven-setup/README.md @@ -6,9 +6,9 @@ This action sets up Java and Maven. | Name | Required | Default Value | Type | Description | | ----------------- | :------: | :-----------: | :----: | -------------------------------------------------------------------------------------------------- | +| maven-version | ✅ | - | string | Maven version to be installed | | java-distribution | ❌ | microsoft | string | [Java distribution](https://github.com/actions/setup-java#supported-distributions) to be installed | | java-version | ❌ | 11 | string | Java version to be installed | -| maven-version | ✅ | - | string | Maven version to be installed | ## Usage diff --git a/actions/java-maven-setup/action.yaml b/actions/java-maven-setup/action.yaml index cc21a37e6..d9144be95 100644 --- a/actions/java-maven-setup/action.yaml +++ b/actions/java-maven-setup/action.yaml @@ -2,6 +2,9 @@ name: "Setup Maven" description: "Setup Java and Maven" inputs: + maven-version: + description: "Maven version to be installed." + required: true java-distribution: description: "Java distribution to be installed. (Default is microsoft)" required: false @@ -10,9 +13,6 @@ inputs: description: "Java version to be installed. (Default is 11)" required: false default: "11" - maven-version: - description: "Maven version to be installed." - required: true runs: using: "composite" steps: diff --git a/actions/java-maven-test/README.md b/actions/java-maven-test/README.md index 0a82b34c7..9d2bcd431 100644 --- a/actions/java-maven-test/README.md +++ b/actions/java-maven-test/README.md @@ -6,9 +6,9 @@ This action runs Junit tests and publishes the test results. | Name | Required | Default Value | Type | Description | | ------------------ | :------: | :-----------: | :-----: | -------------------------------------------------------------------------------------------------- | +| maven-version | ✅ | - | string | Maven version to be installed | | java-distribution | ❌ | microsoft | string | [Java distribution](https://github.com/actions/setup-java#supported-distributions) to be installed | | java-version | ❌ | 11 | string | Java version to be installed | -| maven-version | ✅ | - | string | Maven version to be installed | | working-directory | ❌ | "." | string | Working directory of your Maven artifacts | | download-lfs-files | ❌ | false | boolean | Whether the Git checkout action should resolve LFS files or not | | command | ❌ | test | string | Command to run tests with | diff --git a/actions/java-maven-test/action.yaml b/actions/java-maven-test/action.yaml index 041aecb53..4fa75f911 100644 --- a/actions/java-maven-test/action.yaml +++ b/actions/java-maven-test/action.yaml @@ -2,6 +2,9 @@ name: "Test Java artifacts" description: "Run Junit test and publish test results" inputs: + maven-version: + description: "Maven version to be installed." + required: true java-distribution: description: "Java distribution to be installed. (Default is microsoft)" required: false @@ -10,9 +13,6 @@ inputs: description: "Java version to be installed. (Default is 11)" required: false default: "11" - maven-version: - description: "Maven version to be installed." - required: true working-directory: description: "Working directory of your Maven artifacts. (Default is .)" required: false