<@U0QBCLV62> Hi. Still can't seem to get publishin...
# gradle
n
@bamboo Hi. Still can't seem to get publishing to work properly when following the manual. Manual's
Copy code
publishing {
    publications {
        mavenJava(MavenPublication) {
            from(components.java)
        }
    }
}
results in "specif constructor, MavenPublication doesn't have companion object" and "mavenJava()" being unresolved reference It does compile if i replace it with
Copy code
publishing {
    publications {
        create<MavenPublication>("mavenJava"){
            from(components["java"])
        }
    }
}
though. I don't get why it works on way and not the other?
b
nekoinemo: the manual currently only includes the Groovy syntax
we’re working on translating the samples before we reach 1.0
👍 2