forked from gurkenlabs/litiengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
118 lines (106 loc) · 4.21 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
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
enableFeaturePreview("VERSION_CATALOGS")
rootProject.name = "litiengine"
pluginManagement {
plugins {
fun idv(id: String, key: String = id) = id(id) version extra["$key.version"].toString()
idv("com.stehno.natives")
idv("org.sonarqube")
idv("org.beryx.runtime")
idv("com.github.vlsi.crlf", "com.github.vlsi.vlsi-release-plugins")
idv("com.github.vlsi.gradle-extensions", "com.github.vlsi.vlsi-release-plugins")
idv("com.github.vlsi.license-gather", "com.github.vlsi.vlsi-release-plugins")
}
}
dependencyResolutionManagement {
versionCatalogs {
fun VersionCatalogBuilder.versionId(id: String) =
version(id, extra["$id.version"].toString())
create("libs") {
versionId("darklaf")
versionId("jinput")
versionId("soundlibs.jorbis")
versionId("soundlibs.tritonus")
versionId("soundlibs.vorbisspi")
versionId("soundlibs.mp3spi")
versionId("steamworks")
versionId("javax.activation")
versionId("jakarta.xml")
alias("darklaf-core").to("com.github.weisj", "darklaf-core")
.versionRef("darklaf")
alias("jinput-core").to("net.java.jinput", "jinput")
.versionRef("jinput")
alias("jinput-natives").to("net.java.jinput", "jinput")
.version("${extra["jinput.version"]}:natives-all")
bundle(
"jinput",
listOf("jinput-core", "jinput-natives")
)
alias("soundlibs-jorbis").to("com.googlecode.soundlibs", "jorbis")
.versionRef("soundlibs.jorbis")
alias("soundlibs-tritonus").to("com.googlecode.soundlibs", "tritonus-share")
.versionRef("soundlibs.tritonus")
alias("soundlibs-vorbisspi").to("com.googlecode.soundlibs", "vorbisspi")
.versionRef("soundlibs.vorbisspi")
alias("soundlibs-mp3spi").to("com.googlecode.soundlibs", "mp3spi")
.versionRef("soundlibs.mp3spi")
bundle(
"soundlibs",
listOf(
"soundlibs-jorbis",
"soundlibs-tritonus",
"soundlibs-vorbisspi",
"soundlibs-mp3spi"
)
)
alias("steamworks").to("com.code-disaster.steamworks4j", "steamworks4j")
.versionRef("steamworks")
alias("javax-activation").to("javax.activation", "javax.activation-api")
.versionRef("javax.activation")
alias("xml-api").to("jakarta.xml.bind", "jakarta.xml.bind-api")
.versionRef("jakarta.xml")
alias("xml-runtime-core").to("com.sun.xml.bind", "jaxb-core")
.versionRef("jakarta.xml")
alias("xml-runtime-impl").to("com.sun.xml.bind", "jaxb-impl")
.versionRef("jakarta.xml")
bundle(
"xml-runtime",
listOf("xml-runtime-core", "xml-runtime-impl")
)
}
create("testLibs") {
versionId("junit")
versionId("mockito")
alias("junit-api").to("org.junit.jupiter", "junit-jupiter-api")
.versionRef("junit")
alias("junit-params").to("org.junit.jupiter", "junit-jupiter-params")
.versionRef("junit")
alias("junit-engine").to("org.junit.jupiter", "junit-jupiter-engine")
.versionRef("junit")
alias("mockito-core").to("org.mockito", "mockito-core")
.versionRef("mockito")
alias("mockito-inline").to("org.mockito", "mockito-inline")
.versionRef("mockito")
bundle(
"mockito",
listOf("mockito-core", "mockito-inline")
)
}
}
}
include(
"core",
"utiliti",
"shared"
)
for (p in rootProject.children) {
if (p.children.isEmpty()) {
// Rename leaf projects only
p.name = "${rootProject.name}-${p.name}"
}
}
gradle.projectsLoaded {
rootProject.allprojects {
buildDir = File("../build/${project.name}")
}
}