generated from CleanroomMC/TemplateDevEnv
-
Notifications
You must be signed in to change notification settings - Fork 28
/
addon.gradle
41 lines (36 loc) · 1.21 KB
/
addon.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
38
39
40
41
// additional gradle configuration
minecraft {
injectedTags.put 'GROOVY_VERSION', groovy_version
if (project.debug_use_examples_folder.toBoolean()) {
extraRunJvmArguments.add('-Dgroovyscript.use_examples_folder=true')
}
if (project.debug_run_ls.toBoolean()) {
extraRunJvmArguments.add('-Dgroovyscript.run_ls=true')
}
if (project.debug_generate_examples.toBoolean()) {
extraRunJvmArguments.add('-Dgroovyscript.generate_examples=true')
}
if (project.debug_generate_wiki.toBoolean()) {
extraRunJvmArguments.add('-Dgroovyscript.generate_wiki=true')
}
if (project.debug_generate_and_crash.toBoolean()) {
extraRunJvmArguments.add('-Dgroovyscript.generate_and_crash=true')
}
if (project.debug_log_missing_lang_keys.toBoolean()) {
extraRunJvmArguments.add('-Dgroovyscript.log_missing_lang_keys=true')
}
//extraTweakClasses << "${modGroup}.LaunchTweaker"
}
configurations {
specialEmbed
implementation.extendsFrom(specialEmbed)
}
jar {
from provider {
configurations.specialEmbed.collect {
it.isDirectory() ? it : zipTree(it)
}
}, {
exclude 'META-INF', 'META-INF/**', 'about*.html'
}
}