Skip to content

Commit

Permalink
Forces HAPI and FHIR CORE to earlier versions due to hapifhir/org.hl7…
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Dec 21, 2022
1 parent f0784e1 commit a9e4d85
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
25 changes: 25 additions & 0 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,32 @@ object Dependencies {
}

object HapiFhir {
const val fhirBase = "ca.uhn.hapi.fhir:hapi-fhir-base:${Versions.hapiFhir}"
const val fhirClient = "ca.uhn.hapi.fhir:hapi-fhir-client:${Versions.hapiFhir}"
const val structuresDstu2 = "ca.uhn.hapi.fhir:hapi-fhir-structures-dstu2:${Versions.hapiFhir}"
const val structuresDstu3 = "ca.uhn.hapi.fhir:hapi-fhir-structures-dstu3:${Versions.hapiFhir}"
const val structuresR4 = "ca.uhn.hapi.fhir:hapi-fhir-structures-r4:${Versions.hapiFhir}"
const val structuresR4b = "ca.uhn.hapi.fhir:hapi-fhir-structures-r4b:${Versions.hapiFhir}"
const val structuresR5 = "ca.uhn.hapi.fhir:hapi-fhir-structures-r5:${Versions.hapiFhir}"

const val validation = "ca.uhn.hapi.fhir:hapi-fhir-validation:${Versions.hapiFhir}"
const val validationDstu3 =
"ca.uhn.hapi.fhir:hapi-fhir-validation-resources-dstu3:${Versions.hapiFhir}"
const val validationR4 =
"ca.uhn.hapi.fhir:hapi-fhir-validation-resources-r4:${Versions.hapiFhir}"
const val validationR5 =
"ca.uhn.hapi.fhir:hapi-fhir-validation-resources-r5:${Versions.hapiFhir}"

const val fhirCoreDstu2 = "ca.uhn.hapi.fhir:org.hl7.fhir.dstu2:${Versions.hapiFhirCore}"
const val fhirCoreDstu2016 =
"ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may:${Versions.hapiFhirCore}"
const val fhirCoreDstu3 = "ca.uhn.hapi.fhir:org.hl7.fhir.dstu3:${Versions.hapiFhirCore}"
const val fhirCoreR4 = "ca.uhn.hapi.fhir:org.hl7.fhir.r4:${Versions.hapiFhirCore}"
const val fhirCoreR4b = "ca.uhn.hapi.fhir:org.hl7.fhir.r4b:${Versions.hapiFhirCore}"
const val fhirCoreR5 = "ca.uhn.hapi.fhir:org.hl7.fhir.r5:${Versions.hapiFhirCore}"
const val fhirCoreUtils = "ca.uhn.hapi.fhir:org.hl7.fhir.utilities:${Versions.hapiFhirCore}"
const val fhirCoreConvertors =
"ca.uhn.hapi.fhir:org.hl7.fhir.convertors:${Versions.hapiFhirCore}"

// Runtime dependency that is required to run FhirPath (also requires minSDK of 26).
// Version 3.0 uses java.lang.System.Logger, which is not available on Android
Expand Down Expand Up @@ -211,6 +235,7 @@ object Dependencies {
const val fhirUcum = "1.0.3"
const val guava = "28.2-android"
const val hapiFhir = "6.0.1"
const val hapiFhirCore = "5.6.36"
const val http = "4.9.1"
const val jackson = "2.14.1"
const val jsonToolsPatch = "1.13"
Expand Down
25 changes: 24 additions & 1 deletion workflow/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,31 @@ configurations {
exclude(group = "org.apache.httpcomponents")

// Removes newer versions of caffeine and manually imports 2.9
// Removes newer versions of hapi and keeps on 6.0.1
// (newer versions don't work on Android)
resolutionStrategy { force(Dependencies.HapiFhir.caffeine) }
resolutionStrategy {
force(Dependencies.HapiFhir.caffeine)
force(Dependencies.HapiFhir.fhirBase)
force(Dependencies.HapiFhir.fhirClient)
force(Dependencies.HapiFhir.structuresDstu2)
force(Dependencies.HapiFhir.structuresDstu3)
force(Dependencies.HapiFhir.structuresR4)
//force(Dependencies.HapiFhir.structuresR4b)
force(Dependencies.HapiFhir.structuresR5)
force(Dependencies.HapiFhir.validation)
force(Dependencies.HapiFhir.validationDstu3)
force(Dependencies.HapiFhir.validationR4)
force(Dependencies.HapiFhir.validationR5)

force(Dependencies.HapiFhir.fhirCoreDstu2)
force(Dependencies.HapiFhir.fhirCoreDstu2016)
force(Dependencies.HapiFhir.fhirCoreDstu3)
force(Dependencies.HapiFhir.fhirCoreR4)
force(Dependencies.HapiFhir.fhirCoreR4b)
force(Dependencies.HapiFhir.fhirCoreR5)
force(Dependencies.HapiFhir.fhirCoreUtils)
force(Dependencies.HapiFhir.fhirCoreConvertors)
}
}
}

Expand Down

0 comments on commit a9e4d85

Please sign in to comment.