You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by gu...@apache.org on 2015/11/18 21:44:07 UTC

kafka git commit: MINOR: Update to Gradle 2.9 and update generated `gradlew` file

Repository: kafka
Updated Branches:
  refs/heads/trunk 8f6ffe1c2 -> d6e900a18


MINOR: Update to Gradle 2.9 and update generated `gradlew` file

More performance improvements:

"In many cases, Gradle 2.9 is much faster than Gradle 2.8 when performing incremental builds.

Very large builds (many thousands of source files) could see incremental build speeds up to 80% faster than 2.7 and up to 40% faster than 2.8.

Gradle now uses a more efficient mechanism to scan the filesystem, making up-to-date checks significantly faster. This improvement is only available when running Gradle with Java 7 or newer.

Other improvements have been made to speed-up include and exclude pattern evaluation; these improvements apply to all supported Java versions.

Gradle now uses much less memory than previous releases when performing incremental builds. By de-duplicating Strings used as file paths in internal caches, and by reducing the overhead of listing classes under test for Java projects, some builds use 30-70% less memory that Gradle 2.8."

https://docs.gradle.org/current/release-notes

Author: Ismael Juma <is...@juma.me.uk>

Reviewers: Grant Henke, Guozhang Wang

Closes #549 from ijuma/gradle-2.9


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/d6e900a1
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/d6e900a1
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/d6e900a1

Branch: refs/heads/trunk
Commit: d6e900a185c840b7373b35bf065e1d8cc6e4183a
Parents: 8f6ffe1
Author: Ismael Juma <is...@juma.me.uk>
Authored: Wed Nov 18 12:44:02 2015 -0800
Committer: Confluent <co...@Confluents-MacBook-Pro.local>
Committed: Wed Nov 18 12:44:02 2015 -0800

----------------------------------------------------------------------
 build.gradle |  2 +-
 gradlew      | 10 +++-------
 2 files changed, 4 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/d6e900a1/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 1dba7ed..266e048 100644
--- a/build.gradle
+++ b/build.gradle
@@ -45,7 +45,7 @@ allprojects {
 }
 
 ext {
-    gradleVersion = "2.8"
+    gradleVersion = "2.9"
     buildVersionFileName = "kafka-version.properties"
 
     userMaxForks = project.hasProperty('maxParallelForks') ? maxParallelForks.toInteger() : null

http://git-wip-us.apache.org/repos/asf/kafka/blob/d6e900a1/gradlew
----------------------------------------------------------------------
diff --git a/gradlew b/gradlew
index 91a7e26..9d82f78 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`