Skip to content

Commit

Permalink
Merge pull request #256 from NordicSemiconductor/bugfix/jvm-release
Browse files Browse the repository at this point in the history
Bugfix: Adding `javadoc` file to JVM release artifacts
  • Loading branch information
philips77 authored Jul 2, 2024
2 parents 15f38aa + 7969b61 commit 187fb99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ nordic-mcumgr = "1.9.2"
nordic-scanner = "1.6.0"
nordic-common = "2.0.0"
nordic-memfault = "1.0.2"
nordicPlugins = "2.3"
nordicPlugins = "2.4"
dokkaPlugin = "1.9.20"
googleServicesPlugins = "4.4.0"
firebaseCrashlyticsPlugins = "2.9.9"
Expand Down
4 changes: 3 additions & 1 deletion plugins/src/main/kotlin/JvmNexusRepositoryPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ class JvmNexusRepositoryPlugin : Plugin<Project> {
val dokkaHtml = tasks.named("dokkaHtml", DokkaTask::class.java)
dependsOn(dokkaHtml)
from(dokkaHtml.flatMap { it.outputDirectory })
archiveClassifier.set("html-docs")
// Maven Central requires JVM libraries to have [module]-[version]-javadoc.jar file.
// Let's put Dokka HTML docs into the javadoc file.
archiveClassifier.set("javadoc")
}

afterEvaluate {
Expand Down

0 comments on commit 187fb99

Please sign in to comment.