Describe the bug
Adding the new IPS dependency to Android gradle results in failed compilation due to dependency redundancy from jakarta.activation library.
To Reproduce
Steps to reproduce the behavior:
In Android Studio, create a project with a basic activity
Gradle Sync and Run app, App should run onto device/emulator
under app/build.gradle, in the dependencies{} section, add dependency
implementation 'ca.uhn.hapi.fhir:hapi-fhir-jpaserver-ips:6.4.0'
Gradle sync. Then Run app. See DuplicateRelativeFileException for some meta files
See DuplicateRelativeFileException coming specifically from com.sun.activation:jakarta.activation:1.2.1
Expected behavior
App should run
Screenshots
Execution failed for task ':app:checkDebugDuplicateClasses'.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class javax.activation.ActivationDataFlavor found in the following modules: jakarta.activation-1.2.1 (com.sun.activation:jakarta.activation:1.2.1), jakarta.activation-api-1.2.1 (jakarta.activation:jakarta.activation-api:1.2.1) and javax.activation-api-1.2.0 (javax.activation:javax.activation-api:1.2.0)
Duplicate class javax.activation.CommandInfo found in the following modules: jakarta.activation-1.2.1 (com.sun.activation:jakarta.activation:1.2.1), jakarta.activation-api-1.2.1 (jakarta.activation:jakarta.activation-api:1.2.1) and javax.activation-api-1.2.0 (javax.activation:javax.activation-api:1.2.0)
Environment (please complete the following information):
HAPI FHIR Version 6.4.0
OS: Mac ventura 13.1
Android Studio Chipmunk | 2021.2.1 Patch 2
Phone/Emulator should be irrelevant, as it fails during building
Additional context
Add any other context about the problem here.
NOTE: Before filing a ticket, please see the following URL: https://github.com/hapifhir/hapi-fhir/wiki/Getting-Help
Describe the bug Adding the new IPS dependency to Android gradle results in failed compilation due to dependency redundancy from jakarta.activation library.
To Reproduce Steps to reproduce the behavior:
Expected behavior App should run
Screenshots
Execution failed for task ':app:checkDebugDuplicateClasses'.
Environment (please complete the following information):
Additional context Add any other context about the problem here.