Hey everyone! I have the following config of dokka...
# dokka
h
Hey everyone! I have the following config of dokka
Copy code
tasks.dokkaHtml {
  outputDirectory = "$buildDir/dokka"
  dokkaSourceSets {
    register("commonMain") {
      displayName = "common"
      platform = "common"
    }
    register("jvmMain") {
      displayName = "jvm"
      platform = "jvm"
    }
    register("androidMain") {
      noAndroidSdkLink = true
      displayName = "android"
      platform = "android"
    }
  }
}
but when I run
./gradlew dokkaJavadoc
I got
Copy code
No source set with name 'main' found
In the main directory is the
AndroidManifest.xml
without a source! So how can I unregister the
main
?
dokka version is
1.4.0-rc
j
I think I read there is no need to register all platforms, it does automatically, but I dont know where I read it
πŸ‘ 1
Ah, 1.4.0-dev-35
πŸ‘ 1
s
There is also a 1.4.0-dev-38 πŸ‘€ But since the bintray
kotlin-dev
repository is dead, its hosted on
maven("<https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev>")
h
The same happens when I remove registerations
Copy code
tasks.dokkaHtml {
  outputDirectory = "$buildDir/dokka"
}
@Javier Thanks for the reply, but is that what you mean?
j
You should use the dev version from the repo suggested by @Sebastian Sellmair [JB]
The final version will include it?
s
`
Copy code
tasks.dokkaHtml {
  outputDirectory.set(buildDir.resolve("dokka"))
}
Why does everyone actually set some different output dir? Do people not like the default output directories? 😒
@Hadi Lashkari Are you able to share your build script with us?
h
It was in the github README
s
(Or even your whole project, if it is Open Source)
h
let me commit and push πŸ™‚
s
It was in the github README
Yes, and it works for 1.4.0-rc New dev builds include changes to the Gradle Plugin
I pushed a PR updating the readme in our repository here: Update dokka README.md to reflect changes for 1.4.0 I pushed a PR upgrading all examples in the
kotlin-examples
repository here: https://github.com/Kotlin/kotlin-examples/pull/130/files I posted tips for migration here: https://kotlinlang.slack.com/archives/C0F4UNJET/p1597767279098900
h
Great πŸ™‚
@simon.vergauwen I added the dev-38 version but apparently the maven repository is not
maven("<https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev>")
! I cannot find it!
Make sure to add this repository to your
pluginManagement
block, as well as to your regular project
repositories
h
yes!
let me try!
I was missing the
PluginMangement
! Now it's building!
Thanks guys πŸ™‚ It's working
πŸ˜„ 1
s
πŸ‘ ☺️
Happy to hear 😍