feat(java-build): add reusable workflow #47
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new reusable GitHub Actions workflow for building and testing Java applications, along with updates to the documentation to reflect this addition. The workflow supports both Gradle and Maven, includes customizable inputs, and provides functionality for dependency caching and artifact uploading.
New Java Build Workflow:
.github/workflows/java-build.yml) for building and testing Java applications. It supports Gradle and Maven, allows customization through inputs (e.g., Java version, build tool, and artifact settings), and automatically determines artifact paths if not explicitly provided.Documentation Updates:
README.mdto include a new section describing theJava Build and Testworkflow, highlighting its features and use cases.README.mdfile underjava-build/to document the inputs, default values, and example usage of the new Java build workflow. Examples include configurations for Gradle, Maven, custom Java versions, and artifact settings.