android - How can I specify the latest commit version in Gradle -
i'm using gradle
in android project,and have added dependencies in build.gradle
file.for reasons,i want point latest commit 1 of dependencies.for example:
dependencies { ... compile 'com.github.ozodrukh:circularreveal:1.1.0@aar' }
i'm specifying circularreveal
's version 1.1.0@aar,and know has fixed bugs have not released yet.how can specify commit in gradle?i know basics cocoapods
,and can done this:
pod 'afnetworking', :git => 'https://github.com/gowalla/afnetworking.git', :commit => '082f8319af'
can done in gradle? appreciated.
you can not directly gradle, there gradle plugins , tools can use achieve this.
you can using jitpack, external tool. need specify jitpack repository:
repositories { maven { url "https://jitpack.io" } // define other dependency repositories, if }
then include dependency:
dependencies { compile 'com.github.gowalla:afnetworking:082f8319af' // include other dependencies, if }
you can use use gradle-git-repo-plugin layer, haven't tried 1 yet. advantage(?) of plugin clones repository on local machine , adds dependency there.
Comments
Post a Comment