Suppose I have some classes containing logic that I would like to use during the Gradle build and in the Java application itself. How can configure a Gradle build to share the same classes between a build and the project that is being built, for example using the Kotlin DSL?