Hi everyone, I'd like to know how to change the bu...
# multiplatform
s
Hi everyone, I'd like to know how to change the build directory location of any KMP module. I tried using
Copy code
// Custom build directory
layout.buildDirectory.set(file("$rootDir/.build/Library"))
But it causes library publication to fail, and other modules still create a build folder, as shown in the second image.
I prefer this style of structure!
t
regarding publication - I advice you to open a Kotlin issue Regarding general
buildDirectory
override - not every plugin is using it yet and may still rely on deprecated buildDir or just even hard-cord
build/
path. For this cases - better to open issues in plugins issue trackers