forked from JetBrains/kotlin-web-site
-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
237 changed files
with
12,069 additions
and
5,284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 12 additions & 18 deletions
30
.teamcity/builds/apiReferences/kotlinx/coroutines/KotlinxCoroutinesBuildApiReference.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,24 @@ | ||
package builds.apiReferences.kotlinx.coroutines | ||
|
||
import BuildParams.KOTLINX_COROUTINES_RELEASE_TAG | ||
import builds.apiReferences.dependsOnDokkaTemplate | ||
import builds.apiReferences.templates.BuildApiReference | ||
import jetbrains.buildServer.configs.kotlin.BuildType | ||
import jetbrains.buildServer.configs.kotlin.triggers.vcs | ||
|
||
object KotlinxCoroutinesBuildApiReference: BuildType({ | ||
name = "kotlinx.coroutines API reference" | ||
object KotlinxCoroutinesBuildApiReference : BuildType({ | ||
name = "kotlinx.coroutines API reference" | ||
|
||
templates(BuildApiReference) | ||
templates(BuildApiReference) | ||
|
||
params { | ||
param("release.tag", BuildParams.KOTLINX_COROUTINES_RELEASE_TAG) | ||
} | ||
|
||
vcs { | ||
root(builds.apiReferences.vcsRoots.KotlinxCoroutines) | ||
} | ||
params { | ||
param("release.tag", KOTLINX_COROUTINES_RELEASE_TAG) | ||
} | ||
|
||
triggers { | ||
vcs { | ||
branchFilter = "+:<default>" | ||
root(builds.apiReferences.vcsRoots.KotlinxCoroutines) | ||
} | ||
} | ||
|
||
dependencies { | ||
dependsOnDokkaTemplate(KotlinxCoroutinesPrepareDokkaTemplates) | ||
} | ||
}) | ||
dependencies { | ||
dependsOnDokkaTemplate(KotlinxCoroutinesPrepareDokkaTemplates) | ||
} | ||
}) |
62 changes: 25 additions & 37 deletions
62
.teamcity/builds/apiReferences/kotlinx/datetime/KotlinxDatetimeBuildApiReference.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,40 @@ | ||
package builds.apiReferences.kotlinx.datetime | ||
|
||
import BuildParams.KOTLINX_DATETIME_RELEASE_TAG | ||
import builds.apiReferences.dependsOnDokkaTemplate | ||
import builds.apiReferences.templates.BuildApiReference | ||
import builds.apiReferences.templates.buildDokkaHTML | ||
import builds.apiReferences.templates.scriptDropSnapshot | ||
import jetbrains.buildServer.configs.kotlin.BuildType | ||
import jetbrains.buildServer.configs.kotlin.buildSteps.gradle | ||
import jetbrains.buildServer.configs.kotlin.buildSteps.script | ||
import jetbrains.buildServer.configs.kotlin.triggers.vcs | ||
|
||
object KotlinxDatetimeBuildApiReference : BuildType({ | ||
name = "kotlinx-datetime API reference" | ||
name = "kotlinx-datetime API reference" | ||
|
||
artifactRules = "core/build/dokka/html/** => pages.zip" | ||
templates(BuildApiReference) | ||
|
||
steps { | ||
script { | ||
name = "Drop SNAPSHOT word for deploy" | ||
scriptContent = """ | ||
#!/bin/bash | ||
sed -i -E "s/versionSuffix=SNAPSHOT//gi" ./gradle.properties | ||
""".trimIndent() | ||
dockerImage = "debian" | ||
} | ||
gradle { | ||
name = "Build dokka html" | ||
tasks = ":kotlinx-datetime:dokkaHtml" | ||
useGradleWrapper = true | ||
} | ||
} | ||
|
||
params { | ||
param("release.tag", BuildParams.KOTLINX_DATETIME_RELEASE_TAG) | ||
param("teamcity.vcsTrigger.runBuildInNewEmptyBranch", "true") | ||
} | ||
artifactRules = "core/build/dokka/html/** => pages.zip" | ||
|
||
vcs { | ||
root(builds.apiReferences.vcsRoots.KotlinxDatetime) | ||
} | ||
params { | ||
param("release.tag", KOTLINX_DATETIME_RELEASE_TAG) | ||
} | ||
|
||
triggers { | ||
vcs { | ||
branchFilter = "+:<default>" | ||
root(builds.apiReferences.vcsRoots.KotlinxDatetime) | ||
} | ||
} | ||
|
||
requirements { | ||
doesNotContain("teamcity.agent.name", "windows") | ||
} | ||
dependencies { | ||
dependsOnDokkaTemplate(KotlinxDatetimePrepareDokkaTemplates, "core/dokka-templates") | ||
} | ||
|
||
dependencies { | ||
dependsOnDokkaTemplate(KotlinxDatetimePrepareDokkaTemplates, "core/dokka-templates") | ||
} | ||
steps { | ||
scriptDropSnapshot { | ||
scriptContent = """ | ||
#!/bin/bash | ||
sed -i -E "s/versionSuffix=SNAPSHOT//gi" ./gradle.properties | ||
""".trimIndent() | ||
} | ||
buildDokkaHTML { | ||
tasks = ":kotlinx-datetime:dokkaHtml" | ||
} | ||
} | ||
}) |
81 changes: 81 additions & 0 deletions
81
.teamcity/builds/apiReferences/kotlinx/metadataJvm/KotlinxMetadataJvmBuildApiReference.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
package builds.apiReferences.kotlinx.metadataJvm | ||
|
||
import BuildParams.KOTLINX_METADATA_JVM_RELEASE_TAG | ||
import builds.apiReferences.dependsOnDokkaTemplate | ||
import builds.apiReferences.templates.* | ||
import jetbrains.buildServer.configs.kotlin.BuildType | ||
import jetbrains.buildServer.configs.kotlin.buildSteps.script | ||
|
||
object KotlinxMetadataJvmBuildApiReference : BuildType({ | ||
name = "kotlinx-metadata-jvm API reference" | ||
|
||
templates(BuildApiReference) | ||
|
||
artifactRules = "libraries/kotlinx-metadata/jvm/build/dokka/** => pages.zip" | ||
|
||
params { | ||
param("release.tag", KOTLINX_METADATA_JVM_RELEASE_TAG) | ||
} | ||
|
||
triggers { | ||
vcsDefaultTrigger { | ||
enabled = false | ||
} | ||
} | ||
|
||
vcs { | ||
root(builds.apiReferences.vcsRoots.Kotlin) | ||
} | ||
|
||
steps { | ||
scriptDropSnapshot { | ||
enabled = false | ||
} | ||
buildDokkaHTML { | ||
enabled = false | ||
} | ||
scriptDokkaVersionSync { | ||
scriptContent = """ | ||
#!/bin/bash | ||
set -e | ||
set +x | ||
set -o pipefail | ||
set -u | ||
# update Dokka version | ||
sed -i -E "s/dokka ?= ?\"[0-9\.]+\"/dokka = \"%DOKKA_TEMPLATES_VERSION%\"/gi" ./gradle/libs.versions.toml | ||
# Define the replacement string | ||
replacement="maven(url = \"$DOKKA_SPACE_REPO\")\nmavenCentral" | ||
# List of kts files to apply the command on | ||
files=( | ||
"./build.gradle.kts" | ||
"./repo/gradle-settings-conventions/settings.gradle.kts" | ||
"./repo/gradle-build-conventions/buildsrc-compat/build.gradle.kts" | ||
) | ||
# Loop through the files and apply the sed command | ||
for file in "${'$'}{files[@]}"; do | ||
sed -i -E "s|mavenCentral|${'$'}replacement|" "${'$'}file" | ||
done | ||
# modify Groovy file | ||
sed -i -E "s|mavenCentral|maven \{ url \"$DOKKA_SPACE_REPO\" \}\nmavenCentral|" ./settings.gradle | ||
# add Dokka dev artifacts to the list of trusted ones | ||
sed -i -E "s|<trusted-artifacts>|<trusted-artifacts>\n<trust group=\"org.jetbrains.dokka\" />\n|" ./gradle/verification-metadata.xml | ||
""".trimIndent() | ||
} | ||
script { | ||
name = "build api reference" | ||
scriptContent = """ | ||
./gradlew :kotlinx-metadata-jvm:dokkaHtml -PkotlinxMetadataDeployVersion=${KOTLINX_METADATA_JVM_RELEASE_TAG} | ||
""".trimIndent() | ||
} | ||
} | ||
|
||
dependencies { | ||
dependsOnDokkaTemplate(KotlinxMetadataJvmPrepareDokkaTemplates, "libraries/kotlinx-metadata/jvm/dokka-templates") | ||
} | ||
}) |
20 changes: 20 additions & 0 deletions
20
.teamcity/builds/apiReferences/kotlinx/metadataJvm/KotlinxMetadataJvmBuildSearchIndex.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package builds.apiReferences.kotlinx.metadataJvm | ||
|
||
import builds.apiReferences.dependsOnDokkaPagesJson | ||
import builds.apiReferences.templates.BuildApiReferenceSearchIndex | ||
import jetbrains.buildServer.configs.kotlin.BuildType | ||
|
||
object KotlinxMetadataJvmBuildSearchIndex: BuildType({ | ||
name = "Build search index for kotlinx-metadata-jvm" | ||
|
||
templates(BuildApiReferenceSearchIndex) | ||
|
||
params { | ||
param("env.ALGOLIA_INDEX_NAME", "kotlinx-metadata-jvm") | ||
param("env.API_REFERENCE_URL", "/api/kotlinx-metadata-jvm") | ||
} | ||
|
||
dependencies { | ||
dependsOnDokkaPagesJson(KotlinxMetadataJvmBuildApiReference) | ||
} | ||
}) |
14 changes: 14 additions & 0 deletions
14
...mcity/builds/apiReferences/kotlinx/metadataJvm/KotlinxMetadataJvmPrepareDokkaTemplates.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package builds.apiReferences.kotlinx.metadataJvm | ||
|
||
import builds.apiReferences.templates.PrepareDokkaTemplate | ||
import jetbrains.buildServer.configs.kotlin.BuildType | ||
|
||
object KotlinxMetadataJvmPrepareDokkaTemplates: BuildType({ | ||
name = "Prepare dokka templates for kotlinx-metadata-jvm" | ||
|
||
templates(PrepareDokkaTemplate) | ||
|
||
params { | ||
param("env.ALGOLIA_INDEX_NAME", "kotlinx-metadata-jvm") | ||
} | ||
}) |
26 changes: 10 additions & 16 deletions
26
...mcity/builds/apiReferences/kotlinx/serialization/KotlinxSerializationBuildApiReference.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,24 @@ | ||
package builds.apiReferences.kotlinx.serialization | ||
|
||
import BuildParams.KOTLINX_SERIALIZATION_RELEASE_TAG | ||
import builds.apiReferences.dependsOnDokkaTemplate | ||
import builds.apiReferences.templates.BuildApiReference | ||
import jetbrains.buildServer.configs.kotlin.BuildType | ||
import jetbrains.buildServer.configs.kotlin.triggers.vcs | ||
|
||
object KotlinxSerializationBuildApiReference : BuildType({ | ||
name = "kotlinx.serialization API reference" | ||
name = "kotlinx.serialization API reference" | ||
|
||
templates(BuildApiReference) | ||
templates(BuildApiReference) | ||
|
||
params { | ||
param("release.tag", BuildParams.KOTLINX_SERIALIZATION_RELEASE_TAG) | ||
} | ||
|
||
vcs { | ||
root(builds.apiReferences.vcsRoots.KotlinxSerialization) | ||
} | ||
params { | ||
param("release.tag", KOTLINX_SERIALIZATION_RELEASE_TAG) | ||
} | ||
|
||
triggers { | ||
vcs { | ||
branchFilter = "+:<default>" | ||
root(builds.apiReferences.vcsRoots.KotlinxSerialization) | ||
} | ||
} | ||
|
||
dependencies { | ||
dependsOnDokkaTemplate(KotlinxSerializationPrepareDokkaTemplates) | ||
} | ||
dependencies { | ||
dependsOnDokkaTemplate(KotlinxSerializationPrepareDokkaTemplates) | ||
} | ||
}) |
Oops, something went wrong.