Duplicate of #28
Though the team thought it was better for project that don't rely on maven like source repositories.
cc @szczepiq 

Source files should not be put in binary JAR 
Source files (`*.java`) should not be put into binary `mockito-core.jar`. It stupefies Idea to show decompiled file even when source jar is available.

build.gradle
build.gradle
diff --git a/build.gradle b/build.gradle
index 94ebdaf3cc..3ed8f310c0 100644
--- a/build.gradle
+++ b/build.gradle
@@ -71,7 +71,7 @@ def licenseFiles = copySpec {
 
 jar {
     baseName = 'mockito-core'
-    from(sourceSets.main.allSource)
+    from(sourceSets.main.output)
     from(zipTree("lib/repackaged/cglib-and-asm-1.0.jar")) {
         exclude 'META-INF/MANIFEST.MF'
     }
