plugins {
    java
    `ivy-publish`
}

// tag::customize-identity[]
publishing {
    // end::customize-identity[]
    repositories {
        ivy {
            url = uri("$buildDir/repo")
        }
    }
// tag::customize-identity[]
    publications {
        create<IvyPublication>("ivy") {
            organisation = "org.gradle.sample"
            module = "project1-sample"
            revision = "1.1"
            descriptor.status = "milestone"
            descriptor.branch = "testing"
            descriptor.extraInfo("http://my.namespace", "myElement", "Some value")

            from(components["java"])
        }
    }
}
// end::customize-identity[]
