-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
37 lines (26 loc) · 867 Bytes
/
build.gradle
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
plugins {
id "java"
}
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
tasks.jar {
archiveFileName.set("demo-plugin.zip")
}
tasks.register('runMCreatorWithPlugin', JavaExec) {
dependsOn jar
environment("MCREATOR_PLUGINS_FOLDER", file("./build/libs"))
environment("MCREATOR_PLUGINS_DEV", "")
jvmArgs '--add-opens', 'java.base/java.lang=ALL-UNNAMED'
classpath = project(':MCreator').sourceSets.main.runtimeClasspath
main = 'net.mcreator.Launcher'
workingDir = mcreator_path
}
subprojects { subproject ->
subproject.plugins.withType(JavaPlugin) {
test {
dependsOn rootProject.jar
environment("MCREATOR_PLUGINS_FOLDER", new File(rootProject.projectDir, "/build/libs"))
environment("MCREATOR_PLUGINS_DEV", "")
workingDir = mcreator_path
}
}
}