Arclight1.18/build.gradle
IzzelAliz fded76e5ac
Some checks are pending
Java CI with Gradle / build (push) Waiting to run
Release 1.0.12
2024-02-28 22:49:35 +08:00

37 lines
794 B
Groovy

allprojects {
group 'io.izzel.arclight'
version '1.0.12'
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.18.2'
forgeVersion = '40.2.14'
apiVersion = '1.4.0'
toolsVersion = '1.3.+'
mixinVersion = '0.8.5'
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')
}
}