File tree Expand file tree Collapse file tree
java-cloud-bom/tests/src/test/java/com/google/cloud Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,20 +148,22 @@ private static String buildMavenCentralUrl(Artifact artifact) {
148148 }
149149
150150 /**
151- * Checks if the artifact exists in the local Maven repository cache.
152- * This is used as a fallback/bypass for reachability checks during release PRs.
151+ * Checks if the artifact exists in the local Maven repository cache. This is used as a
152+ * fallback/bypass for reachability checks during release PRs.
153153 */
154154 private static boolean existsLocally (Artifact artifact ) {
155155 String localRepository = System .getProperty ("maven.repo.local" );
156156 if (localRepository == null ) {
157157 // Standard default location for Maven local repository.
158158 localRepository = System .getProperty ("user.home" ) + "/.m2/repository" ;
159159 }
160- Path localPath = Paths .get (localRepository ,
161- artifact .getGroupId ().replace ('.' , '/' ),
162- artifact .getArtifactId (),
163- artifact .getVersion (),
164- artifact .getArtifactId () + "-" + artifact .getVersion () + ".pom" );
160+ Path localPath =
161+ Paths .get (
162+ localRepository ,
163+ artifact .getGroupId ().replace ('.' , '/' ),
164+ artifact .getArtifactId (),
165+ artifact .getVersion (),
166+ artifact .getArtifactId () + "-" + artifact .getVersion () + ".pom" );
165167 return Files .exists (localPath );
166168 }
167169
You can’t perform that action at this time.
0 commit comments