ForgeGradle | Minecraft mod development framework used by Forge and FML | Plugin library
kandi X-RAY | ForgeGradle Summary
kandi X-RAY | ForgeGradle Summary
[Join the chat at Minecraft mod development framework used by Forge and FML for the gradle build system.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- 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
ForgeGradle Key Features
ForgeGradle Examples and Code Snippets
Community Discussions
Trending Discussions on ForgeGradle
QUESTION
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:36I downgraded jdk version to 15.0.2 and this helped to solve problem.
QUESTION
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:23If you use IntelliJ IDEA, then add to the end of the file build.gradle
QUESTION
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:18You need to use ''
, not ‘’
. Replace that line with version ='1.16.5-1.0.0'
.
QUESTION
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:28try replacing http://repo.spongepowered.org/maven/
with https://repo.spongepowered.org/maven/
in your build.gradle file
QUESTION
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;
- Extracted the 1.7.10 src files from the forge website to the file I plan on modding in.
- made a system variable in my environmental variables called Path, which directs to my JDK.
- 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:30So 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:
QUESTION
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:28Seems 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()
QUESTION
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:42Thanks 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.
QUESTION
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:04This 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.
QUESTION
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:10You'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.
QUESTION
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:37You 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 thejava
executable in the installation that the variable points at.If the
JAVA_HOME
environment variable is not set, it uses thejava
command on the command search path; i.e. according to what thePATH
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.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ForgeGradle
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
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page