Last active
November 25, 2019 09:18
-
-
Save ROMVoid95/6a8bc344f72cb56e65a9240ba5023946 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
jcenter() | |
maven { url = "https://files.minecraftforge.net/maven" } | |
} | |
dependencies { | |
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' | |
} | |
} | |
apply plugin: 'net.minecraftforge.gradle.forge' | |
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. | |
version = "1.0.0" | |
group = "com.yourname.addon" | |
archivesBaseName = "Your Addon's Name" | |
sourceCompatibility = targetCompatibility = '1.8' | |
compileJava { | |
sourceCompatibility = targetCompatibility = '1.8' | |
} | |
minecraft { | |
version = "1.12.2-14.23.5.2838" | |
runDir = "run" | |
mappings = "snapshot_20171003" | |
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. | |
} | |
dependencies { | |
//MAKE SURE THESE FILES ARE IN THE DIRECTORY SPECIFIED. "The Folder lib/ in the root directory in this example" | |
compile files ( | |
"lib/Galacticraft-API-1.12.2-4.0.2.238.jar", | |
"lib/GalacticraftCore-Dev-1.12.2-4.0.2.238.jar", | |
"lib/Galacticraft-Planets-Dev-1.12.2-4.0.2.238.jar", | |
"lib/MicdoodleCore-Dev-1.12.2-4.0.2.238.jar", | |
) | |
} | |
processResources { | |
inputs.property "version", project.version | |
inputs.property "mcversion", project.minecraft.version | |
from(sourceSets.main.resources.srcDirs) { | |
include 'mcmod.info' | |
expand 'version':project.version, 'mcversion':project.minecraft.version | |
} | |
from(sourceSets.main.resources.srcDirs) { | |
exclude 'mcmod.info' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment