@Test public void getHash() { final Map<String, String> env1 = new HashMap<>(); env1.put("k1", "v1"); env1.put("k2", "v2"); final Set<String> props = new HashSet<>(); props.add("prop1"); props.add("prop2"); String id1 = BuildRequest.computeHash(true, true, Arrays.<String>asList("arg1", "arg2"), env1, props, StandardCharsets.UTF_8, GavSet.builder().include("org.mygroup").exclude("other-group").build(), Arrays.asList("url1", "url2"), true, SrcVersion.parse("1.2.3-SRC-revision-deadbeef"), "1.2.3", true, Collections.singleton(Ga.of("org:a")), false, 50000, Verbosity.error); String id2 = BuildRequest.computeHash(true, true, new ArrayList<>(Arrays.<String>asList("arg1", "arg2")), new LinkedHashMap<String, String>(env1), new LinkedHashSet<String>(props), StandardCharsets.UTF_8, GavSet.builder().include("org.mygroup").exclude("other-group").build(), new ArrayList<>(Arrays.<String>asList("url1", "url2")), true, SrcVersion.parse("1.2.3-SRC-revision-deadbeef"), "1.2.3", true, Collections.singleton(Ga.of("org:a")), false, 50000, Verbosity.error); Assert.assertEquals(id1, id2); Assert.assertEquals(id1.hashCode(), id2.hashCode()); Assert.assertEquals("7d688ae119206f98b165b07c32b2a77b341b061d", id1); }
public String getHash() { return hash; }
BuildRequest { public String getHash() { return hash; } }
BuildRequest { public String getHash() { return hash; } private  BuildRequest(Path dependentProjectRootDirectory, Path projectRootDirectory, SrcVersion srcVersion,
            String version, GavSet gavSet, String scmRepositoryId, Charset encoding, List<String> scmUrls,
            List<String> buildArguments, boolean skipTests, boolean addDefaultBuildArguments,
            Set<String> forwardPropertyNames, Map<String, String> forwardPropertyValues,
            Map<String, String> buildEnvironment, boolean addDefaultBuildEnvironment, Verbosity verbosity,
            Supplier<LineConsumer> output, long timeoutMs, String versionsMavenPluginVersion,
            boolean useVersionsMavenPlugin, Set<Ga> buildIncludes, boolean excludeNonRequired,
            CharStreamSource gradleModelTransformer); }
BuildRequest { public String getHash() { return hash; } private  BuildRequest(Path dependentProjectRootDirectory, Path projectRootDirectory, SrcVersion srcVersion,
            String version, GavSet gavSet, String scmRepositoryId, Charset encoding, List<String> scmUrls,
            List<String> buildArguments, boolean skipTests, boolean addDefaultBuildArguments,
            Set<String> forwardPropertyNames, Map<String, String> forwardPropertyValues,
            Map<String, String> buildEnvironment, boolean addDefaultBuildEnvironment, Verbosity verbosity,
            Supplier<LineConsumer> output, long timeoutMs, String versionsMavenPluginVersion,
            boolean useVersionsMavenPlugin, Set<Ga> buildIncludes, boolean excludeNonRequired,
            CharStreamSource gradleModelTransformer); static BuildRequestBuilder builder(); static String computeHash(boolean addDefaultBuildArguments, boolean addDefaultBuildEnvironment,
            List<String> buildArguments, Map<String, String> buildEnvironment, Set<String> forwardProperties,
            Charset encoding, GavSet gavSet, List<String> scmUrls, boolean skipTests, SrcVersion srcVersion,
            String version, boolean useVersionsMavenPlugin, Set<Ga> buildIncludes, boolean excludeNonRequired,
            long timeoutMs, Verbosity verbosity); static long getDefaultTimeoutMs(); List<String> getBuildArguments(); Map<String, String> getBuildEnvironment(); Set<Ga> getBuildIncludes(); Path getDependentProjectRootDirectory(); Charset getEncoding(); Set<String> getForwardPropertyNames(); Map<String, String> getForwardPropertyValues(); GavSet getGavSet(); CharStreamSource getGradleModelTransformer(); String getHash(); Supplier<LineConsumer> getOuput(); Path getProjectRootDirectory(); String getScmRepositoryId(); List<String> getScmUrls(); SrcVersion getSrcVersion(); long getTimeoutMs(); Verbosity getVerbosity(); String getVersion(); String getVersionsMavenPluginVersion(); boolean isAddDefaultBuildArguments(); boolean isAddDefaultBuildEnvironment(); boolean isExcludeNonRequired(); boolean isSkipTests(); boolean isUseVersionsMavenPlugin(); @Override String toString(); }
BuildRequest { public String getHash() { return hash; } private  BuildRequest(Path dependentProjectRootDirectory, Path projectRootDirectory, SrcVersion srcVersion,
            String version, GavSet gavSet, String scmRepositoryId, Charset encoding, List<String> scmUrls,
            List<String> buildArguments, boolean skipTests, boolean addDefaultBuildArguments,
            Set<String> forwardPropertyNames, Map<String, String> forwardPropertyValues,
            Map<String, String> buildEnvironment, boolean addDefaultBuildEnvironment, Verbosity verbosity,
            Supplier<LineConsumer> output, long timeoutMs, String versionsMavenPluginVersion,
            boolean useVersionsMavenPlugin, Set<Ga> buildIncludes, boolean excludeNonRequired,
            CharStreamSource gradleModelTransformer); static BuildRequestBuilder builder(); static String computeHash(boolean addDefaultBuildArguments, boolean addDefaultBuildEnvironment,
            List<String> buildArguments, Map<String, String> buildEnvironment, Set<String> forwardProperties,
            Charset encoding, GavSet gavSet, List<String> scmUrls, boolean skipTests, SrcVersion srcVersion,
            String version, boolean useVersionsMavenPlugin, Set<Ga> buildIncludes, boolean excludeNonRequired,
            long timeoutMs, Verbosity verbosity); static long getDefaultTimeoutMs(); List<String> getBuildArguments(); Map<String, String> getBuildEnvironment(); Set<Ga> getBuildIncludes(); Path getDependentProjectRootDirectory(); Charset getEncoding(); Set<String> getForwardPropertyNames(); Map<String, String> getForwardPropertyValues(); GavSet getGavSet(); CharStreamSource getGradleModelTransformer(); String getHash(); Supplier<LineConsumer> getOuput(); Path getProjectRootDirectory(); String getScmRepositoryId(); List<String> getScmUrls(); SrcVersion getSrcVersion(); long getTimeoutMs(); Verbosity getVerbosity(); String getVersion(); String getVersionsMavenPluginVersion(); boolean isAddDefaultBuildArguments(); boolean isAddDefaultBuildEnvironment(); boolean isExcludeNonRequired(); boolean isSkipTests(); boolean isUseVersionsMavenPlugin(); @Override String toString();  }