ViaFabricPlus/build.gradle

92 lines
2.0 KiB
Groovy
Raw Permalink Normal View History

2023-02-19 23:17:33 +01:00
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
2023-02-21 04:24:49 +01:00
configurations {
implementation.extendsFrom libs
api.extendsFrom libs
2023-02-21 04:24:49 +01:00
}
allprojects {
repositories {
mavenCentral()
maven {
name = "Jitpack"
url = "https://jitpack.io"
}
maven {
name = "ViaVersion"
url = "https://repo.viaversion.com"
}
2023-03-03 16:40:38 +01:00
maven {
name = "Lenni0451"
2023-03-03 16:47:32 +01:00
url = "https://maven.lenni0451.net/releases"
2023-03-03 16:40:38 +01:00
}
maven {
2023-03-03 16:47:32 +01:00
name = "TerraformersMC"
url = "https://maven.terraformersmc.com/releases"
}
2023-02-19 23:17:33 +01:00
}
}
loom {
accessWidenerPath = file("src/main/resources/viafabricplus.accesswidener")
}
2023-02-19 23:17:33 +01:00
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
2023-03-03 16:47:32 +01:00
2023-02-19 23:17:33 +01:00
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "com.terraformersmc:modmenu:${project.mod_menu_version}"
2023-02-19 23:17:33 +01:00
libs "com.github.FlorianMichael:ViaLoadingBase:${project.vialoadingbase_version}"
2023-02-19 23:17:33 +01:00
libs "com.viaversion:viaversion:${project.viaversion_version}"
libs "com.viaversion:viabackwards-common:${project.viabackwards_version}"
2023-03-03 16:47:32 +01:00
libs "org.yaml:snakeyaml:${project.snake_yml_version}"
2023-02-19 23:17:33 +01:00
2023-03-03 16:40:38 +01:00
libs "net.raphimc:ViaLegacy:${project.vialegacy_version}"
libs "net.raphimc:ViaAprilFools:${project.viaaprilfools_version}"
libs "net.lenni0451.mcstructs:text:${project.mcstructs_text_version}"
2023-02-19 23:17:33 +01:00
}
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 {
dependsOn configurations.libs
2023-02-21 04:24:49 +01:00
from {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
configurations.libs.collect {
2023-02-21 04:24:49 +01:00
zipTree(it)
}
} {
exclude "META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA"
}
2023-02-19 23:17:33 +01:00
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
}