I'm trying to publish multiple libraries to github from the same project in android using the maven-publish plugin. I'm trying to make it so that a person can either consume the whole project with all the libraries eg import com.example.libraries; or import it as single modules such as import com.example.libraries.lib1, import com.example.libraries.lib2 and so on. However, I am unable to do so. Is this possible using Github and if so, how can one go about it?
//build.gradle for lib1
publications {
maven(MavenPublication) {
groupId "com.github.example.libraries"
artifactId "lib1"
version System.getProperty("version")
artifact "/build/outputs/aar/lib1-release.aar"
}
//build.gradle for lib2
publications {
maven(MavenPublication) {
groupId "com.github.example.libraries"
artifactId "lib2"
version System.getProperty("version")
artifact "/build/outputs/aar/lib2-release.aar"
}