1/* 2 * Copyright 2017-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. 3 */ 4 5// ------- metadata for Maven Central 6 7def pomConfig = { 8 licenses { 9 license { 10 name "The Apache Software License, Version 2.0" 11 url "https://www.apache.org/licenses/LICENSE-2.0.txt" 12 distribution "repo" 13 } 14 } 15 developers { 16 developer { 17 id "JetBrains" 18 name "JetBrains Team" 19 organization "JetBrains" 20 organizationUrl "https://www.jetbrains.com" 21 } 22 } 23 scm { 24 url "https://github.com/Kotlin/atomicfu" 25 } 26} 27 28project.ext.configureMavenCentralMetadata = { 29 def root = it.asNode() 30 // NOTE: Don't try to move top-level things (especially "description") to the pomConfig block 31 // because they would resolve incorrectly to top-level project properties in Gradle/Groovy 32 root.appendNode('name', project.name) 33 root.appendNode('description', 'AtomicFU utilities') 34 root.appendNode('url', 'https://github.com/Kotlin/atomicfu') 35 root.children().last() + pomConfig 36} 37 38