Browse Source

Add dependencies to pom

tags/v0.1.0
Chris Smith 5 years ago
parent
commit
a8d8a8ba74
1 changed files with 14 additions and 1 deletions
  1. 14
    1
      build.gradle.kts

+ 14
- 1
build.gradle.kts View File

@@ -22,7 +22,7 @@ repositories {
22 22
 }
23 23
 
24 24
 dependencies {
25
-    implementation(kotlin("stdlib-jdk8"))
25
+    implementation(kotlin("stdlib-jdk8", "1.3.0-rc-190"))
26 26
     implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.2-eap13")
27 27
     implementation("io.ktor:ktor-network:1.0.0-beta-1")
28 28
 
@@ -86,6 +86,19 @@ publishing {
86 86
             version = project.version as String
87 87
             artifact(tasks["jar"])
88 88
             artifact(tasks["sourceJar"])
89
+            pom.withXml {
90
+                val root = asNode()
91
+                root.appendNode("name", "KtIrc")
92
+                root.appendNode("description", "Kotlin library for connecting to and interacting with IRC")
93
+
94
+                val dependenciesNode = root.appendNode("dependencies")
95
+                configurations.implementation.allDependencies.forEach {
96
+                    val dependencyNode = dependenciesNode.appendNode("dependency")
97
+                    dependencyNode.appendNode("groupId", it.group)
98
+                    dependencyNode.appendNode("artifactId", it.name)
99
+                    dependencyNode.appendNode("version", it.version)
100
+                }
101
+            }
89 102
         }
90 103
     }
91 104
 }

Loading…
Cancel
Save