pixelchat/mod-fabric/build.gradle

46 lines
933 B
Groovy
Raw Normal View History

2024-12-15 19:45:32 +00:00
plugins {
id 'fabric-loom' version '1.9-SNAPSHOT'
id 'java'
}
group = 'eu.e99'
2024-12-17 16:25:34 +00:00
version = project.version
2024-12-15 19:45:32 +00:00
base {
2024-12-16 16:47:32 +00:00
archivesName = "pixelchat-fabric-${project.minecraft_version}"
2024-12-15 19:45:32 +00:00
}
repositories {
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
}
processResources {
inputs.property "version", version
filesMatching("fabric.mod.json") {
expand "version": version
}
}
sourceSets {
main.java.srcDirs = ['src']
main.resources.srcDirs = ['resources']
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 21
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}