-
Notifications
You must be signed in to change notification settings - Fork 410
/
settings.gradle.kts
138 lines (123 loc) · 5.44 KB
/
settings.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
rootProject.name = "dokka"
pluginManagement {
includeBuild("build-logic")
includeBuild("build-settings-logic")
repositories {
maven("https://cache-redirector.jetbrains.com/repo.maven.apache.org/maven2") {
name = "MavenCentral-JBCache"
}
maven("https://cache-redirector.jetbrains.com/plugins.gradle.org/m2") {
name = "GradlePluginPortal-JBCache"
}
}
}
dependencyResolutionManagement {
@Suppress("UnstableApiUsage")
repositories {
maven("https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-ide") {
name = "KotlinIde-JBCache"
}
maven("https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-ide-plugin-dependencies") {
name = "KotlinIdePluginDependencies-JBCache"
}
maven("https://cache-redirector.jetbrains.com/intellij-repository/releases") {
name = "IjRepository-JBCache"
}
maven("https://cache-redirector.jetbrains.com/intellij-third-party-dependencies") {
name = "IjThirdParty-JBCache"
}
maven("https://cache-redirector.jetbrains.com/repo.maven.apache.org/maven2") {
name = "MavenCentral-JBCache"
}
maven("https://cache-redirector.jetbrains.com/dl.google.com.android.maven2") {
name = "Google-JBCache"
}
//region Declare the Node.js & Yarn download repositories
// Required by Gradle Node plugin: https://github.com/node-gradle/gradle-node-plugin/blob/3.5.1/docs/faq.md#is-this-plugin-compatible-with-centralized-repositories-declaration
exclusiveContent {
forRepository {
ivy("https://cache-redirector.jetbrains.com/nodejs.org/dist/") {
name = "Node Distributions at $url"
patternLayout { artifact("v[revision]/[artifact](-v[revision]-[classifier]).[ext]") }
metadataSources { artifact() }
content { includeModule("org.nodejs", "node") }
}
}
filter { includeGroup("org.nodejs") }
}
exclusiveContent {
forRepository {
ivy("https://cache-redirector.jetbrains.com/github.com/yarnpkg/yarn/releases/download") {
name = "Yarn Distributions at $url"
patternLayout { artifact("v[revision]/[artifact](-v[revision]).[ext]") }
metadataSources { artifact() }
content { includeModule("com.yarnpkg", "yarn") }
}
}
filter { includeGroup("com.yarnpkg") }
}
//endregion
}
}
plugins {
id("dokkasettings")
}
includeBuild("dokka-integration-tests")
includeBuild("dokka-runners/dokka-gradle-plugin")
includeBuild("dokka-runners/runner-maven-plugin")
includeBuild("dokka-runners/runner-cli")
include(
":docs-developer",
":dokka-subprojects",
":dokka-subprojects:analysis-java-psi",
":dokka-subprojects:analysis-kotlin-api",
":dokka-subprojects:analysis-kotlin-descriptors",
":dokka-subprojects:analysis-kotlin-descriptors-compiler",
":dokka-subprojects:analysis-kotlin-descriptors-ide",
":dokka-subprojects:analysis-kotlin-symbols",
":dokka-subprojects:analysis-markdown-jb",
":dokka-subprojects:core",
":dokka-subprojects:core-content-matcher-test-utils",
":dokka-subprojects:core-test-api",
":dokka-subprojects:plugin-all-modules-page",
":dokka-subprojects:plugin-android-documentation",
":dokka-subprojects:plugin-base",
":dokka-subprojects:plugin-base-frontend",
":dokka-subprojects:plugin-base-test-utils",
":dokka-subprojects:plugin-gfm",
":dokka-subprojects:plugin-gfm-template-processing",
":dokka-subprojects:plugin-javadoc",
":dokka-subprojects:plugin-jekyll",
":dokka-subprojects:plugin-jekyll-template-processing",
":dokka-subprojects:plugin-kotlin-as-java",
":dokka-subprojects:plugin-mathjax",
":dokka-subprojects:plugin-templating",
":dokka-subprojects:plugin-versioning",
)
// This hack is required for included build support.
// The name of the published artifact is `dokka-core`, but the module is named `core`.
// For some reason, dependency substitution doesn't work in this case. Maybe we fall under one of the unsupported
// cases: https://docs.gradle.org/current/userguide/composite_builds.html#included_build_substitution_limitations.
// Should no longer be a problem once Dokka's artifacts are relocated, see #3245.
project(":dokka-subprojects:core").name = "dokka-core"
project(":dokka-subprojects:core-test-api").name = "dokka-test-api"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
// OVERWRITING CATALOG VERSIONS
// for testing against the latest dev version of Analysis API
// currently, Analysis API is used only in the analysis-kotlin-symbols project
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
val kotlinCompilerK2Version = providers.gradleProperty(
"org.jetbrains.dokka.build.overrideAnalysisAPIVersion"
).orNull
if (kotlinCompilerK2Version != null) {
logger.lifecycle("Using the override version $kotlinCompilerK2Version of Analysis API")
version("kotlin-compiler-k2", kotlinCompilerK2Version)
}
}
}
}