Bug 1734728

Summary: [RFE] Update Java SDK to use OpenJDK 11 - both build and runtime
Product: [oVirt] ovirt-engine-sdk-java Reporter: Martin Perina <mperina>
Component: GeneralAssignee: Ori Liel <oliel>
Status: CLOSED CURRENTRELEASE QA Contact: Guilherme Santos <gdeolive>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.3.1CC: bugs, lleistne, mperina, pelauter
Target Milestone: ovirt-4.4.0Keywords: FutureFeature
Target Release: 4.4.1Flags: mperina: ovirt-4.4?
pelauter: planning_ack+
mperina: devel_ack+
lleistne: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: java-ovirt-engine-sdk-4.4.1 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-20 19:59:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1734716    

Description Martin Perina 2019-07-31 10:09:04 UTC
logger-log4j needs to align with oVirt engine and use OpenJDK 11 instead of 8

Comment 1 Martin Perina 2019-07-31 10:16:20 UTC
Sorry, typo: Java SDK needs to align with oVirt engine and use OpenJDK 11 instead of 8

Comment 2 Guilherme Santos 2020-04-23 15:06:38 UTC
Verified on:
ovirt-engine-4.4.0-0.33.master.el8ev.noarch
ovirt-engine-sdk-java-4.4.1

Steps:
1. make sure env is using java-11
# java -version
# javac -version

2. # git clone git://gerrit.ovirt.org/ovirt-engine-sdk-java
3. edited ovirt-engine-sdk-java/automation/build.py to match my env java-11 path on line 37 
4. built the sdk with maven
5. ran a few examples on sdk test folders such as AddVm
# java -cp .:<sdk jar>:<deps jars>:<test-classes dir> org.ovirt.engine.sdk4.examples.AddVm

Results:
Build and execution of examples executed with success

Comment 3 Sandro Bonazzola 2020-05-20 19:59:59 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.