Revert "[gradle][IDEA-359475] prevent cache misses in the Gradle Model Cache using an OS dependent hash for the root build path"

This reverts commit a5736802b7402a51f8e166f790207ff1d1bef4e5.


(cherry picked from commit d8ca055de298c70eec1ce09a00f08200e2abc308)

IJ-CR-146796

GitOrigin-RevId: 3d2f2b2ecf884f905d6a5aaf4571460b92f27fce
This commit is contained in:
Alexander.Glukhov
2024-11-11 11:33:41 +01:00
committed by intellij-monorepo-bot
parent dbee69ed0b
commit 836e5e4435

View File

@@ -85,8 +85,8 @@ public final class GradleModelId implements Serializable {
public static @NotNull String createBuildId(@NotNull BuildIdentifier buildIdentifier) {
String path = buildIdentifier.getRootDir().getPath();
int pathHash = FileUtilRt.pathHashCode(path);
return String.valueOf(pathHash);
String systemIndependentName = FileUtilRt.toSystemIndependentName(path);
return String.valueOf(systemIndependentName.hashCode());
}
private static @NotNull ProjectIdentifier getProjectIdentifier(@NotNull ProjectModel project) {