forked from kotest/kotest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
159 lines (133 loc) · 5.7 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
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() }
}
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") {
name = "SonatypeSnapshots2"
mavenContent { snapshotsOnly() }
}
//region Declare the Node.js & Yarn download repositories
// Workaround https://youtrack.jetbrains.com/issue/KT-68533/
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") }
}
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()
}
}
plugins {
id("com.gradle.develocity") version "3.17.5"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
include(
":kotest-common",
// 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 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-ktor",
":kotest-assertions:kotest-assertions-yaml",
":kotest-assertions:kotest-assertions-compiler",
":kotest-assertions:kotest-assertions-kotlinx-datetime",
// base classes for property testing, plus std lib generators
":kotest-property",
":kotest-property:kotest-permutation",
// 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-junitxml",
":kotest-extensions:kotest-extensions-htmlreporter",
":kotest-extensions:kotest-extensions-spring",
":kotest-extensions:kotest-extensions-allure",
// 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-core",
":kotest-tests:kotest-tests-concurrency-tests",
":kotest-tests:kotest-tests-concurrency-specs",
":kotest-tests:kotest-tests-config-classname",
":kotest-tests:kotest-tests-htmlreporter",
":kotest-tests:kotest-tests-junitxml",
":kotest-tests:kotest-tests-multiname-test-name-sysprop",
":kotest-tests:kotest-tests-power-assert",
":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-test-parallelism",
// ":kotest-tests:kotest-tests-js",
// BOM for whole kotest project
":kotest-bom",
)
develocity {
buildScan {
termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
termsOfUseAgree = "yes"
publishing.onlyIf { false }
}
}
//buildCache {
// val kotestUser = providers.gradleProperty("Kotest_GradleBuildCache_user").orNull
// val kotestPass = providers.gradleProperty("Kotest_GradleBuildCache_pass").orNull
// remote<HttpBuildCache> {
// url = uri("https://kotest-gradle.duckdns.org/cache")
// credentials {
// username = kotestUser
// password = kotestPass
// }
// isPush = kotestUser != null && kotestPass != null
// }
// local {
// // Disable local cache when running on GitHub Actions to reduce the size of GitHub Actions cache,
// // and to ensure that CI builds updates the remote cache.
// val isCI = System.getenv("CI") == "true"
// isEnabled = !isCI
// }
//}
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")