Distribution (File propertiesFile) { WrapperExecutor wrapper = WrapperExecutor.forWrapperPropertiesFile(propertiesFile); if (wrapper.getDistribution() != null) { return new ZippedDistribution(wrapper.getConfiguration(), Time.clock()); } return getDownloadedDistribution(GradleVersion.current().getVersion()); }