am I supposed to do something like this? ``` exten...
# gradle
k
am I supposed to do something like this?
Copy code
extensions.configure(DistributionContainer::class.java) {
    
}
g
This is dynamic syntax. Did you applied distribution plugin to Plugins DSL?
Checked, works for me without problem:
Copy code
plugins {
    distribution
}

distributions {
    create("foo") {
        contents {
            from("src/something")
        }
    }
}
k
what do you mean by "Did you apply distribution plugin to Plugins DSL"?
f
@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
Oh, I didn't know about this page, I'll check it out, thanks
👍 1