diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-07-01 16:38:56 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-07-02 12:48:53 +0200 |
commit | 2e02e56818609c683f95ba4f17fa749eb9e1c705 (patch) | |
tree | 53c1ccadcb26f651dec20ed7874db202081fc825 /core/src/main/kotlin/DokkaVersion.kt | |
parent | badd2d7e4bfad519f31b69ae9c1bea5659f3c59b (diff) | |
download | dokka-2e02e56818609c683f95ba4f17fa749eb9e1c705.tar.gz dokka-2e02e56818609c683f95ba4f17fa749eb9e1c705.tar.bz2 dokka-2e02e56818609c683f95ba4f17fa749eb9e1c705.zip |
runner:gradle-plugin: Apply `java-gradle-plugin`
Diffstat (limited to 'core/src/main/kotlin/DokkaVersion.kt')
-rw-r--r-- | core/src/main/kotlin/DokkaVersion.kt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/main/kotlin/DokkaVersion.kt b/core/src/main/kotlin/DokkaVersion.kt new file mode 100644 index 00000000..410058f3 --- /dev/null +++ b/core/src/main/kotlin/DokkaVersion.kt @@ -0,0 +1,10 @@ +package org.jetbrains.dokka + +import java.util.* + +object DokkaVersion { + val version: String by lazy { + val stream = javaClass.getResourceAsStream("/META-INF/dokka/dokka-version.properties") + Properties().apply { load(stream) }.getProperty("dokka-version") + } +} |