def pomConfig = {
    licenses {
        license {
            name "MIT"
            url "https://opensource.org/licenses/MIT"
            distribution "repo"
        }
    }
    developers {
        developer {
            id "rjaros"
            name "Robert Jaros"
            organization "Treksoft"
            organizationUrl "http://www.treksoft.pl"
        }
    }

    scm {
        url "https://github.com/rjaros/kvision.git"
    }
}

def withPom = { pom ->
    pom.withXml {
        def root = asNode()
        root.appendNode('name', project.name)
        root.appendNode('description', 'Object oriented Web UI framework for Kotlin/JS')
        root.appendNode('url', 'https://github.com/rjaros/kvision')
        root.children().last() + pomConfig
    }
}

ext.withPom = withPom