diff options
| author | basdxz <tudurap.com@gmail.com> | 2021-01-06 12:24:45 +0000 |
|---|---|---|
| committer | basdxz <tudurap.com@gmail.com> | 2021-01-06 12:24:45 +0000 |
| commit | 969a7b53cd043492803bb5f6636042f7ce0b21a2 (patch) | |
| tree | 9e2c7c1c4e9d87580e4778dd23e6e567c90611e3 | |
| parent | eb89cfd8cb58e621e247afa594c80359c7ec96fa (diff) | |
| download | GT5-Unofficial-969a7b53cd043492803bb5f6636042f7ce0b21a2.tar.gz GT5-Unofficial-969a7b53cd043492803bb5f6636042f7ce0b21a2.tar.bz2 GT5-Unofficial-969a7b53cd043492803bb5f6636042f7ce0b21a2.zip | |
Add submodule updates
| -rw-r--r-- | build.gradle.kts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 7821683664..44d237d082 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -215,6 +215,28 @@ tasks.withType<Jar> { } } +//Load AVRcore +val submodulesUpdate by tasks.creating(Exec::class) { + this.description = "Updates (and inits) git submodules" + this.group = "Build Setup" + this.commandLine("git", "submodule", "update", "--init", "--recursive", "--remote") +} +tasks.named("setupCIWorkspace") { + dependsOn(":submodulesUpdate") +} +tasks.named("setupDevWorkspace") { + dependsOn(":submodulesUpdate") +} +tasks.named("setupDecompWorkspace") { + dependsOn(":submodulesUpdate") +} +tasks.named("compileJava") { + dependsOn(":submodulesUpdate") +} +tasks.named("sourceMainJava") { + dependsOn(":submodulesUpdate") +} + tasks.jar { //Needed for access transformer which allows nerfing hardness of blocks this.manifest.attributes( |
