Split source preprocessor into separate gradle plugin

This commit is contained in:
Jonas Herzig
2019-04-20 20:26:36 +02:00
parent 73597dd031
commit 9968f81073
5 changed files with 18 additions and 220 deletions

View File

@@ -59,17 +59,6 @@ def gitDescribe() {
}
}
apply from: 'versions/preprocessor.gradle'
task setCoreVersion() {
doLast {
def vars = [MC: project.mcVersion as int, DEV_ENV: 1]
project.convertTree(vars, 'src/main/java')
project.convertTree(vars, 'src/main/resources')
project.file('versions/core/mcVersion').write(vars.MC.toString())
}
}
def command(Object...cmd) {
def stdout = new ByteArrayOutputStream()
exec {