Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle git dependencies

I write multi module android projects. One of this module - it is another project in git repository on gitlab. How i can pull it in gradle? I tried gradle-plugin-git-dependencies and maven-git-commit-id-plugin/pull/92

buildscript {
    repositories {
        mavenCentral()
    }
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
classpath 'org.batcha.gradle.plugins:git-dependencies:0.1'
apply from: 'https://raw.github.com/bat-cha/gradle-plugin-git-dependencies/0.1/git-dependencies.gradle'
compile('org.batcha:dummy-project-a:4.2').ext.git = 'https://gitlab.com/Artem_Chekharin/uz.git'
}
}

But they didn't pull project from git. I use Android Studio 0.5.1.

like image 509
Nikolay Avatar asked Aug 01 '26 06:08

Nikolay


1 Answers

You have to run initGitDependencies gradle's task first.

like image 154
Alexander Pakulov Avatar answered Aug 02 '26 19:08

Alexander Pakulov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!