Closed tompointexe closed 5 years ago
In order to use this dependency you have to add it through either maven or gradle.
Oh yeah i forget that ...
Build Failed
`****
Powered By MCP:
http://modcoderpack.com/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
MCP Data version : unknown
:compileApiJava UP-TO-DATE :processApiResources UP-TO-DATE :apiClasses UP-TO-DATE :sourceMainJava :compileJava
FAILURE: Build failed with an exception.
What went wrong: Could not resolve all dependencies for configuration ':compile'.
Could not find club.minnced:java-discord-rpc:2.0.1. Searched in the following locations: http://files.minecraftforge.net/maven/club/minnced/java-discord-rpc/2.0.1/java-discord-rpc-2.0.1.pom http://files.minecraftforge.net/maven/club/minnced/java-discord-rpc/2.0.1/java-discord-rpc-2.0.1.jar http://repo1.maven.org/maven2/club/minnced/java-discord-rpc/2.0.1/java-discord-rpc-2.0.1.pom http://repo1.maven.org/maven2/club/minnced/java-discord-rpc/2.0.1/java-discord-rpc-2.0.1.jar https://libraries.minecraft.net/club/minnced/java-discord-rpc/2.0.1/java-discord-rpc-2.0.1.pom https://libraries.minecraft.net/club/minnced/java-discord-rpc/2.0.1/java-discord-rpc-2.0.1.jar file:/Users/me/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-10.13.4.1614-1.7.10/java-discord-rpc-2.0.1.jar file:/Users/me/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-10.13.4.1614-1.7.10/java-discord-rpc.jar Required by: fr.altisrp.mod:forge-1.7.10-10.13.4.1614-1.7.10-src:0.0.3
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: 7.71 secs`
You are missing the jcenter repository
buildscript {
repositories {
mavenCentral()
jcenter()
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: "java"
sourceCompatibility = targetCompatibility = '1.8'
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
version = "0.0.3"
group= "fr.altisrp.mod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "Altis-Mod"
minecraft {
version = "1.7.10-10.13.4.1614-1.7.10"
runDir = "eclipse"
}
dependencies {
// you may put jars on which you depend on in ./libs
// or you may define them like so..
//compile "some.group:artifact:version:classifier"
//compile "some.group:artifact:version"
// 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
// for more info...
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
// http://www.gradle.org/docs/current/userguide/dependency_management.html
compile 'club.minnced:java-discord-rpc:2.0.1'
}
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'
}
}
Here is my build.gradle
Without theres lines build passed
Hi i'm trying to use your API to add discord RichPresence in my minecraft mod
When i put the code in my main class at the init process my package become incorect
here is my code
eclipse says to configure build path . i dont knew what to do Thanks for helping me