I am trying to publish the first release of the Overpass library to Bintray/jCenter using the gradle-bintray-plugin v.1.5. I prepared the configuration on this temporary branch:
I did not prepare anything on the Bintray website besides an account on which I published before. So I also have a bintrayUser
and bintrayApiKey
in place for Gradle. Please tell me if I need to manually setup something beforehand. - Then, I run the following command:
$ ./gradlew clean assemble bintrayUpload
This fails with this error:
Execution failed for task ':bintrayUpload'.
> Could not create package 'tbsprs/maven/Overpass': HTTP/1.1 400 Bad Request [message:License '[' does not exist]
Can you spot the mistake?
I managed to release the library by temporarily replacing:
licenses = project.packageLicenses
with
licenses = ['Apache-2.0']
Note that I use gradle.properties to maintain these values in one place.
I already reported this behavior and hope the bug is fixed soon.
Here is the follow up issue for this case: