:joy: 

Publish Mockito build results to Gradle Build Scans
Let's start publishing Mockito build results to Gradle Build Scans. This way we have extra intel about Gradle builds. This also helps friends at Gradle as they will have more projects on board!

.travis.yml build.gradle gradle/wrapper/gradle-wrapper.properties gradlew gradlew.bat src/main/java/org/mockito/internal/junit/StubbingArgMismatches.java src/main/java/org/mockito/internal/junit/UnusedStubbings.java
.travis.yml build.gradle gradle/wrapper/gradle-wrapper.properties gradlew gradlew.bat src/main/java/org/mockito/internal/junit/StubbingArgMismatches.java src/main/java/org/mockito/internal/junit/UnusedStubbings.java
diff --git a/.travis.yml b/.travis.yml
index 7ec6b9b61d..46a81e5c81 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -49,7 +49,7 @@ branches:
 install:
  - true
 script:
-  - ./gradlew ciBuild release
+  - ./gradlew ciBuild release -Dscan
 after_success:
   - ./gradlew --stacktrace coverageReport && cp build/reports/jacoco/mockitoCoverage/mockitoCoverage.xml jacoco.xml || echo "Code coverage failed"
   - bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
diff --git a/build.gradle b/build.gradle
index 9d40980a89..ea9a70728e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -8,6 +8,11 @@ buildscript {
         classpath 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.2' //rest calls to bintray api
     }
 }
+
+plugins {
+    id 'com.gradle.build-scan' version '1.0'
+}
+
 apply plugin: 'java'
 group = 'org.mockito'
 description = 'Core API and implementation.'
@@ -117,7 +122,7 @@ apply from: 'gradle/release.gradle'
 apply from: "gradle/pom.gradle"
 
 task wrapper(type: Wrapper) {
-    gradleVersion = '2.4'
+    gradleVersion = '2.14.1'
 }
 
 task ciBuild {
@@ -128,3 +133,9 @@ task ciBuild {
 
 //Making sure that release task is only invoked after the entire ciBuild validation
 release.mustRunAfter ciBuild
+
+//Posting Build scans to https://scans.gradle.com
+buildScan {
+    licenseAgreementUrl = 'https://gradle.com/terms-of-service'
+    licenseAgree = 'yes'
+}
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 0b5a32f1e1..69ef29851a 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Wed Jul 06 11:31:59 CEST 2016
+#Fri Aug 19 18:41:31 PDT 2016
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.11-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
diff --git a/gradlew b/gradlew
index 91a7e269e1..9d82f78915 100755
--- a/gradlew
+++ b/gradlew
@@ -42,11 +42,6 @@ case "`uname`" in
     ;;
 esac
 
-# For Cygwin, ensure paths are in UNIX format before anything is touched.
-if $cygwin ; then
-    [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
-fi
-
 # Attempt to set APP_HOME
 # Resolve links: $0 may be a link
 PRG="$0"
@@ -61,9 +56,9 @@ while [ -h "$PRG" ] ; do
     fi
 done
 SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/" >&-
+cd "`dirname \"$PRG\"`/" >/dev/null
 APP_HOME="`pwd -P`"
-cd "$SAVED" >&-
+cd "$SAVED" >/dev/null
 
 CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
 
@@ -114,6 +109,7 @@ fi
 if $cygwin ; then
     APP_HOME=`cygpath --path --mixed "$APP_HOME"`
     CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+    JAVACMD=`cygpath --unix "$JAVACMD"`
 
     # We build the pattern for arguments to be converted via cygpath
     ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
diff --git a/gradlew.bat b/gradlew.bat
index 8a0b282aa6..5f192121eb 100644
--- a/gradlew.bat
+++ b/gradlew.bat
@@ -46,7 +46,7 @@ echo location of your Java installation.
 goto fail
 
 :init
-@rem Get command-line arguments, handling Windowz variants
+@rem Get command-line arguments, handling Windows variants
 
 if not "%OS%" == "Windows_NT" goto win9xME_args
 if "%@eval[2+2]" == "4" goto 4NT_args
diff --git a/src/main/java/org/mockito/internal/junit/StubbingArgMismatches.java b/src/main/java/org/mockito/internal/junit/StubbingArgMismatches.java
index 31a14646a0..53f48b2e2f 100644
--- a/src/main/java/org/mockito/internal/junit/StubbingArgMismatches.java
+++ b/src/main/java/org/mockito/internal/junit/StubbingArgMismatches.java
@@ -27,7 +27,6 @@ public void format(String testName, MockitoLogger logger) {
         }
 
         StubbingHint hint = new StubbingHint(testName);
-        //TODO 544 it would be nice to make the String look good if x goes multiple digits (padding)
         int x = 1;
         for (Map.Entry<Invocation, Set<Invocation>> m : mismatches.entrySet()) {
             hint.appendLine(x++, ". Unused... ", m.getKey().getLocation());
diff --git a/src/main/java/org/mockito/internal/junit/UnusedStubbings.java b/src/main/java/org/mockito/internal/junit/UnusedStubbings.java
index 1f415ca776..baaf0516ec 100644
--- a/src/main/java/org/mockito/internal/junit/UnusedStubbings.java
+++ b/src/main/java/org/mockito/internal/junit/UnusedStubbings.java
@@ -21,7 +21,6 @@ void format(String testName, MockitoLogger logger) {
             return;
         }
 
-        //TODO 544 it would be nice to make the String look good if x goes multiple digits (padding)
         StubbingHint hint = new StubbingHint(testName);
         int x = 1;
         for (Stubbing candidate : unused) {
