blob: cd24dcbca7eb352271996a295af6adcd5b208210 [file] [log] [blame]
// ------- metadata for Maven Central
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
id "JetBrains"
name "JetBrains Team"
organization "JetBrains"
organizationUrl "http://www.jetbrains.com"
}
}
scm {
url "https://github.com/Kotlin/atomicfu"
}
}
project.ext.configureMavenCentralMetadata = {
def root = it.asNode()
// NOTE: Don't try to move top-level things (especially "description") to the pomConfig block
// because they would resolve incorrectly to top-level project properties in Gradle/Groovy
root.appendNode('name', project.name)
root.appendNode('description', 'AtomicFU utilities')
root.appendNode('url', 'https://github.com/Kotlin/atomicfu')
root.children().last() + pomConfig
}