Skip to content

Commit

Permalink
Use Java 17 with openHAB 4
Browse files Browse the repository at this point in the history
Related to openhab/openhab-core#2994

Signed-off-by: Wouter Born <[email protected]>
  • Loading branch information
wborn committed Dec 19, 2022
1 parent 1520a39 commit 8894b28
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion helper-functions
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,13 @@ build() {
local dist="$2"
local push="$3"

local build_arg_options="--build-arg BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ") --build-arg VCS_REF=$(git rev-parse HEAD) --build-arg JAVA_VERSION=11 --build-arg OPENHAB_VERSION=$openhab_version"
local java_version=""
case $openhab_version in
3.*) java_version="11";;
*) java_version="17";;
esac

local build_arg_options="--build-arg BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ") --build-arg VCS_REF=$(git rev-parse HEAD) --build-arg JAVA_VERSION=$java_version --build-arg OPENHAB_VERSION=$openhab_version"
local tags=$(tags $openhab_version $dist)
local tag_options=${tags//$(docker_repo)/--tag $(docker_repo)}
local build_options="$build_arg_options --platform $(platforms $openhab_version $dist) $tag_options --progress plain $push"
Expand Down

0 comments on commit 8894b28

Please sign in to comment.