Skip to content

Commit 8f62046

Browse files
committed
[Build] Cache eclipse formatter p2 dependency when baking ci image
The eclipse formatter used by spotless is resolved at runtime and not declared as gradle dependency. Therefore we need to run the spotless task to ensure we have the dependencies resolved as part of our ci image baking. This should avoid issues with connecting to p2 repos we have experienced lately in our ci environment
1 parent d4af999 commit 8f62046

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,10 @@ allprojects {
301301
if (project.path.contains(":distribution:docker")) {
302302
enabled = false
303303
}
304-
304+
if (project.path.contains(":libs:cli")) {
305+
// ensure we resolve p2 dependencies for the spotless eclipse formatter
306+
dependsOn "spotlessJavaCheck"
307+
}
305308
}
306309

307310
plugins.withId('lifecycle-base') {

0 commit comments

Comments
 (0)