Change docs artifacts directory layout for easier publishing
Change module names of libraries to be consistent
This commit is contained in:
committed by
Space Team
parent
e105d11a2b
commit
2cfbbb185d
@@ -1,4 +1,4 @@
|
|||||||
# Module kotlin.test
|
# Module kotlin-test
|
||||||
|
|
||||||
## kotlin.test
|
## kotlin.test
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Module stdlib
|
# Module kotlin-stdlib
|
||||||
|
|
||||||
## Kotlin Standard Library
|
## Kotlin Standard Library
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ def pKotlinBig() { return project('kotlin_big').extensions }
|
|||||||
def pKotlinNative() { return project('kotlin_native').extensions }
|
def pKotlinNative() { return project('kotlin_native').extensions }
|
||||||
|
|
||||||
ext.outputDir = "$buildDir/doc"
|
ext.outputDir = "$buildDir/doc"
|
||||||
|
ext.outputDirLatest = "$outputDir/latest"
|
||||||
|
ext.outputDirPrevious = "$outputDir/previous"
|
||||||
ext.kotlin_root = pKotlinBig().kotlin_root
|
ext.kotlin_root = pKotlinBig().kotlin_root
|
||||||
ext.kotlin_libs = pKotlinBig().kotlin_libs
|
ext.kotlin_libs = pKotlinBig().kotlin_libs
|
||||||
ext.kotlin_native_root = pKotlinNative().kotlin_native_root
|
ext.kotlin_native_root = pKotlinNative().kotlin_native_root
|
||||||
@@ -68,14 +70,15 @@ TaskProvider<DokkaTask> createStdLibVersionedDocTask(String version, Boolean isL
|
|||||||
kotlinLanguageVersion = "1.1"
|
kotlinLanguageVersion = "1.1"
|
||||||
|
|
||||||
|
|
||||||
moduleName.set("stdlib")
|
moduleName.set("kotlin-stdlib")
|
||||||
|
def moduleDirName = "kotlin-stdlib"
|
||||||
if (isLatest) {
|
if (isLatest) {
|
||||||
outputDirectory.set(new File(outputDir, "/kotlin-stdlib/latest"))
|
outputDirectory.set(new File(outputDirLatest, moduleDirName))
|
||||||
pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase" : """{ "mergeImplicitExpectActualDeclarations": "true", "templatesDir": "$templatesDir" }""",
|
pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase" : """{ "mergeImplicitExpectActualDeclarations": "true", "templatesDir": "$templatesDir" }""",
|
||||||
"org.jetbrains.dokka.kotlinlang.StdLibConfigurationPlugin": """{ "ignoreCommonBuiltIns": "true" }""",
|
"org.jetbrains.dokka.kotlinlang.StdLibConfigurationPlugin": """{ "ignoreCommonBuiltIns": "true" }""",
|
||||||
"org.jetbrains.dokka.versioning.VersioningPlugin" : """{ "version": "$version", "olderVersionsDir": "${outputDir.toString().replace('\\', '/')}//kotlin-stdlib/old" }"""])
|
"org.jetbrains.dokka.versioning.VersioningPlugin" : """{ "version": "$version", "olderVersionsDir": "${outputDirPrevious.toString().replace('\\', '/')}/$moduleDirName" }"""])
|
||||||
} else {
|
} else {
|
||||||
outputDirectory.set(new File(outputDir, "/kotlin-stdlib/old/" + version))
|
outputDirectory.set(new File(new File(outputDirPrevious, moduleDirName), version))
|
||||||
pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase" : """{ "mergeImplicitExpectActualDeclarations": "true", "templatesDir": "$templatesDir" }""",
|
pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase" : """{ "mergeImplicitExpectActualDeclarations": "true", "templatesDir": "$templatesDir" }""",
|
||||||
"org.jetbrains.dokka.kotlinlang.StdLibConfigurationPlugin": """{ "ignoreCommonBuiltIns": "true" }""",
|
"org.jetbrains.dokka.kotlinlang.StdLibConfigurationPlugin": """{ "ignoreCommonBuiltIns": "true" }""",
|
||||||
"org.jetbrains.dokka.kotlinlang.VersionFilterPlugin" : """{ "targetVersion": "$version" }""",
|
"org.jetbrains.dokka.kotlinlang.VersionFilterPlugin" : """{ "targetVersion": "$version" }""",
|
||||||
@@ -237,18 +240,19 @@ TaskProvider<DokkaTask> createKotlinTestVersionedDocTask(String version, Boolean
|
|||||||
def kotlinTestJsClasspath = fileTree("$kotlin_libs/kotlin-test-js")
|
def kotlinTestJsClasspath = fileTree("$kotlin_libs/kotlin-test-js")
|
||||||
def kotlinTestJvmClasspath = fileTree("$kotlin_libs/kotlin-test")
|
def kotlinTestJvmClasspath = fileTree("$kotlin_libs/kotlin-test")
|
||||||
|
|
||||||
def stdlibPackageList = new URL("file:///${stdlibDocTask.get().outputDirectory.get()}/stdlib/package-list".toString())
|
def stdlibPackageList = new URL("file:///${stdlibDocTask.get().outputDirectory.get()}/kotlin-stdlib/package-list".toString())
|
||||||
def junit5PackageList = new URL("https://junit.org/junit5/docs/current/api/element-list".toString())
|
def junit5PackageList = new URL("https://junit.org/junit5/docs/current/api/element-list".toString())
|
||||||
def kotlinLanguageVersion = version
|
def kotlinLanguageVersion = version
|
||||||
|
|
||||||
moduleName.set("kotlin.test")
|
moduleName.set("kotlin-test")
|
||||||
|
|
||||||
|
def moduleDirName = "kotlin-test"
|
||||||
if (isLatest) {
|
if (isLatest) {
|
||||||
outputDirectory.set(new File(outputDir, "/kotlin.test/latest"))
|
outputDirectory.set(new File(outputDirLatest, moduleDirName))
|
||||||
pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase" : """{ "mergeImplicitExpectActualDeclarations": "true", "templatesDir": "$templatesDir" }""",
|
pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase" : """{ "mergeImplicitExpectActualDeclarations": "true", "templatesDir": "$templatesDir" }""",
|
||||||
"org.jetbrains.dokka.versioning.VersioningPlugin": """{ "version": "$version", "olderVersionsDir": "${outputDir.toString().replace('\\', '/')}//kotlin.test/old" }"""])
|
"org.jetbrains.dokka.versioning.VersioningPlugin": """{ "version": "$version", "olderVersionsDir": "${outputDirPrevious.toString().replace('\\', '/')}/$moduleDirName" }"""])
|
||||||
} else {
|
} else {
|
||||||
outputDirectory.set(new File(outputDir, "/kotlin.test/old/" + version))
|
outputDirectory.set(new File(new File(outputDirPrevious, moduleDirName), version))
|
||||||
pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase" : """{ "mergeImplicitExpectActualDeclarations": "true", "templatesDir": "$templatesDir" }""",
|
pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase" : """{ "mergeImplicitExpectActualDeclarations": "true", "templatesDir": "$templatesDir" }""",
|
||||||
"org.jetbrains.dokka.kotlinlang.VersionFilterPlugin": """{ "targetVersion": "$version" }""",
|
"org.jetbrains.dokka.kotlinlang.VersionFilterPlugin": """{ "targetVersion": "$version" }""",
|
||||||
"org.jetbrains.dokka.versioning.VersioningPlugin" : """{ "version": "$version" }"""])
|
"org.jetbrains.dokka.versioning.VersioningPlugin" : """{ "version": "$version" }"""])
|
||||||
|
|||||||
Reference in New Issue
Block a user