5

I have a project on GitHub OmegaIntentBuilder. Also, I created library from this project on jitpack.io

dependencies {
    compile 'com.github.Omega-R:OmegaIntentBuilder:0.0.5'
}

The library works, I could import it without any problems. But now I've created two java submodules ("annotations", "processor") with code generation.

compile project(':annotations')
annotationProcessor project(':processor') 

How could I import these submodules to jitpack ?? I mean I want to use it like this

compile 'com.github.Omega-R:OmegaIntentBuilder.annotations:0.0.5'
annotationProcessor 'com.github.Omega-R:OmegaIntentBuilder.processor:0.0.5'

How could I do this?

4

1 回答 1

5

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

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

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

    compile 'com.github.jitpack.gradle-modular:client:1.1' 
    compile 'com.github.jitpack.gradle-modular:server:1.1'
    
于 2017-12-29T14:43:51.077 回答