diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..5549978 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -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 }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..b1193d9 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cb526d1 --- /dev/null +++ b/.gitignore @@ -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/ \ No newline at end of file diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml new file mode 100644 index 0000000..917e86e --- /dev/null +++ b/.mvn/extensions.xml @@ -0,0 +1,10 @@ + + + + me.qoomon + maven-git-versioning-extension + 9.8.0 + + + \ No newline at end of file diff --git a/.mvn/maven-git-versioning-extension.xml b/.mvn/maven-git-versioning-extension.xml new file mode 100644 index 0000000..2838276 --- /dev/null +++ b/.mvn/maven-git-versioning-extension.xml @@ -0,0 +1,251 @@ + + + + + [0-9]+\.[0-9]+\.[0-9]+)]]> + ${ref.tag} + + + version.semantic.release + ${ref.tag} + + + version.semantic + ${ref.tag} + + + original.version + ${version} + + + version.numeric + ${ref.tag} + + + version.symbolic + redeploy-${ref.tag} + + + scm.branch + ${ref} + + + npm.project.version + ${ref.tag} + + + + + (lts-.*)-development)]]> + ${ref.branch}-SNAPSHOT + + + version.semantic.release + ${version.release}-${ref.branch} + + + version.semantic + ${version.release}-${ref.branch}-SNAPSHOT + + + original.version + ${version} + + + version.numeric + ${version.release} + + + version.symbolic + ${ref.branch} + + + scm.branch + ${ref.branch} + + + + + main|lts-(.*) + ${version} + + + version.semantic.release + ${version.release} + + + version.semantic + ${version} + + + original.version + ${version} + + + version.numeric + ${version.release} + + + version.symbolic + latest + + + scm.branch + ${branch} + + + + + [a-zA-Z][a-zA-Z][a-zA-Z]*-[0-9]+).*]]> + ${ref.feature}-SNAPSHOT + + + version.semantic.release + ${version.release}-${ref.feature} + + + version.semantic + ${version.release}-${ref.feature}-SNAPSHOT + + + original.version + ${version} + + + version.numeric + ${version.release} + + + version.symbolic + ${ref.feature} + + + scm.branch + ${ref} + + + + + .+)]]> + ${ref.feature}-SNAPSHOT + + + version.semantic.release + ${version.release}-${ref.feature} + + + version.semantic + ${version.release}-${ref.feature}-SNAPSHOT + + + original.version + ${version} + + + version.numeric + ${version.release} + + + version.symbolic + ${ref.feature} + + + scm.branch + ${ref} + + + + + .+)]]> + ${ref.branch}-SNAPSHOT + + + version.semantic.release + ${version.release}-${ref.branch} + + + version.semantic + ${version.release}-${ref.branch}-SNAPSHOT + + + original.version + ${version} + + + version.numeric + ${version.release} + + + version.symbolic + ${ref.branch} + + + scm.branch + ${ref.branch} + + + + + .+)]]> + ${ref.tag} + + + version.semantic.release + ${version.release} + + + version.semantic + ${version} + + + original.version + ${version} + + + version.numeric + ${version.release} + + + version.symbolic + ${ref.tag} + + + scm.branch + ${ref} + + + + + + ${version.release}-${commit}-SNAPSHOT + + + version.semantic.release + ${version.release}-${commit} + + + version.semantic + ${version.release}-${commit}-SNAPSHOT + + + original.version + ${version} + + + version.numeric + ${version.release} + + + version.symbolic + ${commit} + + + scm.branch + unknown + + + + + \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..fbd9858 --- /dev/null +++ b/LICENSE @@ -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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..ca92670 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# maven-template +a template repository containing a minimal maven build and the eitco default maven github actions diff --git a/deployment/global-settings.xml b/deployment/global-settings.xml new file mode 100644 index 0000000..020c17e --- /dev/null +++ b/deployment/global-settings.xml @@ -0,0 +1,13 @@ + + + + + ossrh + ${env.OSSRH_JIRA_USERNAME} + ${env.OSSRH_JIRA_PASSWORD} + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..805e099 --- /dev/null +++ b/pom.xml @@ -0,0 +1,40 @@ + + + 4.0.0 + + + de.eitco + eitco-oss-parent + 0.0.2 + + + + + de.eitco + eitco-maven-template + 0.0.1-SNAPSHOT + + + + + + + + https://github.com/eitco/maven-template.git + scm:git:https://github.com/eitco/maven-template.git + scm:git:https://github.com/eitco/maven-template.git + + + + + + maven-release-plugin + + + maven-resources-plugin + + + + + \ No newline at end of file