Skip to content

Commit 36f5e97

Browse files
authored
Merge pull request #1 from aboutbits/feature/initV1
Feature/init v1
2 parents 95ea655 + 779d961 commit 36f5e97

4 files changed

Lines changed: 41 additions & 17 deletions

File tree

license.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright About Bits GmbH
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

readme.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,22 @@
22

33
A collection of GitHub actions for Java projects.
44

5-
## Example Playbook
5+
## Setup Java and Update Dependencies
6+
7+
This action will set up the Java SDK and initialize the cache for Maven dependencies. It will then install or update all dependencies.
8+
9+
### Example
610

711
```yaml
8-
- name: Build code
9-
uses: aboutbits/github-actions-java/xxx@v1
10-
with:
11-
xxx-version: ${{ env.NODE_VERSION }}
12+
- name: Checkout source code
13+
uses: actions/checkout@v3
14+
15+
- uses: aboutbits/github-actions-java/setup-and-update-dependencies@v1
1216
```
1317
1418
## Versioning
1519
16-
In order to have a verioning in place and working, create leightweight tags that point to the appropriate minor release versions.
20+
In order to have a versioning in place and working, create lightweight tags that point to the appropriate minor release versions.
1721
1822
Creating a new minor release:
1923
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Setup Java and update dependencies'
2+
description: 'Setup Java SDK, fetch and cache packages dependencies.'
3+
4+
inputs:
5+
java-version:
6+
default: '17'
7+
description: 'Java Version'
8+
distribution:
9+
default: 'corretto'
10+
description: 'Java Distribution'
11+
12+
runs:
13+
using: "composite"
14+
steps:
15+
- name: Set up JDK
16+
uses: actions/setup-java@v3
17+
with:
18+
java-version: ${{ inputs.java-version }}
19+
distribution: ${{ inputs.distribution }}
20+
cache: 'maven'
21+
22+
- name: Update maven dependencies
23+
run: ./mvnw --batch-mode --fail-fast dependency:resolve
24+
shell: bash

xxx/action.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)