forked from IzzelAliz/Arclight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
36 lines (32 loc) · 874 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
allprojects {
group 'io.izzel.arclight'
version '1.0.0-SNAPSHOT'
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.20.1'
forgeVersion = '47.0.3'
apiVersion = '1.5.4'
toolsVersion = '1.3.0'
mixinVersion = '0.8.5'
versionName = 'trials'
gitHash = getGitHash()
}
task cleanBuild {
doFirst {
project.file("build/libs").deleteDir()
}
}
}
task collect(type: Copy) {
destinationDir = file('build/libs')
from project(':arclight-forge').file('build/libs')
dependsOn { project(':arclight-forge').tasks.jar }
}