git - Gradle:将对github项目的依赖添加到dev分支而不是master

标签 git github gradle android-gradle-plugin build.gradle

我正在尝试从 Github 的 PhotoView 项目中获取“dev”分支而不是“master”分支: https://github.com/chrisbanes/PhotoView/tree/dev

但默认情况下,依赖项获得“master”分支。

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

我应该如何更改此依赖关系以获得“dev”分支而不是“master”?

最佳答案

使用这个:

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

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

关于git - Gradle:将对github项目的依赖添加到dev分支而不是master,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23748354/

相关文章:

ubuntu - Git : ERROR: Permission to repo. git 拒绝用户

android - 应用于所有构建类型的 archiveBaseName

git - 在 Github 上获取 Travis Shield 以反射(reflect)选定的分支状态

git - TeamCity Github 问题

jenkins - 如何从参数值替换jenkins job scm内的github分支

java - 无法建立APK或执行应用程式

android - 'LibraryExtension' 类型的扩展不存在

Git 分支模型策略

java - 无法将 Eclipse 项目克隆到工作区

linux - omn​​ibus 或 source - 无法决定使用哪一个进行 gitllab 备份/恢复