diff options
author | Adam <897017+aSemy@users.noreply.github.com> | 2023-10-20 00:39:12 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-19 13:39:12 +0200 |
commit | 35d15601f2d129a7d3db67dd9e2f4c41c87ef083 (patch) | |
tree | f9098cb5b79fc31b4a393347f5cebcf9d87dd139 /dokka-runners/dokkatoo/settings.gradle.kts | |
parent | 8016c1face1283952e228aee348487bf0421ab90 (diff) | |
download | dokka-35d15601f2d129a7d3db67dd9e2f4c41c87ef083.tar.gz dokka-35d15601f2d129a7d3db67dd9e2f4c41c87ef083.tar.bz2 dokka-35d15601f2d129a7d3db67dd9e2f4c41c87ef083.zip |
Contribute Dokkatoo (#3188)
Diffstat (limited to 'dokka-runners/dokkatoo/settings.gradle.kts')
-rw-r--r-- | dokka-runners/dokkatoo/settings.gradle.kts | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/dokka-runners/dokkatoo/settings.gradle.kts b/dokka-runners/dokkatoo/settings.gradle.kts new file mode 100644 index 00000000..497f3e34 --- /dev/null +++ b/dokka-runners/dokkatoo/settings.gradle.kts @@ -0,0 +1,95 @@ +rootProject.name = "dokkatoo" + +pluginManagement { + repositories { + mavenCentral() + gradlePluginPortal() + } +} + +@Suppress("UnstableApiUsage") +dependencyResolutionManagement { + + repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS) + + repositories { + mavenCentral() + google() + + maven("https://www.jetbrains.com/intellij-repository/snapshots") + maven("https://www.jetbrains.com/intellij-repository/releases") + maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-ide") + maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-ide-plugin-dependencies") + maven("https://cache-redirector.jetbrains.com/intellij-dependencies") + maven("https://www.myget.org/F/rd-snapshots/maven/") + + ivy("https://github.com/") { + name = "GitHub Release" + patternLayout { + artifact("[organization]/[module]/archive/[revision].[ext]") + artifact("[organization]/[module]/archive/refs/tags/[revision].[ext]") + artifact("[organization]/[module]/archive/refs/tags/v[revision].[ext]") + } + metadataSources { artifact() } + } + } +} + +include( + ":examples", + + ":modules:docs", + ":modules:dokkatoo-plugin", + ":modules:dokkatoo-plugin-integration-tests", +) + + +enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") +enableFeaturePreview("STABLE_CONFIGURATION_CACHE") + + +//if (file("./examples/build/tmp/prepareDokkaSource").exists()) { +// includeBuild("./examples/build/tmp/prepareDokkaSource") +//} + +// can only include one example project at a time https://github.com/gradle/gradle/issues/23939 +//@formatter:off +//includeBuild(file("./examples/multiplatform-example/dokkatoo" )) { name = "multiplatform-example" } +//includeBuild(file("./examples/kotlin-as-java-example/dokkatoo" )) { name = "kotlin-as-java-example" } +//includeBuild(file("./examples/versioning-multimodule-example/dokkatoo" )) { name = "versioning-multimodule-example" } +//includeBuild(file("./examples/custom-format-example/dokkatoo" )) { name = "custom-format-example" } +//includeBuild(file("./examples/gradle-example/dokkatoo" )) { name = "gradle-example" } +//includeBuild(file("./examples/library-publishing-example/dokkatoo" )) { name = "library-publishing-example" } +//includeBuild(file("./examples/multimodule-example/dokkatoo" )) { name = "multimodule-example" } +//includeBuild(file("./modules/dokkatoo-plugin-integration-tests/projects/it-multimodule-1/dokkatoo" )) { name = "it-multimodule-1" } +//includeBuild(file("./modules/dokkatoo-plugin-integration-tests/projects/it-multimodule-0/dokkatoo" )) { name = "it-multimodule-0" } +//includeBuild(file("./modules/dokkatoo-plugin-integration-tests/projects/it-collector-0/dokkatoo" )) { name = "it-collector-0" } +//includeBuild(file("./modules/dokkatoo-plugin-integration-tests/projects/it-multimodule-versioning-0/dokkatoo" )) { name = "it-multimodule-versioning-0" } +//includeBuild(file("./modules/dokkatoo-plugin-integration-tests/projects/it-android-0/dokkatoo" )) { name = "it-android-0" } +//includeBuild(file("./modules/dokkatoo-plugin-integration-tests/projects/it-basic/dokkatoo" )) { name = "it-basic" } +//includeBuild(file("./modules/dokkatoo-plugin-integration-tests/projects/it-multiplatform-0/dokkatoo" )) { name = "it-multiplatform-0" } +//includeBuild(file("./modules/dokkatoo-plugin-integration-tests/projects/it-js-ir-0/dokkatoo" )) { name = "it-js-ir-0" } +//includeBuild(file("./modules/dokkatoo-plugin-integration-tests/projects/it-basic-groovy/dokkatoo" )) { name = "it-basic-groovy" } +//@formatter:on + +//listOf( +// "examples", +// "modules/dokkatoo-plugin-integration-tests/projects", +//).forEach { exampleProjectDir -> +// file(exampleProjectDir) +// .walk() +// .filter { +// it.isDirectory +// && it.name == "dokkatoo" +// && ( +// it.resolve("settings.gradle.kts").exists() +// || +// it.resolve("settings.gradle").exists() +// ) +// }.forEach { file -> +// includeBuild(file) { +// name = file.parentFile.name +// println("$file $name") +// } +// } +//} |