Jump to content

[1.16.5] specified for property 'mappingsIn' does not exist


Rosy162

Recommended Posts

when trying to run "gradlew eclipse" I get the error "specified for property 'mappingsIn' does not exist". idk if you help with this kind of stuff but help would be appreciated

here is my build.gradle

buildscript {
    repositories {
        maven { url = "https://files.minecraftforge.net/maven" }
        maven { url = "https://repo.spongepowered.org/repository/maven-public/" }
        mavenCentral()
    }
    dependencies {
        classpath group: "net.minecraftforge.gradle", name: "ForgeGradle", version: "4.1.+", changing: true
        classpath group: "org.spongepowered", name: "mixingradle", version: "0.7-SNAPSHOT"
    }
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: "org.spongepowered.mixin"

mixin {
    add sourceSets.main, project.modId + ".refmap.json"
}

version = "${project.minecraftVersion}-${project.modVersion}"
group = 'com.bunchofroses.' + project.modId
archivesBaseName = project.modId

sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = "1.8"

minecraft {
    mappings channel: project.mappingsChannel, version: project.mappingsVersion
    accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
    runs {
        client {
            workingDirectory project.file('run')
            property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
            property 'forge.logging.console.level', 'debug'
            property "mixin.env.disableRefMap", "true"
            arg "-mixin.config=" + project.modId + ".mixins.json"
            mods {
                natures_mobs {
                    source sourceSets.main
                }
            }
        }

        server {
            workingDirectory project.file("run")
            property "forge.logging.markers", "SCAN,REGISTRIES,REGISTRYDUMP"
            property "forge.logging.console.level", "debug"
            property "mixin.env.disableRefMap", "true"
            arg "-mixin.config=" + project.modId + ".mixins.json"
            mods {
                natures_mobs {
                    source sourceSets.main
                }
            }
        }

        data {
            workingDirectory project.file('run')
            property "forge.logging.markers", "SCAN,REGISTRIES,REGISTRYDUMP"
            property "forge.logging.console.level", "debug"
            property "mixin.env.disableRefMap", "true"
            args "--mod", project.modId, "--all", "--output", file("src/generated/resources/"), "--existing", file("src/main/resources")
            mods {
                natures_mobs {
                    source sourceSets.main
                }
            }
        }
    }
}

dependencies {
    minecraft "net.minecraftforge:forge:${project.minecraftVersion}-${project.forgeVersion}"
    implementation fg.deobf("com.minecraftabnormals:abnormals-core:${project.minecraftVersion}-${project.abnormalsCore}")

    compileOnly fg.deobf("mezz.jei:jei-${project.minecraft}:${project.jei}:api")
    runtimeOnly fg.deobf("mezz.jei:jei-${project.minecraft}:${project.jei}")
}

repositories {
    maven {
        url "https://maven.jaackson.me"
    }
    maven {
        url "https://dvs1.progwml6.com/files/maven/"
    }
    maven {
        url "https://modmaven.k-4u.nl"
    }
}

jar {
    manifest {
        attributes([
            "Specification-Title" : project.modName,
            "Specification-Vendor" : "Bunch of Roses",
            "Specification-Version" : "1",
            "Implementation-Title" : project.modName,
            "Implementation-Version" : project.modVersion,
            "Implementation-Vendor" : "Bunch of Roses",
            "Implementation-Timestamp" : new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
            "MixinConfigs" : project.modId + ".mixins.json"
        ])
    }
}

 

and my gradle.proprties  :

org.gradle.jvmargs=-Xmx4G
org.gradle.daemon=false
org.gradle.caching=true
org.gradle.parallel=true
gradle.cache.push=false

modId=natures_mobs
modName=Nature's Mobs
modVersion=1.0.0

minecraftVersion=1.16.5
forgeVersion=36.1.0

abnormalsCore=3.1.1
jei=7.6.1.75

mappingsVersion=20201028-1.16.3
mappingsChannel=snapshot

 

Edited by Rosy162
Link to comment
Share on other sites

1 minute ago, diesieben07 said:

Post the full error.

*What went wrong:

A problem was found with the configuration of task 'eclipseJdtApt' (type 'MixinEclipse.EclipseJdtAptTask).

>File 'C:\Code\Minecraft\nm\build\createMcpToSrg\output.tsrg' specified for property 'mappingsIn' does not exist

Link to comment
Share on other sites

1 minute ago, diesieben07 said:

Please look up the meaning of the word "full", then try again.

Oh right sorry, left a part out. heres the full thing.

> Task :eclipseJdtApt FAILED

FAILURE: Build failed with an exception

*What went wrong:

A problem was found with the configuration of task 'eclipseJdtApt' (type 'MixinEclipse.EclipseJdtAptTask).

>File 'C:\Code\Minecraft\nm\build\createMcpToSrg\output.tsrg' specified for property 'mappingsIn' does not exist

*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.

*Get more help at httpls://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatable with Gradle 7.0.

Use 'warning-mode all' to show the individual deprecation warnings.

See https://docs.gradle.org/6.8.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 40s

11 actionable tasks: 6 executed, 5 up-to-date 

Link to comment
Share on other sites

2 minutes ago, diesieben07 said:

That depends on your answer to the first two questions.

im running gradlew eclipse in the gradle tasks section of run configurations in eclipse

Edited by Rosy162
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.