-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
54 lines (44 loc) · 1.12 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
@file:Suppress("UnstableApiUsage")
pluginManagement {
repositories {
gradlePluginPortal()
mavenLocal()
mavenCentral()
}
// val testVersion = extra["test.version"].toString()
//
// 1. Use individual plugin marker artifact
//
// plugins {
// listOf("repos", "root", "kotlin.jvm", "kotlin.mpp").forEach {
// id("dev.suresh.plugin.$it") version testVersion
// }
// }
// 2. Or directly use the main plugin artifact
//
// resolutionStrategy {
// eachPlugin {
// if (requested.id.id.startsWith("dev.suresh.plugin")) {
// useModule("dev.suresh.build:plugins:$testVersion")
// }
// }
// }
}
dependencyResolutionManagement {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
repositoriesMode = RepositoriesMode.PREFER_SETTINGS
versionCatalogs {
create("blibs") {
from("dev.suresh.build:catalog:+")
version("java", "21")
}
}
}
plugins { id("dev.suresh.plugin.repos") version "+" }
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
rootProject.name = "sandbox"