|  | @@ -39,6 +39,7 @@ import org.gradle.api.tasks.Delete
 | 
	
		
			
				|  |  |  import org.gradle.api.tasks.Exec
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import java.nio.file.Paths
 | 
	
		
			
				|  |  | +import java.util.concurrent.TimeUnit
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   * A helper for creating tasks to build a cluster that is used by a task, and tear down the cluster when the task is finished.
 | 
	
	
		
			
				|  | @@ -91,6 +92,8 @@ class ClusterFormationTasks {
 | 
	
		
			
				|  |  |                  configureBwcPluginDependency("${task.name}_elasticsearchBwcPlugins", project, entry.getValue(),
 | 
	
		
			
				|  |  |                          project.configurations.elasticsearchBwcPlugins, config.bwcVersion)
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            project.configurations.elasticsearchBwcDistro.resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
 | 
	
		
			
				|  |  | +            project.configurations.elasticsearchBwcPlugins.resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          for (int i = 0; i < config.numNodes; i++) {
 | 
	
		
			
				|  |  |              // we start N nodes and out of these N nodes there might be M bwc nodes.
 |