-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
49 lines (41 loc) · 1.21 KB
/
build.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
import net.neoforged.gradle.dsl.common.runs.run.Run
plugins {
alias(neoforged.plugins.userdev).apply(false)
}
subprojects {
configurations {
val minecraft = create("minecraft") {
isCanBeConsumed = false
isCanBeResolved = true
// N.B. this is important until https://github.com/neoforged/FancyModLoader/issues/124 is resolved
isTransitive = false
}
val mod = create("mod") {
isCanBeConsumed = false
isCanBeResolved = true
isTransitive = false
}
register("compileClasspath") {
extendsFrom(minecraft)
extendsFrom(mod)
}
register("runtimeClasspath") {
extendsFrom(minecraft)
}
}
}
subprojects {
afterEvaluate {
extensions.configure<JavaPluginExtension> {
// toolchain.vendor.set(JvmVendorSpec)
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
this.extensions.configure<NamedDomainObjectContainer<Run>> {
configureEach {
dependencies {
runtime(configurations.getByName("mod"))
}
}
}
}
}