Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javadoc version number is always 0.0.1 #1406

Closed
GlenKPeterson opened this issue Aug 30, 2020 · 0 comments · Fixed by #1432
Closed

Javadoc version number is always 0.0.1 #1406

GlenKPeterson opened this issue Aug 30, 2020 · 0 comments · Fixed by #1432
Assignees
Labels
format: Javadoc An issue/PR related to Dokka's Javadoc output format or the Javadoc comments in general
Milestone

Comments

@GlenKPeterson
Copy link

GlenKPeterson commented Aug 30, 2020

Describe the bug
Javadoc displays My-Module-Name My-Version-Number 'API' at the top of every page. I assume the Module-name is taken from settings.gradle.kts where it says rootProject.name = "My-Module-Name". I would expect the Version-number to be taken from build.gradle.kts where it says version = "0.0.14" but the version number always shows up as 0.0.1

Expected behaviour
I expected these version numbers to match.

build.gradle.kts source

version = "0.0.14"

index.html generated file

<h1 class="title">Indented 0.0.1 API</h1>

To Reproduce
Build this tiny Kotlin/Gradle project:
https://github.com/GlenKPeterson/Indented

Run with

./gradlew clean assemble dokkaJavadoc

Dokka configuration
None needed. Just use gradle defaults.

Installation

  • Operating system: Linux
  • Build tool: Gradle v6.3
  • Dokka version: 1.4.0-rc
$ ./gradlew --version

------------------------------------------------------------
Gradle 6.3
------------------------------------------------------------

Build time:   2020-03-24 19:52:07 UTC
Revision:     bacd40b727b0130eeac8855ae3f9fd9a0b207c60

Kotlin:       1.3.70
Groovy:       2.5.10
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          11.0.8 (Ubuntu 11.0.8+10-post-Ubuntu-0ubuntu118.04.1)
OS:           Linux 4.15.0-112-generic amd64
@Kordyjan Kordyjan added this to the 1.4.20 milestone Sep 2, 2020
@Kordyjan Kordyjan assigned sellophane and MarcinAman and unassigned sellophane Sep 2, 2020
@sellmair sellmair added format: Javadoc An issue/PR related to Dokka's Javadoc output format or the Javadoc comments in general and removed bug labels Sep 3, 2020
@MarcinAman MarcinAman linked a pull request Sep 3, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format: Javadoc An issue/PR related to Dokka's Javadoc output format or the Javadoc comments in general
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants