Marc Knaup
10/22/2017, 8:55 PMjava {
sourceSets {
"examples" {
kotlin.srcDirs("Examples")
}
}
}
dependencies {
api(kotlin("stdlib", "1.1.51"))
"examplesImplementation"(java.sourceSets["main"].output)
}
That approach creates a new source set examples
and makes it depend on the source set main
.
However it does not inherit the kotlin-stdlib
dependency from main
.