forked from kotest/kotest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
168 lines (138 loc) · 6.02 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
rootProject.name = "kotest"
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
}
}
@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositoriesMode = RepositoriesMode.PREFER_SETTINGS
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots/") {
name = "SonatypeSnapshots"
mavenContent { snapshotsOnly() }
}
//region workaround for https://youtrack.jetbrains.com/issue/KT-51379
// FIXME remove when updating to Kotlin 2.0
ivy("https://download.jetbrains.com/kotlin/native/builds") {
name = "KotlinNative"
patternLayout {
listOf(
"macos-x86_64",
"macos-aarch64",
"osx-x86_64",
"osx-aarch64",
"linux-x86_64",
"windows-x86_64",
).forEach { os ->
listOf("dev", "releases").forEach { stage ->
artifact("$stage/[revision]/$os/[artifact]-[revision].[ext]")
}
}
}
content { includeModuleByRegex(".*", ".*kotlin-native-prebuilt.*") }
metadataSources { artifact() }
}
//endregion
//region Declare the Node.js & Yarn download repositories
// Workaround https://youtrack.jetbrains.com/issue/KT-68533/
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") }
}
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") }
}
//endregion
mavenLocal()
}
}
include(
":kotest-common",
// defines data classes and the spec styles; all classes needed to define specs/testcases live here
":kotest-framework:kotest-framework-api",
// async / parallel / concurrency / non-deterministic test helpers
":kotest-framework:kotest-framework-concurrency",
// used to discovery specs from the classpath at runtime
// brings in the API dependency for required data types
":kotest-framework:kotest-framework-discovery",
// contains the execution engine implementation for jvm, js, native
// brings in the API dependency
":kotest-framework:kotest-framework-engine",
// a fat jar that includes everything needed to execute the engine as a standalone program
":kotest-framework:kotest-framework-standalone",
// compiler plugins to integrate tests with the engine
":kotest-framework:kotest-framework-multiplatform-plugin-embeddable-compiler",
":kotest-framework:kotest-framework-multiplatform-plugin-legacy-native",
":kotest-framework:kotest-framework-multiplatform-plugin-gradle",
// contains data driven testing that builds on top of the kotest test framework
":kotest-framework:kotest-framework-datatest",
// contains the matcher interface and is intended as a lightweight dependency for library authors
// to depend on when writing matcher libraries
":kotest-assertions:kotest-assertions-api",
// contains basic assertion building block such as shouldBe which are used by both
// framework and assertion libraries;
// no user should need to depend on this
":kotest-assertions:kotest-assertions-shared",
// the core assertions that cover things like collections, strings, etc
// users should depend on this if they want to use kotest assertions in tests
":kotest-assertions:kotest-assertions-core",
":kotest-assertions:kotest-assertions-json",
":kotest-assertions:kotest-assertions-sql",
// base classes for property testing, plus std lib generators
":kotest-property",
// contains extensions for property testing that build on the kotest test framework
":kotest-property:kotest-property-lifecycle",
// support for executing tests via junit platform through gradle
// this will also bring in the required libs for the intellij plugin
":kotest-runner:kotest-runner-junit5",
":kotest-runner:kotest-runner-junit4",
":kotest-extensions",
":kotest-extensions:kotest-extensions-blockhound",
":kotest-extensions:kotest-extensions-http",
":kotest-extensions:kotest-extensions-junitxml",
":kotest-extensions:kotest-extensions-htmlreporter",
// allows overriding the .now() functionality on time classes
":kotest-extensions:kotest-extensions-now",
// extensions that adapt junit extensions into kotest extensions
":kotest-extensions:kotest-extensions-junit5",
// the tests modules each test a piece of functionality
// it is useful to have separate modules so each can set their own project config that
// may be required as part of the tests
":kotest-tests:kotest-tests-autoscan",
":kotest-tests:kotest-tests-core",
":kotest-tests:kotest-tests-concurrency-tests",
":kotest-tests:kotest-tests-concurrency-specs",
":kotest-tests:kotest-tests-junitxml",
":kotest-tests:kotest-tests-htmlreporter",
":kotest-tests:kotest-tests-multipleconfig",
":kotest-tests:kotest-tests-test-parallelism",
":kotest-tests:kotest-tests-spec-parallelism",
":kotest-tests:kotest-tests-tagextension",
":kotest-tests:kotest-tests-timeout-project",
":kotest-tests:kotest-tests-timeout-sysprop",
":kotest-tests:kotest-tests-multiname-test-name-sysprop",
":kotest-tests:kotest-tests-native",
// ":kotest-tests:kotest-tests-js",
":kotest-tests:kotest-tests-config-classname",
// BOM for whole kotest project
":kotest-bom",
)
plugins {
id("com.gradle.develocity") version "3.17.4"
}
develocity {
buildScan {
termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
termsOfUseAgree = "yes"
publishing.onlyIf { false }
}
}
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")