From 499f73e82cf7d1d47df372551910a8549167a0bd Mon Sep 17 00:00:00 2001 From: Ben Manes Date: Mon, 23 Mar 2015 17:06:13 -0700 Subject: [PATCH] Prepare for release --- build.gradle | 2 +- .../test/java/com/google/common/cache/CacheEvictionTest.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 73a0ed86cb..18efbba171 100644 --- a/build.gradle +++ b/build.gradle @@ -44,7 +44,7 @@ subprojects { proj -> tasks.withType(JavaCompile) { if (!System.env.'CI') { - options.incremental = true + options.incremental = !rootProject.hasProperty('release') } } diff --git a/guava/src/test/java/com/google/common/cache/CacheEvictionTest.java b/guava/src/test/java/com/google/common/cache/CacheEvictionTest.java index af8f89fa04..063b3c447b 100644 --- a/guava/src/test/java/com/google/common/cache/CacheEvictionTest.java +++ b/guava/src/test/java/com/google/common/cache/CacheEvictionTest.java @@ -119,7 +119,8 @@ public void testEviction_maxWeight_zero() { LoadingCache cache = CaffeinatedGuava.build(Caffeine.newBuilder() .maximumWeight(0) .weigher(evensOnly) - .removalListener(removalListener), + .removalListener(removalListener) + .executor(MoreExecutors.directExecutor()), loader); // 1 won't be cached