is there a way to add a custom configuration to a ...
# multiplatform
e
is there a way to add a custom configuration to a target? e.g.:
Copy code
kotlin {
  targets {
    fromPresets(presets.jvm, 'jvm') {
      configurations {
        baseline
      }
    }
  }
  jvmMain {
    dependencies {
      baseline 'com.squareup.okio:okio:1.14.1'
    }
  }
}
g
Probably would be better wait for 1.3.20, or use eap, because dsl is changed there
e
🤦‍♂️
g
New MPP is highly experimental and when first version was released it already had a problem, not compatible with Kotlin DSL I actually didn't try, probably old DSL will continue work, but I would just recommend try with new version to avoid surprises and be more future proof
e
Yeah, thanks a lot for mentioning that, I wouldn't have found otherwise. The 1.3.0 plugin has definitely been advertised as The Real Thing, so it's super frustrating that it doesn't even work. "Experimental" != "Broken by design"
g
It works at some point :) I'm not sure about
baseline
, but in general it works, I will try to find time tomorrow and take a look at your pr
e
thanks! I think I figured out how to add the configuration, but adding dependencies to it and referencing its classpath is tricky - I’d really appreciate some help