Hi all :android-wave: , I have added Dokka to my p...
# dokka
a
Hi all 👋 , I have added Dokka to my project recently. I have added version
2.0.0
, but I see the following message. Is there anyway to show the message only for projects using the old version instead?
solved 1
Copy code
> Configure project :
warning: Dokka Gradle plugin V1 is deprecated
    
    Dokka Gradle plugin V1 is deprecated, and will be removed in Dokka version 2.1.0
    Please migrate to Dokka Gradle plugin V2. This will require updating your project.
    To learn about migrating read the migration guide <https://kotl.in/dokka-gradle-migration>
    
    To start migrating to Dokka Gradle plugin V2 add
        org.jetbrains.dokka.experimental.gradle.pluginMode=V2EnabledWithHelpers
    into your project's `gradle.properties` file.
    
    We would appreciate your feedback!
     - Please report any feedback or problems <https://kotl.in/dokka-issues>
     - Chat with the community visit #dokka in <https://kotlinlang.slack.com/> (To sign up visit <https://kotl.in/slack>)
Or is there any way to hide this message as this is shown for every
gradlew
command?
r
Why do you want to upgrade dokka without upgrading the deprecated v1 plugin as well?
a
I am adding dokka for the first time to my project. I don't get what I should upgrade.
These are the only 4 lines related to dokka, I have added to my project so far.
r
Dokka 2.0.0 supports gradle plugin v1 for compatibility with Dokka 1 and it is the default. In your case you should set
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
property and just configure plugin v2.
👍 1
I would also add:
Copy code
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
org.jetbrains.dokka.experimental.tryK2=true
org.jetbrains.dokka.experimental.tryK2.nowarn=true
a
This works 👍 Thank You!
s
if you don't already have it, I also recommend adding the following to your
gradle.properties
Copy code
kotlin.code.style=official

org.gradle.caching=true
org.gradle.parallel=true
org.gradle.configureondemand=true
# This *may* cause some issues depending on what plugins you use. test it to see if it works or not.
#   see: <https://docs.gradle.org/current/userguide/performance.html#enable_configuration_cache>
#org.gradle.configuration-cache=true
all of these are performance improvements though they will mainly begin to show effects on larger projects, there's no reason not to have them.