2015-10-30 119 views
0

我有这个项目:https://github.com/TomGrill/gdx-facebook/和想要使用它的人必须手动添加第三方依赖关系到他们的build.gradle文件。 (​​)Gradle在我的项目中包含第三方依赖关系

像这样:

compile "de.tomgrill.gdxfacebook:gdx-facebook-android:1.0.0" 
compile "com.facebook.android:facebook-android-sdk:4.7.0" //3rd party project 

我要的仅仅是这一行:

compile "de.tomgrill.gdxfacebook:gdx-facebook-android:1.0.0" 

(1)因此,第三方项目(Android的SDK)将自动被取出当有人将依赖关系(gdx-facebook)发布到他的build.gradle时,通过gradle。

(2)我怎样包括第三方项目到我的项目,所以它会被自动编译/我的项目交付时,我发布。

回答

0

在你的模块gdx-facebook-android只需添加相关性:

dependencies { 
    compile "com.facebook.android:facebook-android-sdk:4.7.0" 
} 

这样的pom file将包含依赖(作为当前GDX-Facebook的核心模块)

相关问题