Assesment needed on Switching to OpenJDK (TRUNK-5488)


(Moses Mutesasira) #1

Hello commuity , An assesment of switching to OpenJDK (TRUNK-5488) is quickly needed, so that work on this feature can commence as this is one of the key features priotized by the community to be part of platform 2.3.0. See Platform 2.3.0 release wiki page.

cc @dkayiwa @darius @samuel34 @burke @ruhanga


(Burke Mamlin) #2

Does the platform compile and run as it is using OpenJDK? I think that would be the first step to evaluate. If we’re already compatible, then this task would primarily involve ensuring CI uses OpenJDK and advertising/promoting to devs to develop against OpenJDK by default.

Are people already using OpenJDK to build & deploy the platform? If not, the first step would be to recruit volunteer(s) to try it out.


(Mark Goodrich) #3

Looks like we are still using the Oracle JDK 8 in our build pipeline, those I use OpenJDK to build locally and haven’t run into any issues that I know of.


(Moses Mutesasira) #4

@burke, so do we then conclude that our platform is already compatible with openJDK from @mogoodrich’s experience?? then we should now focus on reconfiguring CI to use openjdk too.


(Burke Mamlin) #5

Anyone else with experience building the Platform against OpenJDK – good or bag?

@cintiadr, how hard would it be to migrate our CI builds to use OpenJDK instead of Oracle’s JDK?


(Daniel Kayiwa) #6

In the CI build configurations, OpenJDK is one of the options.


(Cintia Del Rio) #7

We’ve only had OpenJDK in our agents for a while (since we migrated to ubuntu 16). I printed all the options, and this is the result: https://ci.openmrs.org/browse/RELEASE-TES-13/log

We are on ubuntu 16. Any java version easily installable from apt (even a ppa) is trivial. Note we don’t have JDK 11 or 12 (I don’t know how available they are in ubuntu).


But, last time I tried to install OpenJDK locally (OSX), I gave up. It was so hard I just used Oracle’s, and everything else was OpenJDK.


(Moses Mutesasira) #8

@cintiadr, in other words you’ve never had an experience compiling the platform locally with openjdk . Things failed just right with installing openjdk its self locally . right??


(Daniel Kayiwa) #9

@cintiadr we have not yet supported Java 11 or 12


(Cintia Del Rio) #10

Hi @mozzy,

I’ve never compiled platform at all locally. Remember, not a developer :slight_smile:

Installing OpenJDK locally on OSX was nearly impossible, requiring all sort of magical tricks I wasn’t willing to make. But that was years ago.