ForgeGradle | Minecraft mod development framework used by Forge and FML | Plugin library

 by   MinecraftForge Java Version: v2.0.2 License: LGPL-2.1

kandi X-RAY | ForgeGradle Summary

kandi X-RAY | ForgeGradle Summary

ForgeGradle is a Java library typically used in Plugin, Minecraft, Gradle applications. ForgeGradle has no bugs, it has no vulnerabilities, it has build file available, it has a Weak Copyleft License and it has low support. You can download it from GitHub.

[Join the chat at Minecraft mod development framework used by Forge and FML for the gradle build system.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ForgeGradle has a low active ecosystem.
              It has 477 star(s) with 407 fork(s). There are 69 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 14 open issues and 532 have been closed. On average issues are closed in 393 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ForgeGradle is v2.0.2

            kandi-Quality Quality

              ForgeGradle has 0 bugs and 0 code smells.

            kandi-Security Security

              ForgeGradle has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ForgeGradle code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ForgeGradle is licensed under the LGPL-2.1 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              ForgeGradle releases are available to install and integrate.
              Build file is available. You can build the component from source.
              ForgeGradle saves you 9002 person hours of effort in developing the same functionality from scratch.
              It has 18424 lines of code, 1431 functions and 141 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed ForgeGradle and discovered the below as its top functions. This is intended to give you an instant insight into ForgeGradle implemented functionality, and help decide if they suit your requirements.
            • Creates the plugin filters
            • Configures tokens in the run configuration
            • Create a run task
            • Create Eclipse fixes
            • Retrieves the mappings file
            • Find the renames
            • Build a javadoc comment string
            • Injects a javadoc comment
            • Applies the given project to the given project
            • Find the file corresponding to the artifact identifier
            • Apply the package - info
            • Performs the actual operation
            • Finds an artifact
            • The main entry point
            • Detect the current gradle deployment
            • Finds the pom
            • Download libraries
            • Runs the task
            • Finds the file associated with this artifact
            • Apply the current configuration
            • Generate the output file
            • Runs the download
            • Validates the minecraft dependency
            • Creates the run configuration
            • Install MCP
            • Returns the file corresponding to the MCP
            Get all kandi verified functions for this library.

            ForgeGradle Key Features

            No Key Features are available at this moment for ForgeGradle.

            ForgeGradle Examples and Code Snippets

            No Code Snippets are available at this moment for ForgeGradle.

            Community Discussions

            QUESTION

            Error: Support for running under Java 16 requires Gradle 7, which will be supported in ForgeGradle 5
            Asked 2022-Feb-06 at 19:25

            I am using this -> https://mcforge.readthedocs.io/en/latest/gettingstarted/ (forge documentation)

            now I'm on this point:

            Generating IDE Launch/Run Configurations:

            For IntelliJ, run the genIntellijRuns gradle task (gradlew genIntellijRuns).

            And this what i have:

            ...

            ANSWER

            Answered 2021-Nov-29 at 17:36

            I downgraded jdk version to 15.0.2 and this helped to solve problem.

            Source https://stackoverflow.com/questions/70154920

            QUESTION

            building mod does not include mcmod.info (1.12.2)
            Asked 2021-Nov-29 at 08:23

            posting here as 1.12.2 is no longer officially supported by forge,

            trying to build my first mod and I'm having troubles getting it to be detected by gradle

            build.gradle

            ...

            ANSWER

            Answered 2021-Nov-29 at 08:23

            If you use IntelliJ IDEA, then add to the end of the file build.gradle

            Source https://stackoverflow.com/questions/70118942

            QUESTION

            gradle build.gradle issue with "version:"(forge modding)
            Asked 2021-Jul-08 at 00:43

            I am 10000000000% new to coding forge mods. I am trying to run this command: ./gradlew setupdecompworkspace I typed this in the terminal after going through the file path. I get this error message:

            ...

            ANSWER

            Answered 2021-Jul-08 at 00:18

            You need to use '', not ‘’. Replace that line with version ='1.16.5-1.0.0'.

            Source https://stackoverflow.com/questions/68294190

            QUESTION

            Is a Gradle file affected when you add new files
            Asked 2021-Feb-28 at 02:28

            On Github while working with my friend on some code (actually experimental malware for pentesting), we set up a Gradle check, and it failed. When it ran, it said this:

            ...

            ANSWER

            Answered 2021-Feb-28 at 02:28

            try replacing http://repo.spongepowered.org/maven/ with https://repo.spongepowered.org/maven/ in your build.gradle file

            Source https://stackoverflow.com/questions/66379539

            QUESTION

            Problems running gradlew.bat and setting up Development Environment
            Asked 2020-Dec-11 at 03:43

            I've recently gotten into modding Minecraft 1.7.10, and I'm setting up my folders/environment. All I've done so far is as follows;

            1. Extracted the 1.7.10 src files from the forge website to the file I plan on modding in.
            2. made a system variable in my environmental variables called Path, which directs to my JDK.
            3. Ran gradlew.bat (failed)

            And this is where I failed. I have the main error I got straight from the cmd prompt, used cmd /k switch to keep it open listed below.

            FAILURE: Build failed with an exception.

            • What went wrong: A problem occurred configuring root project 'Modding Project'.

            Could not resolve all dependencies for configuration ':classpath'. Could not resolve org.eclipse.equinox:common:[3.2.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:jobs:3.5.300-v20130429-1813 :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:contenttype:3.4.200-v20130326-1255 :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.equinox:preferences:3.5.100-v20130422-1538 > Failed to list versions for org.eclipse.equinox:common. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.equinox:preferences:[3.2.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:contenttype:3.4.200-v20130326-1255 > Failed to list versions for org.eclipse.equinox:preferences. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.equinox:registry:[3.2.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:contenttype:3.4.200-v20130326-1255 > Failed to list versions for org.eclipse.equinox:registry. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.core.runtime:compatibility:[3.1.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:resources:3.2.1-R32x_v20060914 > Failed to list versions for org.eclipse.core.runtime:compatibility. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/runtime/compatibility/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/runtime/compatibility/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.core:expressions:[3.1.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:resources:3.2.1-R32x_v20060914 > Failed to list versions for org.eclipse.core:expressions. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/expressions/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/expressions/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.core:filesystem:[1.0.0,2.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:resources:3.2.1-R32x_v20060914 > Failed to list versions for org.eclipse.core:filesystem. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/filesystem/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/filesystem/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse:osgi:[3.7.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255 > Failed to list versions for org.eclipse:osgi. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/osgi/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/osgi/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.equinox:common:[3.6.100,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255 > Failed to list versions for org.eclipse.equinox:common. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.core:jobs:[3.2.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255 > Failed to list versions for org.eclipse.core:jobs. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/jobs/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/jobs/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.equinox:registry:[3.4.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255 > Failed to list versions for org.eclipse.equinox:registry. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.equinox:preferences:[3.4.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255 > Failed to list versions for org.eclipse.equinox:preferences. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.core:contenttype:[3.3.0,4.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255 > Failed to list versions for org.eclipse.core:contenttype. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/contenttype/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/contenttype/maven-metadata.xml'. Received status code 501 from server: HTTPS Required Could not resolve org.eclipse.equinox:app:[1.0.0,2.0.0). Required by: :Modding Project:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255 > Failed to list versions for org.eclipse.equinox:app. > Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/app/maven-metadata.xml. > Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/app/maven-metadata.xml'. Received status code 501 from server: HTTPS Required

            • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

            BUILD FAILED

            Total time: 10.107 secs

            I can provide the --stacktrace, --info or the --debug on request.. first post so I'm not sure what people need beyond the error. Thanks anyways!

            Here is my build.gradle

            ...

            ANSWER

            Answered 2020-Dec-11 at 03:30

            So as far as I understood repo1.maven.org/maven2 does not support http anymore. That is problem because 1.7.10 is shipped with gradle wrapper v2.0. In this version http was hardcoded. So you need to add repository by yourself.

            Repository declaration looks like:

            Source https://stackoverflow.com/questions/65244986

            QUESTION

            "Unable to load Maven meta-data" error from ForgeGradle on Mac OSX?
            Asked 2020-May-17 at 22:01

            I am attempting to set up Eclipse and Minecraft Forge with Gradle on Mac OS X so I can try my hand at modding. Whenever I run either of the following commands, Gradle returns the same error:

            ...

            ANSWER

            Answered 2020-May-17 at 01:28

            Seems this may be a duplicate of something like:

            Could not resolve all dependencies for configuration ':classpath'

            essentially : "could not resolve all artifacts for configuration ' classpath'. gradle" in your favourite search engine.

            Invalidate your caches and restart intelliJ. If this doesn't fix it, the other solution is to re-prioritise the maven repository you use jcenter() either before or after mavenCentral()

            Source https://stackoverflow.com/questions/61845703

            QUESTION

            How do you exclude META-INF from a gradle project dependency?
            Asked 2020-Apr-01 at 02:42

            I've got two sibling projects ProjectA and ProjectB that are both under Parent. Parent is basically only a folder, and has common build.gradle settings for both child projects.

            ProjectB depends on code in ProjectA at compile time, but ProjectA is built separately and contains a META-INF directory. When building ProjectB I get a java.lang.SecurityException: Invalid signature file digest for Manifest main attributes. As you can see below, I've removed the zipTree calls from ProjectB and am unsure of how to fix this problem. Would greatly appreciate some assistance.

            Please keep in mind, both projects must build their own JAR and ProjectA must shade the two dependencies seen below.

            Parent settings.gradle:

            ...

            ANSWER

            Answered 2020-Apr-01 at 02:42

            Thanks to a comment by Bjorn Vester on the question, I've solved the problem. The answer is to move the jar's configurations shade collect call to ProjectA.

            Source https://stackoverflow.com/questions/60922779

            QUESTION

            Issues trying to mod minecraft 1.12.2 with forge. Cannot wrap and test build
            Asked 2020-Feb-22 at 22:04

            I cannot get a test build to run at all from eclipse. I am running on windows 10 with java openjdk version "1.8.0_242"

            I've followed various tutorials step-by-step, but keep getting this error. I've also tried running a fresh build that I haven't edited at all and it seems to crash with the same issue.

            Latest crash log.

            ...

            ANSWER

            Answered 2020-Feb-22 at 22:04

            This looks like a certain compatibility issue with Java 8u242 that hasn't yet been resolved. For now, the best workaround is to downgrade to Java 8u232.

            Source https://stackoverflow.com/questions/60346062

            QUESTION

            I'm having issues with HTTP and HTTPS protocols
            Asked 2020-Feb-05 at 01:10

            I am brand spankin' new to coding. In fact, I've learned all I know about gradle through experimentation trying to make this stuff work. I am trying to build a .jar file from an old github file and for the past week, I've been trying in and out to get this thing to work and it always spits out errors. I am currently closer than ever to building this thing - except there's a problem.

            While I try to build my jar file, I am getting the error: Could not resolve all dependencies for configuration ':classpath'. And a lot of feedback, shown below.

            ...

            ANSWER

            Answered 2020-Feb-05 at 01:10

            You're right, the problem is due to the very old Gradle version used in the releases/1.12 branch of that repo.

            The version of Gradle used by the gradlew command is determined by the file gradle/wrapper/gradle-wrapper.properties. If you edit that file and change the distributionUrl property to use gradle-4.4-all.zip (like in develop branch of this repo) instead of gradle-2.0-all.zip, you should be able to at least build the project.

            Source https://stackoverflow.com/questions/60067406

            QUESTION

            Failed to apply plugin: Found java version 11 Minimum required is 1.8. Versions 11.0.0 and newer are not supported yet
            Asked 2020-Jan-29 at 14:37

            I'm trying to build the Minecraft Forge MDK using IntelliJ 2017.3.4 on MacOS 10.14.6. When I do gradlew build I get the following error:

            Failed to apply plugin [id 'net.minecraftforge.gradle'] Found java version 11.0.4. Minimum required is 1.8.0_101. Versions 11.0.0 and newer are not supported yet.`

            However, I don't even have Java 11 installed. The project structure is set to 1.8:

            I switched the IDE boot jdk to 1.8 as well:

            And in Other Settings --> Default project structure I also have it set to Java 8:

            Nevertheless, gradle thinks I'm trying to use Java 11. How on earth do I get it to recognize that I am using Java 8?

            Here is my build.gradle file:

            ...

            ANSWER

            Answered 2020-Jan-29 at 14:37

            You say:

            However, I don't even have Java 11 installed.

            The error message says: "Found java version 11.0.4."

            That means that you do have Java 11 installed. You might not have installed it yourself, or you might have tried to uninstall it. But it is definitely there. Gradle has found the Java 11 installation, and its java command has reported its version number as 11.0.4.

            Looking at the gradlew script, it is using two methods to decide which Java installation to use:

            • If the JAVA_HOME environment variable is set, the script looks for the java executable in the installation that the variable points at.

            • If the JAVA_HOME environment variable is not set, it uses the java command on the command search path; i.e. according to what the PATH environment variable specifies.

            So, check what these two environment variables say ... in the shell where you were running the gradle command. I would recommend setting JAVA_HOME. It needs to point to your Java 8 installation directory.

            (You can reverse engineer the correct JAVA_HOME setting from path to your Java 8 java command and what the gradlew script is doing.)

            Note that multiple installations of Java will happily coexist on a Mac. You just need to make sure that your PATH and/or JAVA_HOME variables point at the right place ... for the version you are currently using / wanting to use.

            Source https://stackoverflow.com/questions/59968267

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ForgeGradle

            You can download it from GitHub.
            You can use ForgeGradle like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the ForgeGradle component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/MinecraftForge/ForgeGradle.git

          • CLI

            gh repo clone MinecraftForge/ForgeGradle

          • sshUrl

            git@github.com:MinecraftForge/ForgeGradle.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link