mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-04 09:19:33 +01:00
60 lines
1.4 KiB
Groovy
60 lines
1.4 KiB
Groovy
plugins {
|
|
id "fabric-loom" version "1.1-SNAPSHOT"
|
|
}
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
archivesBaseName = project.archives_base_name
|
|
version = project.mod_version
|
|
group = project.maven_group
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name = "Jitpack"
|
|
url = "https://jitpack.io"
|
|
}
|
|
maven {
|
|
name = "ViaVersion"
|
|
url "https://repo.viaversion.com"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
|
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
|
|
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
|
|
|
implementation "com.github.FlorianMichael:ViaLoadingBase:${project.vialoadingbase_version}"
|
|
|
|
implementation "com.viaversion:viaversion:${project.viaversion_version}"
|
|
implementation "com.viaversion:viabackwards-common:${project.viabackwards_version}"
|
|
implementation "org.yaml:snakeyaml:1.29"
|
|
|
|
implementation "com.github.RaphiMC:ViaLegacy:${project.vialegacy_version}"
|
|
implementation "com.github.RaphiMC:ViaAprilFools:${project.viaaprilfools_version}"
|
|
}
|
|
|
|
processResources {
|
|
inputs.property "version", project.version
|
|
|
|
filesMatching("fabric.mod.json") {
|
|
expand "version": project.version
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
it.options.release = 17
|
|
}
|
|
|
|
java {
|
|
withSourcesJar()
|
|
}
|
|
|
|
jar {
|
|
from("LICENSE") {
|
|
rename { "${it}_${project.archivesBaseName}" }
|
|
}
|
|
}
|