- Published on
How to Load Maven Dependencies That Are on Github But Not On Maven Central
- Authors
- Name
- Yair Mark
- @yairmark
With JCenter being deprecated as a maven repository there are a number of dependencies on there which are not on Maven central. I ran into one of these dependencies au.com.console:kotlin-jpa-specification-dsl
and it seemed there was no easy way around it.
Luckily JPA Specification DSL is on Github and a colleqgue suggested using Jitpack instead. I had never heard of Jitpack which is apparently quite common to use in the Android ecosystem.
After looking through their setup page and searching for my particular dependency I found it was really easy and painless to setup.
I ended up modifying my build.gradle as suggested and the issue is sorted now:
//...
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
//...
dependencyManagement {
//...
implementation 'com.github.consoleau:kotlin-jpa-specification-dsl:v2.0.0'
}
//...