I've used the following standard code to upload my library to bintray. 

I have two modules, a 'sample' module for testing and a 'library' module. I want to use a custom artifactId when I upload this to bintray but instead the artifactId gets changed to "library" (the module name) and I don't want this!

I know I could rename my "library" module to the desired name but I also want to keep this structure of module names.

I want something like: `com.mydomain.something:CUSTOM-NAME:version`.  

And NOT something like: `com.mydomain.something:LIBRARY:version`.  

```
ext {
    bintrayRepo = 'maven'
    bintrayName = 'MyLibrary'

    // Maven metadata
    publishedGroupId = 'com.domain.name'
    libraryName = 'MyLibrary'
    artifact = 'custom-name'

    libraryDescription = 'description'
    libraryVersion = '0.0.1'

    developerId = 'someone'
    developerName = 'someone'
    developerEmail = 'someone@gmail.com'
}

```

I know all of this is possible since I've seen a couple of repositories using this module name structure and having "custom" artifactId on bintray/JCenter.

Example: 

* [Library 1](https://github.com/futuresimple/android-floating-action-button)
* [Library 2](https://github.com/makovkastar/FloatingActionButton)