From 3eb50edc4a704dd91fceb43393e9cf16480731fc Mon Sep 17 00:00:00 2001 From: Ian Date: Mon, 2 Aug 2021 12:59:50 -0400 Subject: [PATCH] Optimise the size of the JAR and remove some unnecessary libraries --- api-2.1/pom.xml | 4 +++ api-2.2/pom.xml | 3 -- api/pom.xml | 9 +++++ omod/pom.xml | 8 ++--- omod/src/main/resources/config.xml | 2 +- pom.xml | 57 +++++++++++++++++++++++++++--- 6 files changed, 71 insertions(+), 12 deletions(-) diff --git a/api-2.1/pom.xml b/api-2.1/pom.xml index 5bb83f22f..abf48dd15 100644 --- a/api-2.1/pom.xml +++ b/api-2.1/pom.xml @@ -19,6 +19,10 @@ ${project.parent.version} provided + + org.openmrs.api + openmrs-api + org.projectlombok lombok diff --git a/api-2.2/pom.xml b/api-2.2/pom.xml index bd1c56e5b..c1695e0fb 100644 --- a/api-2.2/pom.xml +++ b/api-2.2/pom.xml @@ -28,9 +28,6 @@ org.openmrs.api openmrs-api - ${openmrsPlatformVersion} - jar - provided ${project.parent.groupId} diff --git a/api/pom.xml b/api/pom.xml index e96b8fad8..64c68d33b 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -12,6 +12,10 @@ API for FHIR2 + + org.openmrs.api + openmrs-api + ca.uhn.hapi.fhir hapi-fhir-base @@ -52,6 +56,11 @@ com.google.guava guava + + com.fasterxml.jackson.core + jackson-databind + test + ${project.parent.groupId} ${project.parent.artifactId}-test-data diff --git a/omod/pom.xml b/omod/pom.xml index 77de2e15b..602cb77a4 100644 --- a/omod/pom.xml +++ b/omod/pom.xml @@ -51,6 +51,10 @@ servlet-api javax.servlet + + org.javassist + javassist + @@ -61,10 +65,6 @@ ca.uhn.hapi.fhir hapi-fhir-server - - ca.uhn.hapi.fhir - hapi-fhir-structures-r4 - org.apache.commons commons-lang3 diff --git a/omod/src/main/resources/config.xml b/omod/src/main/resources/config.xml index 077dacbc1..46a6e07c4 100644 --- a/omod/src/main/resources/config.xml +++ b/omod/src/main/resources/config.xml @@ -17,7 +17,7 @@ ${project.parent.name} ${project.parent.version} org.openmrs.module.fhir2 - ibacher + OpenMRS FHIR Squad ${project.parent.description} diff --git a/pom.xml b/pom.xml index b32f23ea9..a9cfb93ba 100644 --- a/pom.xml +++ b/pom.xml @@ -136,6 +136,12 @@ ${openmrsPlatformVersion} test-jar test + + + org.javassist + javassist + + org.openmrs.web @@ -208,6 +214,10 @@ servlet-api javax.servlet + + com.fasterxml.jackson.core + jackson-databind + @@ -219,6 +229,10 @@ org.springframework spring-messaging + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + @@ -230,6 +244,12 @@ ca.uhn.hapi.fhir hapi-fhir-structures-dstu3 ${hapifhirVersion} + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + + ca.uhn.hapi.fhir @@ -240,6 +260,10 @@ xpp3 xpp3 + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + @@ -251,6 +275,30 @@ net.sf.saxon Saxon-HE + + ca.uhn.hapi.fhir + org.hl7.fhir.dstu2 + + + ca.uhn.hapi.fhir + org.hl7.fhir.dstu2016may + + + ca.uhn.hapi.fhir + org.hl7.fhir.dstu3 + + + ca.uhn.hapi.fhir + org.hl7.fhir.r4 + + + ca.uhn.hapi.fhir + org.hl7.fhir.r5 + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + @@ -328,6 +376,10 @@ org.slf4j slf4j-api + + org.javassist + javassist + @@ -387,14 +439,11 @@ - - org.openmrs.api - openmrs-api - org.openmrs.api openmrs-api test-jar + test org.openmrs.test