cbeust / kobalt

A Kotlin-based build system for the JVM.
Apache License 2.0
428 stars 60 forks source link

Depend on project as a test project? #483

Open johanhaleby opened 5 years ago

johanhaleby commented 5 years ago

I have a project that contains shared code that is only used for testing purposes. But how can I tell my other projects to depend on it as a test dependency? Doing something like this will make it a compile-time dependency for a and b:

val testingProject = project { .. } 
val a = project(testingProject) { .. } 
val b = project(testingProject) { .. } 
cbeust commented 5 years ago

This is not currently supported. If you depend on a project, this project's dependencies will be automatically added to your current project.

Going to tag this as a feature request.