Arclight/build.gradle
2023-06-08 10:28:31 +08:00

38 lines
827 B
Groovy

allprojects {
group 'io.izzel.arclight'
version '1.0.5'
def getGitHash = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = stdout
}
return stdout.toString().trim()
}
ext {
agpVersion = '1.23'
minecraftVersion = '1.19.4'
forgeVersion = '45.1.0'
apiVersion = '1.5.2'
toolsVersion = '1.3.0'
mixinVersion = '0.8.5'
versionName = 'executions'
gitHash = getGitHash()
}
task cleanBuild {
doFirst {
project.file("build/libs").deleteDir()
}
}
}
task collect(type: Copy) {
destinationDir = file('build/libs')
subprojects.each { p ->
from p.file('build/libs')
}
}