generated from MineBuilders/allaymc-kotlin-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
49 lines (45 loc) · 1.49 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
rootProject.name = "allaymc-kotlinx"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
repositories {
google {
@Suppress("UnstableApiUsage")
mavenContent {
includeGroupAndSubgroups("androidx")
includeGroupAndSubgroups("com.android")
includeGroupAndSubgroups("com.google")
}
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
@Suppress("UnstableApiUsage")
repositories {
google {
mavenContent {
includeGroupAndSubgroups("androidx")
includeGroupAndSubgroups("com.android")
includeGroupAndSubgroups("com.google")
}
}
mavenCentral()
maven("https://jitpack.io/")
maven("https://www.jitpack.io/")
maven("https://repo.opencollab.dev/maven-releases/")
maven("https://repo.opencollab.dev/maven-snapshots/")
maven("https://storehouse.okaeri.eu/repository/maven-public/")
}
}
val sharedDeps = arrayOf("core", "compose")
include(":core")
include(":plugin")
include(":example")
sharedDeps.forEach {
val generated = arrayOf("plugin", "build", "plugin-generated-$it")
File(File(rootProject.projectDir, generated.joinToString("/"))
.apply { mkdirs() }, "build.gradle.kts")
.writeText("plugins { alias(libs.plugins.kotlin.jvm) }")
include(":plugin:$it", ":" + generated.joinToString(":"))
}