jitpack 的子模块

T. *_*man 5 android android-studio jitpack

我在 GitHub OmegaIntentBuilder上有一个项目。另外,我在 jitpack.io 上从这个项目创建了库

dependencies {
    compile 'com.github.Omega-R:OmegaIntentBuilder:0.0.5'
}
Run Code Online (Sandbox Code Playgroud)

该库有效,我可以毫无问题地导入它。但是现在我已经创建了两个带有代码生成功能的 java 子模块(“注释”、“处理器”)。

compile project(':annotations')
annotationProcessor project(':processor') 
Run Code Online (Sandbox Code Playgroud)

如何将这些子模块导入 jitpack ?我的意思是我想像这样使用它

compile 'com.github.Omega-R:OmegaIntentBuilder.annotations:0.0.5'
annotationProcessor 'com.github.Omega-R:OmegaIntentBuilder.processor:0.0.5'
Run Code Online (Sandbox Code Playgroud)

我怎么能这样做?

TmT*_*ron 5

这是一个显示如何执行此操作的示例:https : //github.com/jitpack/gradle-modular

要单独安装每个模块,请使用

  • groupIdcom.github.User.Repo
  • artifact idmodule name
  • 请注意,只有 2 个冒号:在组 ID 之后和版本号之前!

    compile 'com.github.jitpack.gradle-modular:client:1.1' 
    compile 'com.github.jitpack.gradle-modular:server:1.1'
    
    Run Code Online (Sandbox Code Playgroud)