How can I specify the latest commit version in Gradle

tounaobun

I'm using Gradle in my Android project,and I have added some dependencies in build.gradle file.For some reasons,I want to point to the latest commit for one of my dependencies.For example:

dependencies {
    ...
    compile 'com.github.ozodrukh:CircularReveal:1.1.0@aar'

}

I'm specifying CircularReveal's version to be 1.1.0@aar,and I know currently it has fixed some bugs but have not released it yet.How can I specify a commit in Gradle?I know some basics about Cocoapods,and it can be done like this:

pod 'AFNetworking', :git => 'https://github.com/gowalla/AFNetworking.git', :commit => '082f8319af'

Can it be done in Gradle? Any help would be greatly appreciated.

ugo

You can not do this directly from Gradle, but there are Gradle plugins and tools you can use to achieve this.

You can do this using Jitpack, an external tool. All you need to do is specify Jitpack as a repository:

repositories {
    maven {
        url "https://jitpack.io"
    }
    // Define your other dependency repositories, if any
}

Then include your dependency:

dependencies {
    compile 'com.github.ozodrukh:CircularReveal:25aeca505d'
    // Include your other dependencies, if any
}

You can also use use the gradle-git-repo-plugin from Layer, but I haven't tried this one yet. An advantage(?) of this plugin is that it clones the repository on your local machine and adds it as a dependency from there.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I specify a category for a Gradle task?

From Dev

Gradle How can i specify the cacheResolutionStrategy for the SNAPSHOT version in my buildscript block?

From Dev

How can I install the latest version of Tor?

From Dev

How can I install the latest version of Tor?

From Dev

How I can determine the latest version in URL?

From Dev

How can I install the latest version of libmtp?

From Dev

How can I specify a Groovy CompilerConfig using Gradle?

From Dev

How can I specify a Groovy CompilerConfig using Gradle?

From Dev

How can I specify a python version using setuptools?

From Dev

How Can I Specify A Minimum Ruby Version in a Gemfile?

From Java

How can I get latest version of nano (4.5) on CentOS 7?

From Dev

How can I check latest available version of Symfony with any API?

From Dev

How can I install the latest upstream version of ImageMagick without compiling?

From Dev

How can I use the latest version of Imagemagick on Heroku?

From Dev

How can I update my nodeJS to the latest version?

From Dev

How can I install the latest upstream version of ImageMagick without compiling?

From Dev

How can I update my nodeJS to the latest version?

From Dev

How can I update gcc to the latest version in Ubuntu 10.04?

From Dev

How I can properly update VirtualBox to the latest version?

From Dev

How can I select the latest version of an object from a ForerunnerDb collection

From Dev

How can I use the latest version of node with yarn?

From Dev

How can I convert this nginx upstream block to be accepted by the latest version?

From Dev

How to specify servlet-api version in Gradle?

From Dev

How to use the latest gradle version in Android Studio

From Dev

How do I specify a dependency that end with '<version>-bin.exe' in gradle?

From Java

How can I force Gradle to set the same version for two dependencies?

From Dev

Can I specify a min Dub or DMD version?

From Dev

Where can I download the latest version of Dropbox?

From Dev

How can I upgrade my WSO2 Identity server version 4.5 to latest version directly?

Related Related

  1. 1

    How can I specify a category for a Gradle task?

  2. 2

    Gradle How can i specify the cacheResolutionStrategy for the SNAPSHOT version in my buildscript block?

  3. 3

    How can I install the latest version of Tor?

  4. 4

    How can I install the latest version of Tor?

  5. 5

    How I can determine the latest version in URL?

  6. 6

    How can I install the latest version of libmtp?

  7. 7

    How can I specify a Groovy CompilerConfig using Gradle?

  8. 8

    How can I specify a Groovy CompilerConfig using Gradle?

  9. 9

    How can I specify a python version using setuptools?

  10. 10

    How Can I Specify A Minimum Ruby Version in a Gemfile?

  11. 11

    How can I get latest version of nano (4.5) on CentOS 7?

  12. 12

    How can I check latest available version of Symfony with any API?

  13. 13

    How can I install the latest upstream version of ImageMagick without compiling?

  14. 14

    How can I use the latest version of Imagemagick on Heroku?

  15. 15

    How can I update my nodeJS to the latest version?

  16. 16

    How can I install the latest upstream version of ImageMagick without compiling?

  17. 17

    How can I update my nodeJS to the latest version?

  18. 18

    How can I update gcc to the latest version in Ubuntu 10.04?

  19. 19

    How I can properly update VirtualBox to the latest version?

  20. 20

    How can I select the latest version of an object from a ForerunnerDb collection

  21. 21

    How can I use the latest version of node with yarn?

  22. 22

    How can I convert this nginx upstream block to be accepted by the latest version?

  23. 23

    How to specify servlet-api version in Gradle?

  24. 24

    How to use the latest gradle version in Android Studio

  25. 25

    How do I specify a dependency that end with '<version>-bin.exe' in gradle?

  26. 26

    How can I force Gradle to set the same version for two dependencies?

  27. 27

    Can I specify a min Dub or DMD version?

  28. 28

    Where can I download the latest version of Dropbox?

  29. 29

    How can I upgrade my WSO2 Identity server version 4.5 to latest version directly?

HotTag

Archive