0

My library is on Jcenter. To import it as a Gradle dependency, one must also manually specify the repository's URL like this in the receiving project's build.gradle :

  repositories {
       
        jcenter()
        maven {
            url  "https://dl.bintray.com/fabricethilaw/sonarnet"
        }
    }

How to configure my library in order to make it resolved with only the Gradle implementation com.fabricethilaw.sonarnet:core:xxx?


UPDATE ABOUT JCENTER

I have checked on Bintray and it looks like my library is already approved on JCenter.

enter image description here

Maybe I am missing something in order to help people get not to have to add maven { url "https://dl.bintray.com/fabricethilaw/sonarnet" }, when they import the library in Gradle

Dror Bereznitsky
  • 20,048
  • 3
  • 48
  • 57
Thilaw Fabrice
  • 662
  • 6
  • 10
  • You have all that is necessary already. What is not working? Any errors? Which ones? – Henry Nov 04 '20 at 12:52
  • It's working fine. But I see many libraries online that do not require to set the "maven { url }" part in the project gradle file before being resolved. All you do is to add the dependency with 'implementation' tag. I would like it to be the same with my library – Thilaw Fabrice Nov 04 '20 at 12:57
  • Your library is not in Jcenter its in bintray. – seenukarthi Nov 04 '20 at 13:13
  • @ThilawFabrice Those libraries are probaby in jcenter or MavenCentral. – J Fabian Meier Nov 04 '20 at 13:52

0 Answers0