Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle not finding the project #17

Open
ghost opened this issue Sep 15, 2019 · 9 comments
Open

Gradle not finding the project #17

ghost opened this issue Sep 15, 2019 · 9 comments

Comments

@ghost
Copy link

ghost commented Sep 15, 2019

Whenever I try to use this project with gradle, it cannot find it.

Heres the error:
Could not find com.jagrosh:DiscordIPC:0.4. Searched in the following locations: - file:/Users/myuser/.gradle/caches/forge_gradle/bundeled_repo/com/jagrosh/DiscordIPC/0.4/DiscordIPC-0.4.pom - file:/Users/myuser/.gradle/caches/forge_gradle/bundeled_repo/com/jagrosh/DiscordIPC/0.4/DiscordIPC-0.4.jar - https://files.minecraftforge.net/maven/com/jagrosh/DiscordIPC/0.4/DiscordIPC-0.4.pom - https://files.minecraftforge.net/maven/com/jagrosh/DiscordIPC/0.4/DiscordIPC-0.4.jar - https://libraries.minecraft.net/com/jagrosh/DiscordIPC/0.4/DiscordIPC-0.4.jar - https://repo.maven.apache.org/maven2/com/jagrosh/DiscordIPC/0.4/DiscordIPC-0.4.pom - https://repo.maven.apache.org/maven2/com/jagrosh/DiscordIPC/0.4/DiscordIPC-0.4.jar Required by: project :

@Sanduhr32
Copy link

What repositories do you have in gradle?

@jagrosh
Copy link
Owner

jagrosh commented Sep 16, 2019

It looks like you forgot to add jcenter to the repositories section:

repositories {
    jcenter()
}

@ghost
Copy link
Author

ghost commented Sep 17, 2019

I've already tried that, heres my build.gradle file
https://pastebin.com/WTLNk3eD

@lukeacat
Copy link

Same issue here

build.gradle: https://pastebin.com/g3yNJeUw
Error: Could not resolve: com.jagrosh:DiscordIPC:0.4

@crykn
Copy link

crykn commented Feb 16, 2021

Hey @LimaBean2091 and @lukeacat! You need to add the JCenter repository to the repositories section of the build.gradle file itself (which does not yet exist in your gradle files) and not to the one inside of thebuildscript block.

On a related note: @jagrosh, since it was announced that JCenter is shutting down, are there any plans to offer this library through another repository?

@lukeacat
Copy link

lukeacat commented Feb 16, 2021

Haha, I already fixed this long ago, thanks for the mention anyways! I forgot to post the sulution!

EDIT: About JCenter, I don't feel like it should be moved yet, becuase
To clarify, the JCenter repository will keep serving packages for 12 months until February 1st 2022. Only the JCenter REST API and UI will be sunsetted on May 1st 2021.
and moving it right now would be kinda unproductive :P I don't know though.

@blueysh
Copy link

blueysh commented Apr 26, 2022

Hey there! Wanted to check in on the status of this, has DiscordIPC been made available in mavenCentral()? Obviously jcenter() isn't serving packages anymore so I can't use it in my project.

@jagrosh
Copy link
Owner

jagrosh commented Apr 26, 2022

You can use jitpack

@blueysh
Copy link

blueysh commented Apr 26, 2022

Ah thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants