Specify what to compile or not in a Kotlin/Gradle project
I have a project in which I need to integrate a very heavy third-party service in my local environment.
To integrate the service, I need to list the dependencies in my build.gradle.kts and create some configuration classes to set it up correctly.
But I don't want the dependencies and the configuration classes to be compiled and deployed on my production environment.
What features of gradle and Kotlin can I use to specify what dependencies and classes to use in a certain environment?