Anyone knows how can I do something like this on K...
# gradle
c
Anyone knows how can I do something like this on Kotlin DSL?
compile group: 'com.test', name: 'lib', version: '1.0.0', ext: 'pom'
g
You can just combine all parts to a string, if there is no override with named arguments (do not remember, does it exist for generated configurations or not, if it does, compile(group = "com.test") will work
Yep, it just works with named arguments
c
It is giving me an unresolved reference, but I can’t seem to import the one that has those named arguments
Because from what I’ve seen, we need to use the java plugin, but since I’m on a multiplatform project I cant use the java plugin because I already have the com.android.library
g
Ahhh, it's interesting, looks that this configuration provided by mpp plugin and it doesn't have overload with named argument
Worth to report an issue for Kotlin mpp plugin But for now you can just concatenate all parts of dependency id (plus add
@pom
, if you really need it, but it usually not necessary)
Do you apply this dependency not in standard dependencies block, but in mpp configuration block, right?