From e8d2bf7fecd6686732112b596fd793834e911392 Mon Sep 17 00:00:00 2001 From: Wikum Chamith Date: Fri, 22 Dec 2023 18:20:49 +0530 Subject: [PATCH] ADDR-131:Adding Java 17 Compatability --- .../AddressHierarchyActivatorTest.java | 2 +- pom.xml | 38 ++++++++++++++++++- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/api/src/test/java/org/openmrs/module/addresshierarchy/AddressHierarchyActivatorTest.java b/api/src/test/java/org/openmrs/module/addresshierarchy/AddressHierarchyActivatorTest.java index a3198df4..10166021 100644 --- a/api/src/test/java/org/openmrs/module/addresshierarchy/AddressHierarchyActivatorTest.java +++ b/api/src/test/java/org/openmrs/module/addresshierarchy/AddressHierarchyActivatorTest.java @@ -211,4 +211,4 @@ public void started_shouldWipeExistingEntries() { Assert.assertTrue(entryNames.contains("Auburndale")); Assert.assertTrue(entryNames.contains("Chestnut Hill")); } -} \ No newline at end of file +} diff --git a/pom.xml b/pom.xml index 56493b91..5a165b78 100644 --- a/pom.xml +++ b/pom.xml @@ -75,9 +75,22 @@ pom test + + com.thoughtworks.xstream + xstream + 1.4.17 + provided + + + + com.thoughtworks.xstream + xstream + + + 1.10.6 1.9 @@ -93,8 +106,8 @@ org.apache.maven.plugins maven-compiler-plugin - 1.6 - 1.6 + 1.7 + 1.7 UTF-8 @@ -188,6 +201,27 @@ 1.10 + + + Java 17 + + 17 + + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.2.2 + + --add-opens java.base/java.lang=ALL-UNNAMED + --add-opens java.base/java.util=ALL-UNNAMED + + + + + +