Add build-local render and release workflows
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
plugins {
|
||||
id 'fabric-loom' version '1.7-SNAPSHOT'
|
||||
id 'java'
|
||||
}
|
||||
|
||||
group = 'dev.github.copilot'
|
||||
version = '1.0.0'
|
||||
|
||||
repositories {
|
||||
maven { url = 'https://maven.fabricmc.net/' }
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
def minecraftVersion = providers.environmentVariable('MINECRAFT_VERSION')
|
||||
.orElse(providers.gradleProperty('minecraft_version'))
|
||||
.get()
|
||||
|
||||
dependencies {
|
||||
minecraft "com.mojang:minecraft:${minecraftVersion}"
|
||||
mappings loom.officialMojangMappings()
|
||||
modImplementation "net.fabricmc:fabric-loader:0.16.10"
|
||||
implementation 'com.google.code.gson:gson:2.11.0'
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(21)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
options.encoding = 'UTF-8'
|
||||
options.release = 21
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
resources.srcDir(file('../resourcepack'))
|
||||
}
|
||||
}
|
||||
|
||||
loom {
|
||||
runs {
|
||||
client {
|
||||
programArgs '--username', 'RenderBot'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user