aboutsummaryrefslogtreecommitdiff
path: root/settings.gradle.kts
diff options
context:
space:
mode:
authoraSemy <897017+aSemy@users.noreply.github.com>2023-03-17 15:27:03 +0100
committerGitHub <noreply@github.com>2023-03-17 15:27:03 +0100
commit8bb4f4a86b131e9740a8074cb5775930f8280019 (patch)
tree2fea9f93d621d1a2c72129358a45a565cca68e6c /settings.gradle.kts
parent2a3917b7eb70b39360893b61f5cd7f580c41cfda (diff)
downloaddokka-8bb4f4a86b131e9740a8074cb5775930f8280019.tar.gz
dokka-8bb4f4a86b131e9740a8074cb5775930f8280019.tar.bz2
dokka-8bb4f4a86b131e9740a8074cb5775930f8280019.zip
Introduce Gradle Version Catalog with type-safe project dependencies (#2884)
Diffstat (limited to 'settings.gradle.kts')
-rw-r--r--settings.gradle.kts101
1 files changed, 54 insertions, 47 deletions
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 9794dd18..82b2093e 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -1,5 +1,58 @@
+@file:Suppress("UnstableApiUsage")
+
rootProject.name = "dokka"
+pluginManagement {
+ includeBuild("build-logic")
+
+ repositories {
+ gradlePluginPortal()
+ mavenCentral()
+ }
+}
+
+dependencyResolutionManagement {
+
+ // subproject :kotlin-analysis:intellij-dependency requires specific repositories that should not be used in
+ // the other subprojects, so use PREFER_PROJECT to allow subprojects to override the repositories defined here.
+ repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
+
+ repositories {
+ mavenCentral()
+ google()
+
+ // 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://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://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") }
+ }
+ }
+}
+
+plugins {
+ `gradle-enterprise`
+}
+
include(
":core",
":core:test-api",
@@ -39,20 +92,10 @@ include(
":mkdocs",
)
-includeBuild("build-logic")
val isCiBuild = System.getenv("GITHUB_ACTIONS") != null || System.getenv("TEAMCITY_VERSION") != null
-pluginManagement {
- repositories {
- gradlePluginPortal()
- mavenCentral()
- }
-}
-plugins {
- `gradle-enterprise`
-}
gradleEnterprise {
buildScan {
@@ -62,41 +105,5 @@ gradleEnterprise {
}
}
-@Suppress("UnstableApiUsage")
-dependencyResolutionManagement {
-
- // subproject :kotlin-analysis:intellij-dependency requires specific repositories that should not be used in
- // the other subprojects, so use PREFER_PROJECT to allow subprojects to override the repositories defined here.
- repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
-
- repositories {
- mavenCentral()
- google()
-
- // 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://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://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") }
- }
- }
-}
+enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")