Jump to content

[1.14.4][1.13.2] Unable to resolve net.minecraftforge.forge


MSpace-Dev

Recommended Posts

Hey all,

 

Trying to update my 1.12.2 project here TO 1.13.2. I've done the following steps exactly in this order:

1. Downloaded and extracted 1.13.2 Forge MDK to new folder
2. Moved over my 'src' and 'run' folder into MDK folder
3. Imported Gradle project using build.gradle in IntelliJ 2019
4. Ran "gradlew genIntelliJRuns" using terminal.
5. Ran "gradlew --refresh-dependencies" using terminal.

Note: Both steps 4-5 ran WITHOUT any build errors.
Note2: I refreshed Gradle multiple times throughout. Auto-import is also enabled, so the project has been refreshed multiple times at least. No question.
  
 Error: "Unable to resolve net.minecraftforge.forge:1.13.2-25.0.219"

 

Though, some commands produced this output. Not sure if I can safely ignore it or not.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings

image.png.6d6b637d703437a55e01c9b6ca3d193d.png

 

build.gradle (Just generic one from the zip file)

buildscript {
    repositories {
        maven { url = 'https://files.minecraftforge.net/maven' }
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
    }
}
apply plugin: 'net.minecraftforge.gradle'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
apply plugin: 'maven-publish'

version = '1.0'
group = 'com.yourname.modid' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'modid'

sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.

minecraft {
    // The mappings can be changed at any time, and must be in the following format.
    // snapshot_YYYYMMDD   Snapshot are built nightly.
    // stable_#            Stables are built at the discretion of the MCP team.
    // Use non-default mappings at your own risk. they may not always work.
    // Simply re-run your setup task after changing the mappings to update your workspace.
    mappings channel: 'snapshot', version: '20180921-1.13'
    // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
    
    // accessTransformer = file('build/resources/main/META-INF/accesstransformer.cfg')

    // Default run configurations.
    // These can be tweaked, removed, or duplicated as needed.
    runs {
        client {
            workingDirectory project.file('run')

            // Recommended logging data for a userdev environment
            property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'

            // Recommended logging level for the console
            property 'forge.logging.console.level', 'debug'

            mods {
                examplemod {
                    source sourceSets.main
                }
            }
        }

        server {
            workingDirectory project.file('run')

            // Recommended logging data for a userdev environment
            property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'

            // Recommended logging level for the console
            property 'forge.logging.console.level', 'debug'

            mods {
                examplemod {
                    source sourceSets.main
                }
            }
        }
    }
}

dependencies {
    // Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
    // that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
    // The userdev artifact is a special name and will get all sorts of transformations applied to it.
    minecraft 'net.minecraftforge:forge:1.13.2-25.0.219'

    // You may put jars on which you depend on in ./libs or you may define them like so..
    // compile "some.group:artifact:version:classifier"
    // compile "some.group:artifact:version"

    // Real examples
    // compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'  // adds buildcraft to the dev env
    // compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env

    // The 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
    // provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'

    // These dependencies get remapped to your current MCP mappings
    // deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev'

    // For more info...
    // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
    // http://www.gradle.org/docs/current/userguide/dependency_management.html

}

// Example for how to get properties into the manifest for reading by the runtime..
jar {
    manifest {
        attributes([
            "Specification-Title": "examplemod",
            "Specification-Vendor": "examplemodsareus",
            "Specification-Version": "1", // We are version 1 of ourselves
            "Implementation-Title": project.name,
            "Implementation-Version": "${version}",
            "Implementation-Vendor" :"examplemodsareus",
            "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
        ])
    }
}

// Example configuration to allow publishing using the maven-publish task
// we define a custom artifact that is sourced from the reobfJar output task
// and then declare that to be published
// Note you'll need to add a repository here
def reobfFile = file("$buildDir/reobfJar/output.jar")
def reobfArtifact = artifacts.add('default', reobfFile) {
    type 'jar'
    builtBy 'reobfJar'
}
publishing {
    publications {
        mavenJava(MavenPublication) {
            artifact reobfArtifact
        }
    }
    repositories {
        maven {
            url "file:///${project.projectDir}/mcmodsrepo"
        }
    }
}

 

Edited by MSpace-Dev
title
Link to comment
Share on other sites

Alright, so I've downloaded a completely fresh 1.14.3 MDK and moved it into an empty folder. IMported with IntelliJ. Didn't even put my src in. So bare bones project.

1. Downloaded and extracted 1.14.4 Forge MDK to new folder
2. Imported Gradle project using build.gradle in IntelliJ 2019
3. Ran "gradlew genIntelliJRuns" using terminal.
4. Ran "gradlew genIntelliJRuns --no-daemon" using terminal.
5. Ran "gradlew --refresh-dependencies" using terminal.

Note: Steps 3-5 ran without any errors.
Note2: I refreshed Gradle multiple times. Auto-import is also enabled.

 

I get this error now when I refresh Gradle

Spoiler

Caused by: java.lang.IllegalStateException: ProjectScopeServices has been closed.

image.png.caecdf713b9fffe10a2ffde03bd2a820.png

And this error:

Spoiler

Unable to resolve net.minecraftforge:forge:1.14.4-28.1.90_mapped_snapshot_20190719-1.14.3

image.png.a367ccc369b5d8fdc26419ba59dddaf7.png

 

Project structure:

image.png.6955a0d882d011a6cbf2aae7d0c8e5ff.png

Edited by MSpace-Dev
Link to comment
Share on other sites

Now that my project is updated. Where can I find info on the changes to all the function names? I've migrated the namespaces using the MCP XML. However, it only goes up to 1.13-to-1.13.1.xml

These are the resources I've found so far:

https://mcforge.readthedocs.io/en/1.13.x/

https://gist.github.com/williewillus/353c872bcf1a6ace9921189f6100d09a

 

Got things like this happening

image.png.89bf675547565c96411a57d8daf4ccd2.png

Just not sure where to begin finding what these have changed to.

Edited by MSpace-Dev
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.

×
×
  • Create New...

Important Information

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