You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Build] Declare mirror for eclipse p2 repository (elastic#117732)
The spotlight plugin directly resolves dependencies from p2 which causes
`java.io.IOException: Failed to load eclipse jdt formatter` issues if that repo is not accessible.
This is a workaround for the eclipse p2 default repository being down resulting in all our
ci jobs to fail.
The artifacts in question we wanna cache live in `~/.m2/repository`
(cherry picked from commit c35777a)
# Conflicts:
# build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/precommit/FormattingPrecommitPlugin.java
Copy file name to clipboardExpand all lines: build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/precommit/FormattingPrecommitPlugin.java
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@
14
14
importorg.gradle.api.Plugin;
15
15
importorg.gradle.api.Project;
16
16
17
+
importjava.util.Map;
18
+
17
19
/**
18
20
* This plugin configures formatting for Java source using Spotless
19
21
* for Gradle. Since the act of formatting existing source can interfere
@@ -66,7 +68,13 @@ public void apply(Project project) {
0 commit comments