mirror of
https://github.com/ashhhleyyy/player-pronouns.git
synced 2024-11-01 07:07:38 +00:00
57 lines
1.1 KiB
Text
57 lines
1.1 KiB
Text
|
plugins {
|
||
|
id("fabric-loom") version "0.9.45"
|
||
|
id("io.github.juuxel.loom-quiltflower") version "1.2.1"
|
||
|
`maven-publish`
|
||
|
}
|
||
|
|
||
|
version = "1.0.0-beta"
|
||
|
group = "io.github.ashisbored"
|
||
|
|
||
|
repositories {
|
||
|
// needed for placeholder-api
|
||
|
maven {
|
||
|
name = "NucleoidMC"
|
||
|
url = uri("https://maven.nucleoid.xyz/")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
// Minecraft
|
||
|
minecraft(libs.minecraft)
|
||
|
mappings(variantOf(libs.yarn) { classifier("v2") })
|
||
|
|
||
|
// Fabric
|
||
|
modImplementation(libs.fabric.loader)
|
||
|
modImplementation(libs.fabric.api)
|
||
|
|
||
|
// placeholder-api
|
||
|
modImplementation(libs.placeholder.api)
|
||
|
include(libs.placeholder.api)
|
||
|
}
|
||
|
|
||
|
tasks.processResources {
|
||
|
inputs.property("version", project.version)
|
||
|
|
||
|
filesMatching("fabric.mod.json") {
|
||
|
expand("version" to project.version)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
java {
|
||
|
sourceCompatibility = JavaVersion.VERSION_16
|
||
|
targetCompatibility = JavaVersion.VERSION_16
|
||
|
|
||
|
withSourcesJar()
|
||
|
}
|
||
|
|
||
|
tasks.withType<JavaCompile> {
|
||
|
options.encoding = "UTF-8"
|
||
|
options.release.set(16)
|
||
|
}
|
||
|
|
||
|
tasks.jar {
|
||
|
from("LICENSE") {
|
||
|
rename { "${it}_${project.name}" }
|
||
|
}
|
||
|
}
|