aboutsummaryrefslogtreecommitdiff
path: root/pom.gradle
blob: 3deafa50ce10255a86a845a463642fefc4880f2f (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 framework for Kotlin/JS')
        root.appendNode('url', 'https://github.com/rjaros/kvision')
        root.children().last() + pomConfig
    }
}

ext.withPom = withPom