Anyone have an example about how to add a dependen...
# compiler
t
Anyone have an example about how to add a dependency on a JAR from a repository when running box tests?
j
Also, I created a bit of infrastructure to allow easily add a dependency via version catalogs by codegen the path of the jars
Copy code
compiler {
    mainClass.set(...)
    generateTestOnSync(false)
    testDependencies(libs.some.libs)
    testProjects(projects.kotlinInject)
}
It should be here: https://github.com/JavierSegoviaCordoba/hubdle/blob/e1aae1871ef54e286d20310be4e6b2[…]tlin/jvm/features/HubdleKotlinCompilerPluginFeatureExtension.kt
t
At the end I simply made a shadow jar from the dependencies and used it in place of the original. With this I avoided a lot of changes in gradle / test config.
👍 2