Split source preprocessor into separate gradle plugin
This commit is contained in:
11
build.gradle
11
build.gradle
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user