aboutsummaryrefslogtreecommitdiff
path: root/pom.gradle
blob: ccda8308cb56c45d0320cc7faa366499ea4ce326 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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