Repository: mockito/mockito
Issue: Artifact ID changes

Since `2.20.0` Mockito Maven artifact IDs [have changed](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.mockito%22).

* `mockito-android` → `android`
* `mockito-inline` → `inline`
* `mockito-junit-jupiter` → `junit-jupiter`

Not sure if it is an intended change or not, so decided to clarify things a bit. So... Is it an intended change? It isn’t mentioned in the changelog.

Issue comments:
It's a bug. Thank you for reporting!
@epeee, can you take a look at this?
Upstream bug in Shipkit: https://github.com/mockito/shipkit/issues/741
@mockitoguy sorry, I was busy yesterday. 
I can have a look at the upstream bug in shipkit tomorrow.
Not sure if it is related but the `2.20.1` is available in JCenter but not in Maven Central.
There is some delay. Bintray log shows that the sync was successful. Let's wait until the end of the day.

Thanks for checking!
OSS repo has the right artifacts so I think it's just a delay before it's searchable in central. Proof - [pom.xml](https://oss.sonatype.org/service/local/artifact/maven/redirect?r=releases&g=org.mockito&a=mockito-inline&v=2.20.1&e=pom) in the Sonatype OSS 'release' repo.

Let's keep the ticket open until we add tests for the artifacts. @ming13, do you want to contribute a test that would verify artifact IDs? This should be a form of a Gradle task.
The issue is fixed in 2.20.1. I've added tests to prevent the issue in the future.

Thanks again for reporting!!!

Pull request review comments:

Patch that resolved the issue:
diff --git a/build.gradle b/build.gradle
index 9045d4c59e..b6f4a2ddc7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -98,3 +98,14 @@ buildScan {
     licenseAgreementUrl = 'https://gradle.com/terms-of-service'
     licenseAgree = 'yes'
 }
+
+//workaround for #1444, delete when Shipkit bug is fixed
+subprojects {
+    afterEvaluate {
+        def lib = publishing.publications.javaLibrary
+        if(lib && !lib.artifactId.startsWith("mockito-")) {
+            lib.artifactId = "mockito-" + lib.artifactId
+        }
+    }
+}
+//end workaround
diff --git a/doc/release-notes/official.md b/doc/release-notes/official.md
index f2464ac967..9788c97055 100644
--- a/doc/release-notes/official.md
+++ b/doc/release-notes/official.md
@@ -1,6 +1,9 @@
 <sup><sup>*Release notes were automatically generated by [Shipkit](http://shipkit.org/)*</sup></sup>
 
 #### 2.20.0
+
+__Deprecated__ because auxiliary artifacts were published with wrong identifiers ([#1444](https://github.com/mockito/mockito/issues/1444))
+
  - 2018-07-24 - [55 commits](https://github.com/mockito/mockito/compare/v2.19.6...v2.20.0) by [Szczepan Faber](https://github.com/mockitoguy) (52), epeee (3) - published to [![Bintray](https://img.shields.io/badge/Bintray-2.20.0-green.svg)](https://bintray.com/mockito/maven/mockito/2.20.0)
  - Update gradle (v4.9) and shipkit (v2.0.28) [(#1435)](https://github.com/mockito/mockito/pull/1435)
  - Strictness configurable per mock / stubbing [(#1272)](https://github.com/mockito/mockito/pull/1272)
diff --git a/gradle/java-library.gradle b/gradle/java-library.gradle
index 45c72f11d2..ecf217ca9a 100644
--- a/gradle/java-library.gradle
+++ b/gradle/java-library.gradle
@@ -1,7 +1,11 @@
 apply plugin: "java"
 
 group = 'org.mockito'
-archivesBaseName = "mockito-" + project.name
+
+if (!archivesBaseName.startsWith("mockito-")) {
+    archivesBaseName = "mockito-" + project.name
+}
+
 bintrayUpload.enabled = true
 
 sourceCompatibility = 1.6


Test patch: