2021-07-30 19:53:09 +00:00
|
|
|
plugins {
|
2021-12-12 16:41:24 +00:00
|
|
|
id("fabric-loom") version "0.10.+"
|
|
|
|
id("io.github.juuxel.loom-quiltflower-mini") version "1.2.1"
|
2021-07-30 19:53:09 +00:00
|
|
|
`maven-publish`
|
|
|
|
}
|
|
|
|
|
2021-12-12 16:41:24 +00:00
|
|
|
version = "1.3.0+1.18"
|
|
|
|
group = "io.github.ashhhleyyy"
|
2021-07-30 19:53:09 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
// needed for placeholder-api
|
|
|
|
maven {
|
|
|
|
name = "NucleoidMC"
|
|
|
|
url = uri("https://maven.nucleoid.xyz/")
|
|
|
|
}
|
2021-08-13 14:12:06 +00:00
|
|
|
// permissions api
|
|
|
|
maven {
|
|
|
|
name = "Sonatype OSS"
|
|
|
|
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
|
|
|
|
}
|
2021-07-30 19:53:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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)
|
2021-08-07 15:12:23 +00:00
|
|
|
|
|
|
|
// more-codecs
|
|
|
|
modImplementation(libs.more.codecs)
|
|
|
|
include(libs.more.codecs)
|
2021-08-13 14:12:06 +00:00
|
|
|
|
|
|
|
// fabric-api-permissions
|
|
|
|
modImplementation(libs.fabric.permissions)
|
|
|
|
include(libs.fabric.permissions)
|
2021-07-30 19:53:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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}" }
|
|
|
|
}
|
|
|
|
}
|