制裁傻子Arclight的更新
Some checks failed
Build / build (push) Has been cancelled

This commit is contained in:
Tianpao 2024-08-06 16:11:33 +00:00
parent 75ff37b4ba
commit 2584313179

48
build.gradle Normal file
View File

@ -0,0 +1,48 @@
import io.izzel.arclight.gradle.tasks.UploadFilesTask
allprojects {
group 'io.izzel.arclight'
version '1.0.6-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.3.5'
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').tasks.jar.outputs }
dependsOn { project(':arclight-forge').tasks.jar }
}
def gitBranch() {
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--abbrev-ref', 'HEAD'
standardOutput = stdout
}
return stdout.toString().trim()
}