2021-07-30 19:53:09 +00:00
|
|
|
plugins {
|
2024-01-28 23:31:55 +00:00
|
|
|
id("fabric-loom") version "1.5.+"
|
2022-07-17 19:37:06 +00:00
|
|
|
id("com.modrinth.minotaur") version "2.+"
|
2021-07-30 19:53:09 +00:00
|
|
|
`maven-publish`
|
|
|
|
}
|
|
|
|
|
2024-01-28 23:31:55 +00:00
|
|
|
version = "2.0.0+1.20.4"
|
2022-08-20 10:49:35 +00:00
|
|
|
group = "dev.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
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2022-06-17 09:07:11 +00:00
|
|
|
loom {
|
|
|
|
runtimeOnlyLog4j.set(true)
|
|
|
|
}
|
|
|
|
|
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 {
|
2022-06-17 07:56:13 +00:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2021-07-30 19:53:09 +00:00
|
|
|
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<JavaCompile> {
|
|
|
|
options.encoding = "UTF-8"
|
2022-06-17 07:56:13 +00:00
|
|
|
options.release.set(17)
|
2021-07-30 19:53:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.jar {
|
|
|
|
from("LICENSE") {
|
|
|
|
rename { "${it}_${project.name}" }
|
|
|
|
}
|
|
|
|
}
|
2022-07-17 19:37:06 +00:00
|
|
|
|
|
|
|
modrinth {
|
|
|
|
projectId.set("player-pronouns")
|
|
|
|
uploadFile.set(tasks.remapJar.get())
|
|
|
|
dependencies {
|
|
|
|
required.project("fabric-api")
|
|
|
|
}
|
|
|
|
}
|
2022-08-17 14:13:07 +00:00
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications.create<MavenPublication>("maven") {
|
|
|
|
from(components["java"])
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
if (System.getenv("MAVEN_URL") != null) {
|
|
|
|
maven {
|
|
|
|
name = "ashhhleyyy"
|
|
|
|
setUrl(System.getenv("MAVEN_URL"))
|
|
|
|
credentials {
|
|
|
|
username = System.getenv("MAVEN_USERNAME")
|
|
|
|
password = System.getenv("MAVEN_PASSWORD")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
mavenLocal()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|