简体   繁体   English

Gradle git依赖项

[英]Gradle git dependencies

I write multi module android projects. 我写了多个模块的android项目。 One of this module - it is another project in git repository on gitlab. 这个模块之一 - 它是gitlab上git仓库中的另一个项目。 How i can pull it in gradle? 我怎么能把它拉进gradle? I tried gradle-plugin-git-dependencies and maven-git-commit-id-plugin/pull/92 我试过gradle-plugin-git-dependencies和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. 但他们没有从git中拉出项目。 I use Android Studio 0.5.1. 我使用的是Android Studio 0.5.1。

您必须首先运行initGitDependencies gradle的任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM