Hi, I have the following ScriptCompilationConfigur...
# scripting
p
Hi, I have the following ScriptCompilationConfiguration JVM configuration.
Copy code
jvm {
    dependenciesFromClassContext(
            Script::class,
            "hapi-fhir-base",
            "hapi-fhir-structures-r5",
            "hapi-fhir-structures-r4",
            "hapi-fhir-structures-dstu3",
            "hapi-fhir-structures-dstu2",
            "org.hl7.fhir.dstu2016may",
            "org.hl7.fhir.r5",
            "org.hl7.fhir.r4",
            "org.hl7.fhir.dstu2",
            "org.hl7.fhir.dstu3",
            "hapi-fhir-converter",
            wholeClasspath = false,
    )
}
In the background I am also using hapi-fhir-client in sime helper functions. I intentionally did not add hapi-fhir-client to the libraries since I do not want user to use REST client in the scripts directly. Since I am dependant to the hapi-fhir-client (the dependency is on the project classpath) I am still able to import and use classes from hapi-fhir-client dependency in IDE when writing the script even if the library is not available to the script - of course script evaluation than fails. Is there an option to prevent importing and using classes from hapi-fhir-client dependency? Any help is appreciated. Thanks in advance.
i
cc: @Andrei Klunnyi