@robin4002 a dit dans Mettre à jour les sources de forge :
euuuhhhh d’accordddd
C:\Users\hyde etienne aaron\Pictures\FORGE>gradlew setupDecompWorkspace
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\hyde etienne aaron\Pictures\FORGE\build.gradle' line: 18
* What went wrong:
A problem occurred evaluating root project 'FORGE'.
> Plugin with id 'forge' not found.
* 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: 9.642 secs
C:\Users\hyde etienne aaron\Pictures\FORGE>
build.gradle
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
}
}
apply plugin: 'forge'
repositories {
mavenCentral()
}
version = "1.0"
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "modid"
minecraft {
version = "1.8-11.14.3.1503"
runDir = "eclipse"
}
dependencies {
}
processResources
{
// this will ensure that this task is redone when the versions change.
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
// replace version and mcversion
expand 'version':project.version, 'mcversion':project.minecraft.version
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'dev'
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources' // il est conseillé de mettre "sources" au lieu de "src", sinon gradle ne le considérera pas comme les sources du mod
}
artifacts {
archives deobfJar
archives sourceJar
archives jar
}