https://kotlinlang.org logo
Title
d

Dico

10/28/2019, 10:02 PM
I have a kotlin-jvm project that produces an artifact using proguard. Proguard causes countless issues for the project, namely when using Jackson for deserialization of ktor content. I have a complex pipeline where specific classes and libraries are excluded from proguard processing, with two proguard steps, one for obfuscation and another for minification. I would like to be able to run my tests on the classes after the proguard step. Currently, my tests work fine before proguard, but things don't work afterwards. Does someone know how to create a Gradle test task that runs with a specific classpath?
o

octylFractal

10/28/2019, 10:03 PM
https://docs.gradle.org/current/dsl/org.gradle.api.tasks.testing.Test.html#org.gradle.api.tasks.testing.Test:classpath when you make a new test task just add to this, I think adding a JAR should work, if not use
zipTree
d

Dico

10/28/2019, 11:53 PM
Thanks!