diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-09-03 13:39:58 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-09-04 08:55:02 +0200 |
commit | cc3d4872f70cfebaf5d85c72af0030f526671915 (patch) | |
tree | b8f75efddd4cb631b930b0d24efdbdcc4159ee73 /runners/gradle-plugin | |
parent | 4d8e84396824b8a3d5d6e3e26ea4911fa944e3aa (diff) | |
download | dokka-cc3d4872f70cfebaf5d85c72af0030f526671915.tar.gz dokka-cc3d4872f70cfebaf5d85c72af0030f526671915.tar.bz2 dokka-cc3d4872f70cfebaf5d85c72af0030f526671915.zip |
Javadoc version number is always 0.0.1 #1406
Diffstat (limited to 'runners/gradle-plugin')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt | 4 | ||||
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt index b4800124..9dab1f04 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/AbstractDokkaTask.kt @@ -28,6 +28,10 @@ abstract class AbstractDokkaTask( val moduleName: Property<String> = project.objects.safeProperty<String>() .safeConvention(project.name) + @Input + val moduleVersion: Property<String> = project.objects.safeProperty<String>() + .safeConvention(project.version.toString()) + @OutputDirectory val outputDirectory: Property<File> = project.objects.safeProperty<File>() .safeConvention(defaultDokkaOutputDirectory()) diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt index beec3a7e..ed3989af 100644 --- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt +++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt @@ -37,6 +37,7 @@ abstract class DokkaTask : AbstractDokkaTask(DokkaBootstrapImpl::class) { override fun buildDokkaConfiguration(): DokkaConfigurationImpl { return DokkaConfigurationImpl( moduleName = moduleName.getSafe(), + moduleVersion = moduleVersion.orNull, outputDir = outputDirectory.getSafe(), cacheRoot = cacheRoot.getSafe(), offlineMode = offlineMode.getSafe(), |