OpenProximityChat/fabric/build.gradle.kts
2022-11-11 08:08:37 +00:00

66 lines
1.7 KiB
Plaintext

plugins {
id("fabric-loom")
`maven-publish`
java
}
group = property("maven_group")!!
version = property("mod_version")!!
repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
}
dependencies {
minecraft("com.mojang:minecraft:${property("minecraft_version")}")
mappings("net.fabricmc:yarn:${property("yarn_mappings")}:v2")
modImplementation("net.fabricmc:fabric-loader:${property("loader_version")}")
modImplementation("net.fabricmc:fabric-language-kotlin:${property("fabric_kotlin_version")}")
modImplementation("net.fabricmc.fabric-api:fabric-api:${property("fabric_api_version")}")
// Common Kotlin
implementation(project(":common"))
// UPnP
implementation("org.bitlet:weupnp:0.1.4")
}
tasks {
processResources {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
expand(mutableMapOf("version" to project.version))
}
}
jar {
from("LICENSE")
}
}
java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
// select the repositories you want to publish to
repositories {
mavenLocal()
}
}