aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/DokkaVersion.kt
blob: d846988b7e70bff21d3c826d18f51bc5900087c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
 */

package org.jetbrains.dokka

import java.util.*

public object DokkaVersion {
    public val version: String by lazy {
        javaClass.getResourceAsStream("/META-INF/dokka/dokka-version.properties").use { stream ->
            Properties().apply { load(stream) }.getProperty("dokka-version")
        }
    }
}