have problem about build.gradle
xwm850565206 opened this issue · 1 comments
hello, I want to use geckolib in my project version forge 1.12.2, and when I follow the "Installing" steps, it went out
"Could not find deobf.software.bernie.geckolib:forge-1.12.2-geckolib:2.0.2.
Required by:
project :
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
"
here is my build.gradle:
buildscript {
repositories {
jcenter()
repositories {
maven {
name = 'forge'
url = 'http://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 = ""
group = "creeper.xwm.magic_maid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "[1.12.2]magic_maid-5.5测试版"
sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
minecraft {
version = "1.12.2-14.23.5.2768"
runDir = "run"
mappings = "snapshot_20171003"
useDepAts = true
}
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 except the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
repositories {
maven { url 'https://repo.repsy.io/mvn/gandiber/geckolib' }
}
dependencies {
deobfCompile ('software.bernie.geckolib:forge-1.12.2-geckolib:2.0.2')
}
I'm not good at English, sorry for my poor expression.