Gradle: add github project dependency to dev branch instead of master

I am trying to get the "dev" branch instead of the "master" branch from the PhotoView project on Github: https://github.com/chrisbanes/PhotoView/tree/dev

But by default, dependencies get a "leading" branch.

dependencies {
    compile 'com.github.chrisbanes.photoview:library:1.2.3'
}

How can I change this dependency to get the dev branch instead of master?

+4
source share
2 answers

This may be a general consideration.

compile 'com.github.chrisbanes.photoview:library:1.2.3'

It loads aar from Central Maven, not from github.

If you want to work with the dev and gradle branches, you should ask the author to create a snapshot or create it locally.

, lib, 1.2.3 . dev?

+2

:

compile 'com.github.chrisbanes.photoview:library:dev-SNAPSHOT'

https://github.com/jitpack/jitpack.io

0

Source: https://habr.com/ru/post/1541190/


All Articles