Skip to content

Commit

Permalink
Fungerende EE9 versjon (#438)
Browse files Browse the repository at this point in the history
Vil release en `fp-bom-jakarta` utgave også. POMen ligger i ee9 mappa.
  • Loading branch information
mrsladek authored Jul 5, 2023
1 parent 0fc695f commit 2208fb4
Show file tree
Hide file tree
Showing 4 changed files with 739 additions and 8 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,26 @@ jobs:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.3.0
with:
fetch-depth: "0"

- name: Setup maven
uses: whelk-io/maven-settings-xml-action@v21
- name: Setup java and maven
uses: navikt/fp-gha-workflows/.github/actions/setup-java-and-maven@main
with:
repositories: '[{ "id": "github", "name": "github", "url": "https://maven.pkg.github.com/${{ github.repository }}", "releases": { "enabled": "true" }, "snapshots": { "enabled": "false" } }]'
servers: '[{ "id": "github", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
output_file: settings.xml
github-token: ${{ secrets.GITHUB_TOKEN }}
java-version: '17'

- name: Bygg
- name: Verify
shell: bash
run: |
mvn verify -e -B -s settings.xml
- name: Verify EE9
shell: bash
run: |
mvn verify -e -B -s settings.xml -f ./ee9/pom.xml
release-drafter:
name: Update
permissions:
Expand Down
23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publiser release
on:
release:
types: [published]
types: [ published ]

jobs:
release:
Expand All @@ -13,3 +13,24 @@ jobs:
release-version: ${{ github.event.release.tag_name }}
release-profiles: ''
secrets: inherit

release-ee9:
name: Kontrakt EE9
needs: release
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]

- name: Setup java and maven
uses: navikt/fp-gha-workflows/.github/actions/setup-java-and-maven@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
java-version: '17'

- name: Publish artifacts
run: |
mvn -B -s settings.xml versions:set -DnewVersion=${{ github.event.release.tag_name }} -f ./ee9/pom.xml
mvn -B -s settings.xml -DskipTests clean deploy -f ./ee9/pom.xml
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ Fasses ut:
* DB Change Management - [Flyway DB](https://flywaydb.org/)
* Connection Pool Management - [HikariCP](https://github.com/brettwooldridge/HikariCP)
* Monitoring - [Prometheus](https://prometheus.io/) + [Micrometer](https://micrometer.io/) + [Dropwizard Metrics](https://metrics.dropwizard.io/4.2.0/)

### Migrering til jakarta
* Swagger dependencies endrer artefakt postfix til `-jakarta`. F.eks: `<artifactId>swagger-jaxrs2</artifactId>` blir til `<artifactId>swagger-jaxrs2-jakarta</artifactId>` versjonen er den samme.
* Jandex endrer groupId fra `<groupId>org.jboss</groupId>` til `<groupId>io.smallrye</groupId>`
Loading

0 comments on commit 2208fb4

Please sign in to comment.