stinky-mod/build.gradle

80 lines
1.8 KiB
Groovy
Raw Normal View History

plugins {
2024-03-21 12:29:38 +00:00
id 'fabric-loom' version '1.5-SNAPSHOT'
id 'maven-publish'
}
version = project.mod_version
group = project.maven_group
base {
archivesName = project.archives_base_name
}
repositories {
mavenCentral()
}
loom {
splitEnvironmentSourceSets()
mods {
"stinky" {
sourceSet sourceSets.main
}
}
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
implementation(include("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.16.1"))
implementation(include("com.fasterxml.jackson.core:jackson-core:2.16.1"))
implementation(include("com.fasterxml.jackson.core:jackson-databind:2.16.1"))
implementation(include("com.fasterxml.jackson.core:jackson-annotations:2.16.1"))
implementation(include("org.yaml:snakeyaml:2.2"))
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 17
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
jar {
from("LICENSE") {
rename { "${it}_${project.base.archivesName.get()}"}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
2024-03-21 12:29:38 +00:00
}