Skip to content

Commit

Permalink
Fixed "description" property in .pom files (for MavenCentral)
Browse files Browse the repository at this point in the history
  • Loading branch information
elizarov committed Jun 7, 2018
1 parent 130dc9f commit 0ff7f18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gradle/publish-bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ apply plugin: 'com.jfrog.bintray'
// --------------- pom configuration ---------------

def pomConfig = {
description "AtomicFU utilities"
url "https://github.com/Kotlin/atomicfu"

licenses {
license {
name "The Apache Software License, Version 2.0"
Expand All @@ -25,7 +22,6 @@ def pomConfig = {
organizationUrl "http://www.jetbrains.com"
}
}

scm {
url "https://github.com/Kotlin/atomicfu"
}
Expand Down Expand Up @@ -61,7 +57,11 @@ if (!project.name.endsWith("-native")) {
}
pom.withXml {
def root = 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
}
}
Expand Down

0 comments on commit 0ff7f18

Please sign in to comment.