Skip to content

example project of fork of ForgeGradle 1.2 made by anatawa12

License

Notifications You must be signed in to change notification settings

anatawa12/ForgeGradle-example

Repository files navigation

anatawa12's ForgeGradle 1.2 fork for Gradle 4.4.1+ - example project

This is an example mod using the fork of ForgeGradle-1.2 made by anatawa12. This fork supports Gradle 4.4.1 and later. This example project uses Gradle 5.6.4.

How to use this example project

You can download this example project from here, or use it as a template on Github. This project can be used as a replacement for Forge's 1.7.10 MDK.

How to replace ForgeGradle 1.2. with anatawa12's fork

Although this example project has some differences to Forge's 1.7.10 MDK, anatawa12's fork of ForgeGradle 1.2 can be used by most projects with only minimal changes to their Gradle build script.

Here is a list of changes to Forge's 1.7.10 MDK Gradle build script, to replace the official ForgeGradle 1.2 plugin with the fork. These changes are likely to work with most projects based on Forge's 1.7.10 MDK.

In the repositories block of the buildscript section, add jcenter, and switch the Forge maven to use HTTPS instead of HTTP:

     repositories {
         mavenCentral()
         maven {
             name = "forge"
-            url = "http://files.minecraftforge.net/maven"
+            url = "https://maven.minecraftforge.net/"
         }

Also in the dependencies block of the buildscript section, change the dependency on Forge's official ForgeGradle 1.2 to the fork:

     dependencies {
-        classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
+        classpath ('com.anatawa12.forge:ForgeGradle:1.2-1.1.+') {
+            changing = true
+        }
     }

The Gradle wrapper should also be changed to use Gradle 4.4.1 or higher.

About

example project of fork of ForgeGradle 1.2 made by anatawa12

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages