Hey Florian,
to select which flavour to publish you can use this snippet:
android {
defaultPublishConfig "flavor1Debug"
}
here the “flavour1Debug” variant is published. As a default the release
build type is published. To publish all different variants you can do
android {
publishNonDefault true
}
This is described in more detail in the android gradle plugin userguide
at http://tools.android.com/tech-docs/new-build-system/user-guide
If you need a further customization here you’d need to configure the
artifacts to be published using the artifacts{} configuration block. You
find a description and further details about this in the gradle
userguide
https://docs.gradle.org/current/userguide/userguide_single.html#N15BB3