59 lines
1.9 KiB
Groovy
59 lines
1.9 KiB
Groovy
plugins {
|
|
id 'fabric-loom' version '1.8-SNAPSHOT'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
|
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
|
|
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
|
|
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
|
|
|
implementation "dev.onvoid.webrtc:webrtc-java:0.8.0"
|
|
implementation group: "dev.onvoid.webrtc", name: "webrtc-java", version: "0.8.0", classifier: "windows-x86_64"
|
|
implementation group: "dev.onvoid.webrtc", name: "webrtc-java", version: "0.8.0", classifier: "macos-x86_64"
|
|
implementation group: "dev.onvoid.webrtc", name: "webrtc-java", version: "0.8.0", classifier: "macos-aarch64"
|
|
implementation group: "dev.onvoid.webrtc", name: "webrtc-java", version: "0.8.0", classifier: "linux-x86_64"
|
|
implementation group: "dev.onvoid.webrtc", name: "webrtc-java", version: "0.8.0", classifier: "linux-aarch64"
|
|
implementation group: "dev.onvoid.webrtc", name: "webrtc-java", version: "0.8.0", classifier: "linux-aarch32"
|
|
|
|
implementation project(':common')
|
|
}
|
|
|
|
sourceSets {
|
|
main.java.srcDirs = ['src']
|
|
main.resources.srcDirs = ['resources']
|
|
}
|
|
|
|
processResources {
|
|
inputs.property "version", version
|
|
|
|
filesMatching("fabric.mod.json") {
|
|
expand "version": version
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
it.options.release = 21
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
}
|
|
|
|
jar {
|
|
from("LICENSE") {
|
|
rename { "${it}_${project.base.archivesName.get()}" }
|
|
}
|
|
}
|
|
|
|
runClient {
|
|
// I need to do it here, IntelliJ doesn't recognize the mod and I couldn't figure out how to set env variables
|
|
systemProperty "devauth.enabled", System.getenv("DEVAUTH_ENABLED")
|
|
systemProperty "devauth.account", System.getenv("DEVAUTH_ACCOUNT")
|
|
}
|