Skip to content

Commit 7e90485

Browse files
sebhossSebastian Hoß
andauthored
update project configuration (#34)
* update project configuration Co-authored-by: Sebastian Hoß <seb@hoß.de>
1 parent 951abcb commit 7e90485

File tree

7 files changed

+59
-17
lines changed

7 files changed

+59
-17
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# SPDX-FileCopyrightText: The Storage-Units Authors
2+
# SPDX-License-Identifier: 0BSD
3+
4+
name: Use a managed Java version
5+
description: DO NOT EDIT THIS FILE DIRECTLY
6+
runs:
7+
using: composite
8+
steps:
9+
- name: Set up Java
10+
uses: actions/setup-java@v3
11+
with:
12+
java-version: 17
13+
java-package: jdk
14+
architecture: x64
15+
distribution: temurin
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SPDX-FileCopyrightText: The Storage-Units Authors
2+
# SPDX-License-Identifier: 0BSD
3+
4+
name: Use a managed Java version with Maven credentials
5+
description: DO NOT EDIT THIS FILE DIRECTLY
6+
runs:
7+
using: composite
8+
steps:
9+
- name: Set up Java
10+
uses: actions/setup-java@v3
11+
with:
12+
java-version: 17
13+
java-package: jdk
14+
architecture: x64
15+
distribution: temurin
16+
server-id: ossrh
17+
server-username: MAVEN_CENTRAL_USERNAME
18+
server-password: MAVEN_CENTRAL_TOKEN

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-FileCopyrightText: The Storage-Units Authors
2+
# SPDX-License-Identifier: 0BSD
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: github-actions
7+
directory: /
8+
schedule:
9+
interval: daily
10+
assignees:
11+
- sebhoss

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33

44
name: CodeQL
55
on:
6-
push:
7-
branches: [ main ]
8-
pull_request:
9-
branches: [ main ]
106
schedule:
11-
- cron: 42 3 * * 5
7+
- cron: 42 3 * * TUE
128
jobs:
139
analyze:
1410
name: Analyze

.github/workflows/reuse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
pull_request:
99
branches: [ main ]
1010
jobs:
11-
check:
11+
reuse:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3

.github/workflows/update-parent.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,20 @@ on:
66
schedule:
77
- cron: 0 1 5 * *
88
jobs:
9-
build:
9+
parent:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- name: Set up Java
14-
uses: actions/setup-java@v3
15-
with:
16-
java-version: 17
17-
java-package: jdk
18-
architecture: x64
19-
distribution: temurin
12+
- name: Clone Git Repository
13+
uses: actions/checkout@v3
14+
- uses: ./.github/actions/managed-java
2015
- uses: actions/cache@v3
2116
with:
2217
path: ~/.m2/repository
2318
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
2419
restore-keys: |
2520
${{ runner.os }}-maven-
2621
- name: Update Parent
27-
run: mvn --batch-mode versions:update-parent --define generateBackupPoms=false
22+
run: mvn --batch-mode --define generateBackupPoms=false versions:update-parent
2823
- id: cpr
2924
name: Create Pull Request
3025
uses: peter-evans/create-pull-request@v4
@@ -35,7 +30,7 @@ jobs:
3530
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
3631
title: Update parent to latest version
3732
body: |
38-
`mvn --batch-mode versions:update-parent -DgenerateBackupPoms=false`
33+
`mvn --batch-mode --define generateBackupPoms=false versions:update-parent`
3934
assignees: |
4035
sebhoss
4136
draft: false

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,3 +491,10 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
491491
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
492492
PERFORMANCE OF THIS SOFTWARE.
493493
```
494+
495+
## Mirrors
496+
497+
- https://github.com/metio/storage-units.java
498+
- https://gitlab.com/metio.wtf/storage-units.java
499+
- https://bitbucket.org/metio-wtf/storage-units.java
500+
- https://codeberg.org/metio.wtf/storage-units.java

0 commit comments

Comments
 (0)