Upgrade to 14.23.5.2860
This commit is contained in:
parent
7fcdee4309
commit
6cf619bfb2
@ -1,4 +1,4 @@
|
|||||||
# Forge MDK - 1.12.2 - Rectrocompatibility fork
|
# Forge MDK - 1.12.2 - Retrocompatibility fork
|
||||||
|
|
||||||
-------------------------------------------
|
-------------------------------------------
|
||||||
Modified for retro-compatibility
|
Modified for retro-compatibility
|
||||||
@ -8,6 +8,8 @@ you can't run your old workspace! *I hate you maven and python user...*
|
|||||||
I keep updated this fork using [ForgeGradle-2.3 made by anatawa12](https://github.com/anatawa12/ForgeGradle-2.3)
|
I keep updated this fork using [ForgeGradle-2.3 made by anatawa12](https://github.com/anatawa12/ForgeGradle-2.3)
|
||||||
for me and others who want to make nostalgic moment great again!
|
for me and others who want to make nostalgic moment great again!
|
||||||
|
|
||||||
|
And a copy of the [gradle cache](https://repo.jcsmith.fr/mc/gradle_cache_1.12.2.rar) , in case...
|
||||||
|
|
||||||
-------------------------------------------
|
-------------------------------------------
|
||||||
Source installation information for modders
|
Source installation information for modders
|
||||||
-------------------------------------------
|
-------------------------------------------
|
||||||
|
136
build.gradle
136
build.gradle
@ -1,76 +1,100 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
|
maven { url = 'https://maven.minecraftforge.net/' }
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven { url = "https://maven.minecraftforge.net/" }
|
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath("com.anatawa12.forge:ForgeGradle:2.3-1.0.+") {
|
classpath 'net.minecraftforge.gradle:ForgeGradle: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'
|
||||||
|
|
||||||
|
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: '20171003-1.12'
|
||||||
|
mappings channel: 'stable', version: '39-1.12'
|
||||||
|
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
|
||||||
|
|
||||||
|
// accessTransformer = file('src/main/resources/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'
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
|
||||||
|
// 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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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"
|
|
||||||
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 {
|
|
||||||
version = "1.12.2-14.23.5.2847"
|
|
||||||
runDir = "run"
|
|
||||||
|
|
||||||
// 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 = "stable_39"
|
|
||||||
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// you may put jars on which you depend on in ./libs
|
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
|
||||||
// or you may define them like so..
|
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
|
||||||
//compile "some.group:artifact:version:classifier"
|
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
|
||||||
//compile "some.group:artifact:version"
|
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2860'
|
||||||
|
|
||||||
// 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.
|
// You may put jars on which you depend on in ./libs or you may define them like so..
|
||||||
//provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
|
// compile "some.group:artifact:version:classifier"
|
||||||
|
// compile "some.group:artifact:version"
|
||||||
|
|
||||||
// the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
|
// Real examples
|
||||||
// except that these dependencies get remapped to your current MCP mappings
|
// compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
|
||||||
//deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
|
// compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
|
||||||
//deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
|
|
||||||
|
|
||||||
// for more info...
|
// 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/artifact_dependencies_tutorial.html
|
||||||
// http://www.gradle.org/docs/current/userguide/dependency_management.html
|
// http://www.gradle.org/docs/current/userguide/dependency_management.html
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
// Example for how to get properties into the manifest for reading by the runtime..
|
||||||
// this will ensure that this task is redone when the versions change.
|
jar {
|
||||||
inputs.property "version", project.version
|
manifest {
|
||||||
inputs.property "mcversion", project.minecraft.version
|
attributes([
|
||||||
|
"Specification-Title": "examplemod",
|
||||||
// replace stuff in mcmod.info, nothing else
|
"Specification-Vendor": "examplemodsareus",
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
"Specification-Version": "1", // We are version 1 of ourselves
|
||||||
include 'mcmod.info'
|
"Implementation-Title": project.name,
|
||||||
|
"Implementation-Version": "${version}",
|
||||||
// replace version and mcversion
|
"Implementation-Vendor" :"examplemodsareus",
|
||||||
expand 'version':project.version, 'mcversion':project.minecraft.version
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
|
||||||
}
|
])
|
||||||
|
|
||||||
// copy everything else except the mcmod.info
|
|
||||||
from(sourceSets.main.resources.srcDirs) {
|
|
||||||
exclude 'mcmod.info'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Example configuration to allow publishing using the maven-publish task
|
||||||
|
// This is the preferred method to reobfuscate your jar file
|
||||||
|
jar.finalizedBy('reobfJar')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user