https://kotlinlang.org logo
#feed
Title
# feed
v

Vaibhav Jaiswal

02/25/2024, 6:05 PM
Hey everyone!! I've published a short article on Creating Custom Gradle Convention Plugins to simplify multi-module Gradle configurations for KMP and CMP. Let me know what y'all thing, Looking forward to feedbacks
🙌 8
s

s3rius

02/29/2024, 8:13 PM
By the way, there's a sneaky way to get access to the type-safe version catalog in your convention plugins. I think it was this:
Copy code
import org.gradle.accessors.dm.LibrariesForLibs
import org.gradle.kotlin.dsl.the

private val Project.libs: LibrariesForLibs
    get() = the<LibrariesForLibs>()
It's not documented and not officially supported to my knowledge. So use at your own peril; but works absolutely fine for me.