6

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?

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
T. Roman
  • 322
  • 6
  • 14

1 Answers1

6

here is an example that shows how to do it: https://github.com/jitpack/gradle-modular

To install each module individually use

  • groupId: com.github.User.Repo
  • artifact id: module name
  • note that there are only 2 colons: after the group-id and before the version number!

    compile 'com.github.jitpack.gradle-modular:client:1.1' 
    compile 'com.github.jitpack.gradle-modular:server:1.1'
    
ColdFire
  • 6,764
  • 6
  • 35
  • 51
TmTron
  • 17,012
  • 10
  • 94
  • 142