Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BAH-643 Upgrade dependencies and where necessary the code to java 8 #59

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

hafizh
Copy link

@hafizh hafizh commented Jul 28, 2022

Ticket: https://bahmni.atlassian.net/browse/BAH-643

  • Since it's quite old project, it's not easy to install versions of dependencies required.
  • I've setup the db as described in another ticket: https://bahmni.atlassian.net/browse/BAH-1252
  • According to that ticket there is one test failing, which is also my experience, but it looks slightly different (could be result of java 7 -> 8), will analyse further.
Running org.bahmni.feed.openelis.feed.event.EncounterFeedWorkerTest
    [junit] 2022-07-29 09:29:34,185 main ERROR Could not reconfigure JMX java.lang.LinkageError: loader constraint violation: loader (instance of org/powermock/core/classloader/MockClassLoader) previously initiated loading for a different type with name "javax/management/MBeanServer"

UPDATE
Above test and another one that was failing fixed.

  1. Run Postgres:
    docker run --name postgresdb -e POSTGRES_PASSWORD=${PGPASSWORD} -p 5432:5432 -d postgres:9.6
  2. Clean, compile, test and build war:
    ant clean compile resetDB test-only report dist

Let me know if there are other points to consider.

@CLAassistant
Copy link

CLAassistant commented Jul 28, 2022

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants