I tried to use JitPack to add a forked library to my Android project.
allprojects {
repositories {
jcenter()
google()
maven { url 'https://jitpack.io'}
}
}
After sync, my library was added correctly, but the problem is, the newest version of dependencies like Picasso
and okio
was retrieved, other than the version specified in gradle file.
implementation 'com.squareup.okio:okio:1.9.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
Also tried to use includeGroup
to only retrieve my own library via JitPack, but it still get the newest packages somehow.
maven { url 'https://jitpack.io'
content {
includeGroupByRegex "com\\.github\\.myusername.*"
}}
I assume it's a maven repository problem but don't really understand what's going on. Any suggestion is welcomed!