Skip to content

Commit 1f1457a

Browse files
committed
WIP
1 parent 7a13a1d commit 1f1457a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

private/tools/java/com/github/bazelbuild/rules_jvm_external/resolver/gradle/plugin/GradleDependencyModelBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,9 @@ private GradleResolvedDependency walkResolvedComponent(
274274
// For snapshot dependencies, extract the timestamped version from the component ID
275275
// Note: this is unsafe, is there a better way of obtaining the timestamp for an snapshot? I could not find any
276276
if (component.getId().getClass().getName().contains("MavenUniqueSnapshotComponentIdentifier")) {
277-
String snapshot_version = version.substring(0, version.length() - "-SNAPSHOT".length());
277+
String snapshotVersion = version.substring(0, version.length() - "-SNAPSHOT".length());
278278
// Extract timestamped version from format: group:artifact:version:timestamp-buildnum
279-
String snapshotId = snapshot_version + "-" + component.getId().toString().split(":")[3];
279+
String snapshotId = snapshotVersion + "-" + component.getId().toString().split(":")[3];
280280
info.setVersionRevision(snapshotId);
281281
}
282282
}

0 commit comments

Comments
 (0)