When I try to build my mod I get this output:
`Starting a Gradle Daemon (subsequent builds will be faster)
Configure project :mod
Fabric Loom: 1.0.11
Loom is applying dependency data manually to publications instead of using a software component (from(components["java"])). This is deprecated.
Not publishing sources jar as it was not found. Use java.withSourcesJar() to fix.
Deprecated Loom APIs were used in this build, making it incompatible with future versions of Loom. Use Gradle warning modes to control the verbosity of the warnings.
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':mod'.
Failed to setup Minecraft, java.lang.RuntimeException: Failed to remap minecraft
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
":mod" module build.gradle file:
`plugins {
id 'maven-publish'
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'com.github.johnrengelman.shadow' version '7.0.0'
}
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this task, sources will not be generated.
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
from sourceSets.main.allSource
}
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
}
// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
// add all the jars that should be included when publishing to maven
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
// select the repositories you want to publish to
repositories {
// uncomment to publish to the local maven
// mavenLocal()
}
When I try to build my mod I get this output: `Starting a Gradle Daemon (subsequent builds will be faster)
Deprecated Loom APIs were used in this build, making it incompatible with future versions of Loom. Use Gradle warning modes to control the verbosity of the warnings. FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':mod'.
Try:
Get more help at https://help.gradle.org/
BUILD FAILED in 2m 18s`
loom version: 1.0 yarn-mappings version: yarn_mappings=1.19.2+build.8
":mod" module build.gradle file: `plugins { id 'maven-publish' id 'fabric-loom' version '1.0-SNAPSHOT' id 'com.github.johnrengelman.shadow' version '7.0.0' }
sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name version = project.mod_version group = project.maven_group
repositories { mavenLocal() mavenCentral()
}
dependencies { minecraft "com.mojang:minecraft:${project.minecraft_version}" mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" modCompileOnly "net.fabricmc:fabric-loader:${project.loader_version}"
}
// processResources { // inputs.property "version", project.version // filteringCharset "UTF-8" // // filesMatching("fabric.mod.json") { // expand "version": project.version // } // }
processResources { inputs.property "version", project.version duplicatesStrategy = 'include'
}
// ensure that the encoding is set to UTF-8, no matter what the system default is // this fixes some edge cases with special characters not displaying correctly // see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html tasks.withType(JavaCompile) { options.encoding = "UTF-8" }
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task // if it is present. // If you remove this task, sources will not be generated. task sourcesJar(type: Jar, dependsOn: classes) { classifier = "sources" from sourceSets.main.allSource }
shadowJar { configurations = [project.configurations.shadow] enabled = false }
remapJar { input.set shadowJar.archiveFile dependsOn(shadowJar) }
// configure the maven publication publishing { publications { mavenJava(MavenPublication) { // add all the jars that should be included when publishing to maven artifact(remapJar) { builtBy remapJar } artifact(sourcesJar) { builtBy remapSourcesJar } } }
} `