Skip to content

Commit 34564a8

Browse files
committed
Preparing release to maven central
1 parent 3dccf04 commit 34564a8

10 files changed

Lines changed: 798 additions & 1115 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI/CD Wicket Utils
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
release:
9+
types: [ published ]
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
name: Build and Release
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Set up | Checkout
19+
uses: actions/checkout@v5
20+
21+
- name: Set up Maven Central Repository
22+
uses: actions/setup-java@v5
23+
with:
24+
distribution: temurin
25+
java-version: 21
26+
server-id: central
27+
server-username: MAVEN_CENTRAL_USERNAME
28+
server-password: MAVEN_CENTRAL_PASSWORD
29+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
30+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
31+
32+
- name: Set up Maven cache
33+
uses: actions/cache@v3
34+
with:
35+
path: ~/.m2/repository
36+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
37+
restore-keys: |
38+
${{ runner.os }}-maven-
39+
40+
- name: Build
41+
run: mvn -B -ntp clean install
42+
43+
- name: Release
44+
if: github.event_name == 'release' && github.event.action == 'published'
45+
run: |
46+
# Assign the tag name to a variable
47+
tag_name="${{ github.event.release.tag_name }}"
48+
49+
# Check if the tag name starts with 'v' and strip it if present
50+
if [[ $tag_name == v* ]]; then
51+
tag_name="${tag_name:1}"
52+
fi
53+
54+
git config --global user.email "hallo@denktmit.de"
55+
git config --global user.name "DenktMit eG"
56+
mvn -Drevision=${tag_name} -Dchangelist= -B -ntp -DskipTests -Pci-cd clean deploy
57+
env:
58+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
59+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
60+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,4 @@ hs_err_pid*
5858
out/
5959
replay_pid*
6060
target/
61+
.flattened-pom.xml

LICENSE

Lines changed: 201 additions & 673 deletions
Large diffs are not rendered by default.

_bom/pom.xml

Lines changed: 34 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,37 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xmlns="http://maven.apache.org/POM/4.0.0"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5-
<modelVersion>4.0.0</modelVersion>
6-
7-
<parent>
8-
<groupId>de.denktmit.wicket</groupId>
9-
<artifactId>dm-wicket-root</artifactId>
10-
<version>0.1.0-SNAPSHOT</version>
11-
<relativePath>../pom.xml</relativePath>
12-
</parent>
13-
14-
<artifactId>dm-wicket-bom</artifactId>
15-
<packaging>pom</packaging>
16-
<name>DenktMit :: Wicket :: BOM</name>
17-
18-
<dependencyManagement>
19-
<dependencies>
20-
<dependency>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
215
<groupId>de.denktmit.wicket</groupId>
22-
<artifactId>dm-wicket-components</artifactId>
23-
<version>${project.version}</version>
24-
</dependency>
25-
<dependency>
26-
<groupId>de.denktmit.wicket</groupId>
27-
<artifactId>dm-wicket-kotlin</artifactId>
28-
<version>${project.version}</version>
29-
</dependency>
30-
<dependency>
31-
<groupId>de.denktmit.wicket</groupId>
32-
<artifactId>dm-wicket-model</artifactId>
33-
<version>${project.version}</version>
34-
</dependency>
35-
<dependency>
36-
<groupId>de.denktmit.wicket</groupId>
37-
<artifactId>dm-wicket-spring</artifactId>
38-
<version>${project.version}</version>
39-
</dependency>
40-
</dependencies>
41-
</dependencyManagement>
42-
6+
<artifactId>dm-wicket-root</artifactId>
7+
<version>${revision}${sha1}${changelist}</version>
8+
<relativePath>../pom.xml</relativePath>
9+
</parent>
10+
<artifactId>dm-wicket-bom</artifactId>
11+
<packaging>pom</packaging>
12+
<name>DenktMit :: Wicket :: BOM</name>
13+
<dependencyManagement>
14+
<dependencies>
15+
<dependency>
16+
<groupId>de.denktmit.wicket</groupId>
17+
<artifactId>dm-wicket-components</artifactId>
18+
<version>${project.version}</version>
19+
</dependency>
20+
<dependency>
21+
<groupId>de.denktmit.wicket</groupId>
22+
<artifactId>dm-wicket-kotlin</artifactId>
23+
<version>${project.version}</version>
24+
</dependency>
25+
<dependency>
26+
<groupId>de.denktmit.wicket</groupId>
27+
<artifactId>dm-wicket-model</artifactId>
28+
<version>${project.version}</version>
29+
</dependency>
30+
<dependency>
31+
<groupId>de.denktmit.wicket</groupId>
32+
<artifactId>dm-wicket-spring</artifactId>
33+
<version>${project.version}</version>
34+
</dependency>
35+
</dependencies>
36+
</dependencyManagement>
4337
</project>

0 commit comments

Comments
 (0)