Files
fdgdfg/build.gradle
arkonsadter 8a969bc843
Some checks failed
continuous-integration/drone/push Build is failing
Drop mappings declaration for unobfuscated 26.2
Starting with 26.1 Mojang ships Minecraft unobfuscated, and Yarn /
Intermediary are no longer published past 1.21.11. Loom does not need
a mappings dependency in that mode: the Mojang-named source compiles
directly. Remove the mappings line, drop the yarn_mappings property,
revert the client entrypoint to Mojang names (Minecraft, Component,
ChatFormatting, gui.getChat(), getUser().getName()), and rewrite the
README note so it stops claiming Mojang mappings via Loom.
2026-06-21 15:57:22 +06:00

65 lines
1.2 KiB
Groovy

plugins {
id 'net.fabricmc.fabric-loom' version '1.17-SNAPSHOT'
id 'maven-publish'
}
version = project.mod_version
group = project.maven_group
base {
archivesName = project.archives_base_name
}
loom {
splitEnvironmentSourceSets()
mods {
"clientirc" {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
}
}
repositories {
mavenCentral()
maven {
url = 'https://maven.fabricmc.net/'
}
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
}
processResources {
inputs.property 'version', project.version
filesMatching('fabric.mod.json') {
expand 'version': project.version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 25
}
java {
sourceCompatibility = JavaVersion.VERSION_25
targetCompatibility = JavaVersion.VERSION_25
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
}
}