mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-12 00:07:52 +00:00
18 lines
602 B
Groovy
18 lines
602 B
Groovy
sourceSets.main {
|
|
java.srcDir("ZenScript/src/main/java")
|
|
}
|
|
|
|
task initZenScript(type: Exec) {
|
|
description = "Updates (and inits) git submodules"
|
|
group = "Build Setup"
|
|
commandLine("git", "submodule", "update", "--init", "--recursive", "--remote")
|
|
|
|
// // Checkout a specific commit. Otherwise the build will fail!
|
|
// commandLine("git", "--git-dir=\"ZenScript/.git\"", "checkout", "e7144825")
|
|
}
|
|
|
|
tasks.setupCIWorkspace.dependsOn initZenScript
|
|
tasks.setupDevWorkspace.dependsOn initZenScript
|
|
tasks.setupDecompWorkspace.dependsOn initZenScript
|
|
tasks.compileJava.dependsOn initZenScript
|