Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwarz-eitco-de authored May 10, 2024
0 parents commit 40d334d
Show file tree
Hide file tree
Showing 9 changed files with 401 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: deploy commits
on:
push: { }
pull_request: { }

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: eitco/maven-deploy@main
with:
gpg-private-key: ${{ secrets.ARTIFACT_SIGNING_GPG_PRIVATE_KEY }}
gpg-key-name: ${{ secrets.ARTIFACT_SIGNING_GPG_KEY_NAME }}
gpg-passphrase: ${{ secrets.ARTIFACT_SIGNING_GPG_PRIVATE_KEY_PASSWORD }}
deploy-user: ${{ secrets.DEPLOY_USER_GITHUB_PACKAGES }}
deploy-password: ${{ secrets.DEPLOY_TOKEN_GITHUB_PACKAGES }}
16 changes: 16 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: release

on:
workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: eitco/maven-release@main
with:
gpg-private-key: ${{ secrets.ARTIFACT_SIGNING_GPG_PRIVATE_KEY }}
gpg-key-name: ${{ secrets.ARTIFACT_SIGNING_GPG_KEY_NAME }}
gpg-passphrase: ${{ secrets.ARTIFACT_SIGNING_GPG_PRIVATE_KEY_PASSWORD }}
deploy-user: ${{ secrets.OSSRH_JIRA_USERNAME }}
deploy-password: ${{ secrets.OSSRH_JIRA_PASSWORD }}
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties

# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
!/.mvn/wrapper/maven-wrapper.jar

# IntelliJ project files
!/.idea
/.idea/*
!/.idea/runConfigurations
*.iml

# eclipse
*.project
*.classpath

.angular
node/
node_modules/
package.json
package-lock.json
tsconfig.json
tsconfig.spec.json

test/system-test/keycloak/
10 changes: 10 additions & 0 deletions .mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">

<extension>
<groupId>me.qoomon</groupId>
<artifactId>maven-git-versioning-extension</artifactId>
<version>9.8.0</version>
</extension>

</extensions>
251 changes: 251 additions & 0 deletions .mvn/maven-git-versioning-extension.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
<configuration xmlns="https://github.com/qoomon/maven-git-versioning-extension"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://github.com/qoomon/maven-git-versioning-extension https://qoomon.github.io/maven-git-versioning-extension/configuration-9.4.0.xsd">

<refs considerTagsOnBranches="true">
<ref type="tag">
<pattern><![CDATA[(?<tag>[0-9]+\.[0-9]+\.[0-9]+)]]></pattern>
<version>${ref.tag}</version>
<properties>
<property>
<name>version.semantic.release</name>
<value>${ref.tag}</value>
</property>
<property>
<name>version.semantic</name>
<value>${ref.tag}</value>
</property>
<property>
<name>original.version</name>
<value>${version}</value>
</property>
<property>
<name>version.numeric</name>
<value>${ref.tag}</value>
</property>
<property>
<name>version.symbolic</name>
<value>redeploy-${ref.tag}</value>
</property>
<property>
<name>scm.branch</name>
<value>${ref}</value>
</property>
<property>
<name>npm.project.version</name>
<value>${ref.tag}</value>
</property>
</properties>
</ref>
<ref type="branch">
<pattern><![CDATA[(?<branch>(lts-.*)-development)]]></pattern>
<version>${ref.branch}-SNAPSHOT</version>
<properties>
<property>
<name>version.semantic.release</name>
<value>${version.release}-${ref.branch}</value>
</property>
<property>
<name>version.semantic</name>
<value>${version.release}-${ref.branch}-SNAPSHOT</value>
</property>
<property>
<name>original.version</name>
<value>${version}</value>
</property>
<property>
<name>version.numeric</name>
<value>${version.release}</value>
</property>
<property>
<name>version.symbolic</name>
<value>${ref.branch}</value>
</property>
<property>
<name>scm.branch</name>
<value>${ref.branch}</value>
</property>
</properties>
</ref>
<ref type="branch">
<pattern>main|lts-(.*)</pattern>
<version>${version}</version>
<properties>
<property>
<name>version.semantic.release</name>
<value>${version.release}</value>
</property>
<property>
<name>version.semantic</name>
<value>${version}</value>
</property>
<property>
<name>original.version</name>
<value>${version}</value>
</property>
<property>
<name>version.numeric</name>
<value>${version.release}</value>
</property>
<property>
<name>version.symbolic</name>
<value>latest</value>
</property>
<property>
<name>scm.branch</name>
<value>${branch}</value>
</property>
</properties>
</ref>
<ref type="branch">
<pattern><![CDATA[((feature|bugfix)/)?(?<feature>[a-zA-Z][a-zA-Z][a-zA-Z]*-[0-9]+).*]]></pattern>
<version>${ref.feature}-SNAPSHOT</version>
<properties>
<property>
<name>version.semantic.release</name>
<value>${version.release}-${ref.feature}</value>
</property>
<property>
<name>version.semantic</name>
<value>${version.release}-${ref.feature}-SNAPSHOT</value>
</property>
<property>
<name>original.version</name>
<value>${version}</value>
</property>
<property>
<name>version.numeric</name>
<value>${version.release}</value>
</property>
<property>
<name>version.symbolic</name>
<value>${ref.feature}</value>
</property>
<property>
<name>scm.branch</name>
<value>${ref}</value>
</property>
</properties>
</ref>
<ref type="branch">
<pattern><![CDATA[(feature|bugfix)/(?<feature>.+)]]></pattern>
<version>${ref.feature}-SNAPSHOT</version>
<properties>
<property>
<name>version.semantic.release</name>
<value>${version.release}-${ref.feature}</value>
</property>
<property>
<name>version.semantic</name>
<value>${version.release}-${ref.feature}-SNAPSHOT</value>
</property>
<property>
<name>original.version</name>
<value>${version}</value>
</property>
<property>
<name>version.numeric</name>
<value>${version.release}</value>
</property>
<property>
<name>version.symbolic</name>
<value>${ref.feature}</value>
</property>
<property>
<name>scm.branch</name>
<value>${ref}</value>
</property>
</properties>
</ref>
<ref type="branch">
<pattern><![CDATA[(?<branch>.+)]]></pattern>
<version>${ref.branch}-SNAPSHOT</version>
<properties>
<property>
<name>version.semantic.release</name>
<value>${version.release}-${ref.branch}</value>
</property>
<property>
<name>version.semantic</name>
<value>${version.release}-${ref.branch}-SNAPSHOT</value>
</property>
<property>
<name>original.version</name>
<value>${version}</value>
</property>
<property>
<name>version.numeric</name>
<value>${version.release}</value>
</property>
<property>
<name>version.symbolic</name>
<value>${ref.branch}</value>
</property>
<property>
<name>scm.branch</name>
<value>${ref.branch}</value>
</property>
</properties>
</ref>
<ref type="tag">
<pattern><![CDATA[(?<tag>.+)]]></pattern>
<version>${ref.tag}</version>
<properties>
<property>
<name>version.semantic.release</name>
<value>${version.release}</value>
</property>
<property>
<name>version.semantic</name>
<value>${version}</value>
</property>
<property>
<name>original.version</name>
<value>${version}</value>
</property>
<property>
<name>version.numeric</name>
<value>${version.release}</value>
</property>
<property>
<name>version.symbolic</name>
<value>${ref.tag}</value>
</property>
<property>
<name>scm.branch</name>
<value>${ref}</value>
</property>
</properties>
</ref>
</refs>
<rev>
<version>${version.release}-${commit}-SNAPSHOT</version>
<properties>
<property>
<pattern>version.semantic.release</pattern>
<value>${version.release}-${commit}</value>
</property>
<property>
<name>version.semantic</name>
<value>${version.release}-${commit}-SNAPSHOT</value>
</property>
<property>
<name>original.version</name>
<value>${version}</value>
</property>
<property>
<name>version.numeric</name>
<value>${version.release}</value>
</property>
<property>
<name>version.symbolic</name>
<value>${commit}</value>
</property>
<property>
<name>scm.branch</name>
<value>unknown</value>
</property>
</properties>
</rev>

</configuration>
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 European IT Consultancy EITCO GmbH

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:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

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.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# maven-template
a template repository containing a minimal maven build and the eitco default maven github actions
13 changes: 13 additions & 0 deletions deployment/global-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

<servers>
<server>
<id>ossrh</id>
<username>${env.OSSRH_JIRA_USERNAME}</username>
<password>${env.OSSRH_JIRA_PASSWORD}</password>
</server>
</servers>

</settings>
Loading

0 comments on commit 40d334d

Please sign in to comment.