- 1,417
- 44
- 594
Грабли:
Gradle (Groovy):
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:1.2-SNAPSHOT'
}
}
apply plugin: 'forge'
apply plugin: 'idea'
idea {
module {
inheritOutputDirs = true
}
}
subprojects {
apply plugin: 'idea'
}
version = "1.0"
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "mine"
sourceCompatibility = 1.8
targetCompatibility = 1.8
minecraft {
/*36 строка*/ version = "1.7.10-10.13.4.1558-1.7.10"
runDir = "eclipse"
}
dependencies {
compile fileTree(dir: 'librs', includes: ['*.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'
}
}
- Краш-лог
-
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Tenebrius\Coding\minecraft\build.gradle' line: 36
* What went wrong:
A problem occurred evaluating root project 'minecraft'.
> No such version exists!
* 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: 1.11 secs
No such version exists!
Open File
Краш-лог:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Tenebrius\Coding\minecraft\build.gradle' line: 36
* What went wrong:
A problem occurred evaluating root project 'minecraft'.
> No such version exists!
* 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: 1.11 secs
No such version exists!
Open File