Skip to content

Commit

Permalink
Add actions for maven builds
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Sep 20, 2023
1 parent 8898270 commit b1c483e
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion actions/java-maven-build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

Expand Down
6 changes: 3 additions & 3 deletions actions/java-maven-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion actions/java-maven-release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions actions/java-maven-release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion actions/java-maven-setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions actions/java-maven-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion actions/java-maven-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
6 changes: 3 additions & 3 deletions actions/java-maven-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b1c483e

Please sign in to comment.