Add new args (mkdir, rmold and copy)

This commit is contained in:
S.B99 2019-08-07 13:35:23 -04:00 committed by S-B99
parent 3564cd4a89
commit 9012823d40
1 changed files with 35 additions and 1 deletions

View File

@ -1,3 +1,37 @@
// debugging
task testprint {
doLast {
println 'testuwu'
}
}
// copy
// make folders for copy
task mkdir {
doLast {
mkdir "../../.minecraft/mods/1.12.2"
}
}
// delete old versions
task rmold(type: Delete) {
delete fileTree("../../.minecraft/mods/1.12.2").matching {
include "KAMI*.jar"
}
}
// copy file
task copy(type: Copy) {
from file("build/libs/KAMI-b9-release.jar")
into file("../../.minecraft/mods/1.12.2/")
}
// forge's stuff
buildscript {
repositories {
jcenter()