diff options
author | Jeff Gaston <jeffrygaston@google.com> | 2020-05-19 17:45:37 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-05-19 17:45:37 +0000 |
commit | 9110a4d76950bc4ee395fafa804f469d68d009d3 (patch) | |
tree | cedf256a8873a6640d46e434fc29ea132b9e1509 | |
parent | 061eb9b917d82a7dcecf43f2c9c92024597c8143 (diff) | |
parent | 9d3578826002ecbb18d6d07a94c4c1859558bee9 (diff) | |
download | dokka-9110a4d76950bc4ee395fafa804f469d68d009d3.tar.gz |
Declaring dokka-fatjar as a dependency of dokka-gradle-plugin am: 9d35788260
Change-Id: Ie96946342b221310784c16c3ab1e33385ba9e279
-rw-r--r-- | runners/gradle-plugin/build.gradle | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/runners/gradle-plugin/build.gradle b/runners/gradle-plugin/build.gradle index a0670803c..4742dda5d 100644 --- a/runners/gradle-plugin/build.gradle +++ b/runners/gradle-plugin/build.gradle @@ -63,6 +63,27 @@ publishing { } project.shadow.component(publication) + publication.pom { pom -> + // Add dokka-fatjar as a runtime dependency. + // This is a workaround until the Shadow jar can put project dependencies into the .pom: https://github.com/johnrengelman/shadow/commit/da82b37522b349aff414f571d2037682acd84f27 + pom.withXml { xml -> + def node = xml.asNode() + def deps = null + node.children().each { child -> + if (child.name().toString() == "dependencies") { + deps = child + } + } + if (deps == null) { + deps = node.appendNode("dependencies") + } + def dep = deps.appendNode("dependency") + dep.appendNode("groupId", "org.jetbrains.dokka") + dep.appendNode("artifactId", "dokka-fatjar") + dep.appendNode("version", dokka_version) + dep.appendNode("scope", "runtime") + } + } } } } |