-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle.kts
74 lines (63 loc) · 1.57 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
@file:Suppress(
"UnstableApiUsage",
"DSL_SCOPE_VIOLATION",
)
pluginManagement {
repositories {
maven("https://gradle.pkg.st/")
maven("https://maven.pkg.st/")
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("build.less") version "1.0.0-rc2"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
id("com.gradle.enterprise") version("3.15.1")
id("com.gradle.common-custom-user-data-gradle-plugin") version("1.12")
id("io.micronaut.platform.catalog") version(extra.properties["micronautVersion"] as String)
}
val implementations = listOf(
"mysqlj",
"h2", // for testing
)
val integrations = listOf(
"graalvm",
"kotlin",
"micronaut",
)
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
dependencyResolutionManagement {
repositoriesMode.set(
RepositoriesMode.FAIL_ON_PROJECT_REPOS
)
repositories {
maven("https://gradle.pkg.st/")
maven("https://maven.pkg.st/")
mavenCentral()
gradlePluginPortal()
}
}
rootProject.name = "planetscale-connector-j"
fun subproject(name: String) {
include(":subprojects:$name")
}
listOf(
"catalog",
"core-api",
"driver",
).plus(implementations.map {
"impl-$it"
}).plus(integrations.map {
"integration-$it"
}).forEach(
::subproject
)
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
enableFeaturePreview("GROOVY_COMPILATION_AVOIDANCE")