Had to change the API used here, since originally the script had no way of knowing which Bintray repo the artifact is published into. For example, the Maven artifact io.zipkin.aws:zipkin-autoconfigure-collector-kinesis lives in the zipkin-aws Bintray repo. The /search/packages/maven API does what we need, but can potentially return multiple matches (if the same artifact lives in multiple repositories). The added complexity is to protect against this case.
Had to change the API used here, since originally the script had no way of knowing which Bintray repo the artifact is published into. For example, the Maven artifact
io.zipkin.aws:zipkin-autoconfigure-collector-kinesis
lives in thezipkin-aws
Bintray repo. The/search/packages/maven
API does what we need, but can potentially return multiple matches (if the same artifact lives in multiple repositories). The added complexity is to protect against this case.