From 0feb729c8f9ef5fc808e839044748be5dc2583fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B8rn-Andre=20Skaar?=
<31540110+bjornandre@users.noreply.github.com>
Date: Thu, 25 Jan 2024 13:57:54 +0100
Subject: [PATCH] Fix release to Github packages (#167)
* Fix release to Github packages
* Fix release config for klass-forvaltning
---
.github/workflows/release.yml | 18 +++++-------------
klass-forvaltning/pom.xml | 16 ++++++++++++++++
2 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 6bbcb58..500935b 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -14,23 +14,15 @@ jobs:
steps:
- uses: actions/checkout@v3
- - name: Set up JDK 1.8
+ - name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
- java-version: '8'
+ java-version: '17'
cache: maven
- # Need to downgrade Maven in order to allow HTTP (not HTTPS) packages to be downloaded.
- # This is necessary as HTTP repositories were blocked in Maven 3.8.1
- # HTTP repositories are used in some outdated dependenciesns
- # This step can be removed once KLASS packages have been updated to more recent versions
- - name: Set up Maven
- uses: stCarolas/setup-maven@v4.5
- with:
- maven-version: 3.6.3
-
+ # Build all modules except klass-forvaltning since it is not compatible with JDK 17
- name: Publish to GitHub Packages
- run: mvn --batch-mode deploy -P github
+ run: mvn --batch-mode deploy -pl '!:klass-forvaltning' -P github -DskipTests
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/klass-forvaltning/pom.xml b/klass-forvaltning/pom.xml
index 83bdd69..e2db884 100644
--- a/klass-forvaltning/pom.xml
+++ b/klass-forvaltning/pom.xml
@@ -45,6 +45,12 @@
+
+ scm:git:https://github.com/${github.repository}.git
+ https://github.com/${github.repository}
+ HEAD
+
+
vaadin-addons
@@ -236,6 +242,16 @@
org.springframework.boot
spring-boot-maven-plugin
+
+ org.apache.maven.plugins
+ maven-release-plugin
+ 3.0.1
+
+ documentation
+ true
+ v@{project.version}
+
+
com.vaadin
vaadin-maven-plugin