2020-05-16 06:22:29 +00:00
|
|
|
allprojects {
|
|
|
|
group 'io.izzel.arclight'
|
2021-07-27 16:08:18 +00:00
|
|
|
version '1.0.0-SNAPSHOT'
|
2020-05-30 10:02:34 +00:00
|
|
|
|
2021-07-30 07:09:18 +00:00
|
|
|
def getGitHash = { ->
|
|
|
|
def stdout = new ByteArrayOutputStream()
|
|
|
|
exec {
|
|
|
|
commandLine 'git', 'rev-parse', '--short', 'HEAD'
|
|
|
|
standardOutput = stdout
|
|
|
|
}
|
|
|
|
return stdout.toString().trim()
|
|
|
|
}
|
|
|
|
|
2020-06-16 08:18:26 +00:00
|
|
|
ext {
|
2021-07-27 16:08:18 +00:00
|
|
|
agpVersion = '1.20'
|
2021-07-24 10:53:37 +00:00
|
|
|
minecraftVersion = '1.17.1'
|
|
|
|
forgeVersion = '37.0.1'
|
2021-06-13 14:06:33 +00:00
|
|
|
apiVersion = '1.0.+'
|
|
|
|
toolsVersion = '1.3.+'
|
2021-07-30 07:09:18 +00:00
|
|
|
gitHash = getGitHash()
|
2020-06-16 08:18:26 +00:00
|
|
|
}
|
|
|
|
|
2020-05-30 10:02:34 +00:00
|
|
|
task cleanBuild {
|
|
|
|
doFirst {
|
2020-08-17 15:05:28 +00:00
|
|
|
project.file("build/libs").deleteDir()
|
2020-05-30 10:02:34 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-16 06:22:29 +00:00
|
|
|
}
|
2020-05-30 10:02:34 +00:00
|
|
|
|
|
|
|
task collect(type: Copy) {
|
|
|
|
destinationDir = file('build/libs')
|
|
|
|
subprojects.each { p ->
|
|
|
|
from p.file('build/libs')
|
|
|
|
}
|
2021-05-26 15:12:50 +00:00
|
|
|
}
|