Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding JCenter into Intellij IDEA

I need to add https://jcenter.bintray.com/ into IntelliJ IDEA. IJ should be able to find and update packages from JCenter as it does for Maven Central.

Currently when I add the URL to the list of maven repos, it complains "No repositories found".

settings screen shot

Note: I use the internal IJ build system, there is no Maven or Gradle there (and I have my reasons not to use them)

like image 581
voddan Avatar asked Apr 15 '16 14:04

voddan


People also ask

Where do you put JCenter?

Add jCenter repository in project's build. gradle file as shown below and sync your project: allprojects { repositories { jcenter() . . . } } On successful sync, you're now able to add any Android dependency hosted on jCenter repository.

Why is JCenter shutting down?

The jcenter() method will be removed in the next major release. Packages that are hosted on JCenter will need to find an alternative repository to provide updates after March 31 2021. Many packages will likely migrate to Maven Central, but some packages may not migrate at all and some may only publish new versions.

Is JCenter deprecated?

JFrog announced in this article that JCenter would be deprecated in May of 2021.

What should I replace JCenter with?

As JCenter was very popular, this decision drove many developers to look for an alternative, and this alternative is called mavenCentral. MavenCentral is a maven library repository which is supported by gradle and Android Studio. It is even automatically used in the new Android Studio projects.


1 Answers

JCenter is not currently supported by IntelliJ IDEA. See this issue: https://youtrack.jetbrains.com/v2/issue/IDEA-154970

like image 153
Daniel Wolf Avatar answered Oct 24 '22 18:10

Daniel Wolf