docs build: allow to specify custom dokka repository
- centralize repository management in settings.gradle.kts - allow to specify dokka repository with a gradle property - automatically add mavenLocal for -local dokka versions - specify kotlin version for building plugins in one place
This commit is contained in:
committed by
Space Team
parent
93650dcada
commit
28ae0c1649
@@ -0,0 +1,35 @@
|
||||
pluginManagement {
|
||||
val dokkaVersion = providers.gradleProperty("dokka_version").get()
|
||||
val dokkaRepository = providers.gradleProperty("dokka_repository").getOrElse("https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev")
|
||||
plugins {
|
||||
id("org.jetbrains.dokka") version(dokkaVersion)
|
||||
}
|
||||
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
maven(url = dokkaRepository)
|
||||
if ("-local" in dokkaVersion) {
|
||||
mavenLocal()
|
||||
}
|
||||
}
|
||||
}
|
||||
dependencyResolutionManagement {
|
||||
repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
|
||||
val dokkaVersion = providers.gradleProperty("dokka_version").get()
|
||||
val dokkaRepository = providers.gradleProperty("dokka_repository").getOrElse("https://maven.pkg.jetbrains.space/kotlin/p/dokka/dev")
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven(url = dokkaRepository)
|
||||
if ("-local" in dokkaVersion) {
|
||||
mavenLocal()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = "kotlin-stdlib-docs"
|
||||
|
||||
include("kotlin_big")
|
||||
include("plugins")
|
||||
include("plugins:dokka-samples-transformer-plugin")
|
||||
include("plugins:dokka-stdlib-configuration-plugin")
|
||||
include("plugins:dokka-version-filter-plugin")
|
||||
Reference in New Issue
Block a user