egorand

    egorand

    3 years ago
    is there a way to add a custom configuration to a target? e.g.:
    kotlin {
      targets {
        fromPresets(presets.jvm, 'jvm') {
          configurations {
            baseline
          }
        }
      }
      jvmMain {
        dependencies {
          baseline 'com.squareup.okio:okio:1.14.1'
        }
      }
    }
    gildor

    gildor

    3 years ago
    Probably would be better wait for 1.3.20, or use eap, because dsl is changed there
    egorand

    egorand

    3 years ago
    🤦‍♂️
    gildor

    gildor

    3 years ago
    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
    egorand

    egorand

    3 years ago
    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"
    gildor

    gildor

    3 years ago
    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
    egorand

    egorand

    3 years ago
    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