https://kotlinlang.org logo
Title
k

kluck

07/23/2018, 8:55 AM
am I supposed to do something like this?
extensions.configure(DistributionContainer::class.java) {
    
}
g

gildor

07/23/2018, 9:49 AM
This is dynamic syntax. Did you applied distribution plugin to Plugins DSL?
Checked, works for me without problem:
plugins {
    distribution
}

distributions {
    create("foo") {
        contents {
            from("src/something")
        }
    }
}
k

kluck

07/23/2018, 11:38 AM
what do you mean by "Did you apply distribution plugin to Plugins DSL"?
f

fitzoh

07/23/2018, 1:39 PM
@kluck he’s asking how you applied the distribution plugin (
plugins{}
or
apply()
) This link explains why that matters: https://github.com/gradle/kotlin-dsl/blob/master/doc/getting-started/Configuring-Plugins.md
k

kluck

07/23/2018, 1:40 PM
Oh, I didn't know about this page, I'll check it out, thanks
👍 1