Is it possible to override `src/target/kotlin`? M...
# multiplatform
j
Is it possible to override
src/target/kotlin
? My idea is moving to
Copy code
project/common/Platform.kt
project/commonTest/PlatformTest.kt
project/ios/Platform.kt
project/iosTest/AnotherTest.kt
project/jvm/Platform.kt
project/jvmTest/AnotherTest.kt
...
project/build.gradle.kts
t
Yes, it’s available via sourse sets
j
do you have an example about it?
l
sourceSets* You can explore it inside the
kotlin
Gradle extension (aka.
KotlinMultiplatformExtension
in buildSrc)
j
I explored it yesterday but I didn't find a way to avoid the usage of src and kotlin folders
l
You should be able to take one sourceSet (e.g. using
getByName
), and add any dir to it with
srcDir
👀 1
j
Thank you both, I will try later :)
t
Such folder manipulation exists in coroutines project too
And some plugins don’t respect “new source folder”
As result - we have different styles 😞
j