Skip to content

Commit 0ff7f18

Browse files
committed
Fixed "description" property in .pom files (for MavenCentral)
1 parent 130dc9f commit 0ff7f18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gradle/publish-bintray.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ apply plugin: 'com.jfrog.bintray'
77
// --------------- pom configuration ---------------
88

99
def pomConfig = {
10-
description "AtomicFU utilities"
11-
url "https://github.com/Kotlin/atomicfu"
12-
1310
licenses {
1411
license {
1512
name "The Apache Software License, Version 2.0"
@@ -25,7 +22,6 @@ def pomConfig = {
2522
organizationUrl "http://www.jetbrains.com"
2623
}
2724
}
28-
2925
scm {
3026
url "https://github.com/Kotlin/atomicfu"
3127
}
@@ -61,7 +57,11 @@ if (!project.name.endsWith("-native")) {
6157
}
6258
pom.withXml {
6359
def root = asNode()
60+
// NOTE: Don't try to move top-level things (especially "description") to the pomConfig block
61+
// because they would resolve incorrectly to top-level project properties in Gradle/Groovy
6462
root.appendNode('name', project.name)
63+
root.appendNode('description', 'AtomicFU utilities')
64+
root.appendNode('url', 'https://github.com/Kotlin/atomicfu')
6565
root.children().last() + pomConfig
6666
}
6767
}

0 commit comments

Comments
 (0)