Skip to content

Commit

Permalink
ktl-1139 chore: use dev version Dokka for metadata-jvm api refs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpachoo committed Jul 20, 2023
1 parent ae74c6e commit ae99378
Showing 1 changed file with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ package builds.apiReferences.kotlinx.metadataJvm

import BuildParams.KOTLINX_METADATA_JVM_RELEASE_TAG
import builds.apiReferences.dependsOnDokkaTemplate
import builds.apiReferences.templates.BuildApiReference
import builds.apiReferences.templates.buildDokkaHTML
import builds.apiReferences.templates.scriptDropSnapshot
import builds.apiReferences.templates.vcsDefaultTrigger
import builds.apiReferences.templates.*
import jetbrains.buildServer.configs.kotlin.BuildType
import jetbrains.buildServer.configs.kotlin.buildSteps.script

Expand Down Expand Up @@ -37,6 +34,22 @@ object KotlinxMetadataJvmBuildApiReference : BuildType({
buildDokkaHTML {
enabled = false
}
scriptDokkaVersionSync {
scriptContent = """
#!/bin/bash
set -e
set +x
set -o pipefail
set -u
sed -i -E "s/dokka ?= ?\"[0-9\.]+\"/dokka = \"%DOKKA_TEMPLATES_VERSION%\"/gi" ./gradle/libs.versions.toml
sed -i -E "s|mavenCentral|maven(url = \"$DOKKA_SPACE_REPO\")\nmavenCentral|" ./build.gradle.kts
sed -i -E "s|mavenCentral|maven(url = \"$DOKKA_SPACE_REPO\")\nmavenCentral|" ./repo/gradle-settings-conventions/settings.gradle.kts
sed -i -E "s|mavenCentral|maven(url = \"$DOKKA_SPACE_REPO\")\nmavenCentral|" ./repo/gradle-build-conventions/buildsrc-compat/build.gradle.kts
sed -i -E "s|mavenCentral|maven \{ url \"$DOKKA_SPACE_REPO\" \}\nmavenCentral|" ./settings.gradle
""".trimIndent()
}
script {
name = "build api reference"
scriptContent = """
Expand Down

0 comments on commit ae99378

Please sign in to comment.