when i run ./gradlew clean shadowJar it builds the mod and becomes 100kb, but then after i run ./gradlew remapJar it goes down to 1kb can someone please help me
heres my build.grandle
plugins {
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'maven-publish'
}
archives_base_name = 'Sterns-Lock-Off-Client'
version = '1.0.0'
group = 'net.stern.tutorialmod'
repositories {
mavenCentral()
maven { url = "https://maven.fabricmc.net/" }
}
dependencies {
minecraft "com.mojang:minecraft:1.21.1"
mappings "net.fabricmc🧶1.21.1+build.3:v2"
modImplementation "net.fabricmc:fabric-loader:0.16.14"
modImplementation "net.fabricmc.fabric-api:fabric-api:0.116.3+1.21.1"
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": inputs.properties.version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 21
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
jar {
inputs.property "archivesName", project.archives_base_name
from("LICENSE") {
rename { "${it}_${inputs.properties.archivesName}" }
}
}
