Rohde Fischer
04/04/2023, 5:02 PMkotlin block, but it seems I cannot use it in the subprojects (or allprojects) block for some reason
one of the things I'm trying to do is:
/build.gradle.kts
subprojects {
kotlin {
publishing {
// ... removed for readability
}
}
}
I tried adding the _kotlin_("multiplatform") _version_ kotlinVersion in /build.gradle.kts in the plugins section both with and without applying it to no avail
how do I make a shared configuration?Vampire
04/04/2023, 5:51 PMallprojects { ... } or subprojects { ... } is a code smell for various reasons and should be avoided. You should instead use convention plugins to share build logic.Adam S
04/04/2023, 5:57 PMsubprojects {} being a difficult + problem-laden way of sharing build config, something that looks unusual to me is nesting the publishing {} block inside of the kotlin {} block. The publishing config isn’t connected to the Kotlin config, so it doesn’t make sense to put one inside the other.Rohde Fischer
04/04/2023, 6:00 PMAdam S
04/04/2023, 6:01 PMRohde Fischer
04/04/2023, 6:02 PMAdam S
04/04/2023, 6:12 PMRohde Fischer
04/04/2023, 6:13 PMAdam S
04/04/2023, 6:15 PMRohde Fischer
04/04/2023, 6:58 PM