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
Unfortunaly, this proxy is consulted last, after all the other repository configured in the build’s repositories block:
2021-03-16T11:14:55.877+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Resolve dependencies of :intellij:com.teamscale.ide.intellij.svn:idea' started
2021-03-16T11:14:55.878+0100 [INFO] [org.jetbrains.intellij.IntelliJPlugin] [gradle-intellij-plugin :com.teamscale.ide.intellij.svn] Configuring IDE dependency
2021-03-16T11:14:55.878+0100 [INFO] [org.jetbrains.intellij.IntelliJPlugin] [gradle-intellij-plugin :com.teamscale.ide.intellij.svn] Using IDE from remote repository
2021-03-16T11:14:55.878+0100 [DEBUG] [org.jetbrains.intellij.IntelliJPlugin] [gradle-intellij-plugin :com.teamscale.ide.intellij.svn] Adding IDE repository: https://example.org/repository/maven-intellij-repository/releases
2021-03-16T11:14:55.879+0100 [DEBUG] [org.jetbrains.intellij.IntelliJPlugin] [gradle-intellij-plugin :com.teamscale.ide.intellij.svn] Adding IDE dependency
2021-03-16T11:14:55.879+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Resolve dependencies of :intellij:com.teamscale.ide.intellij.svn:detachedConfiguration1' started
2021-03-16T11:14:55.879+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultArtifactDependencyResolver] Resolving configuration ':intellij:com.teamscale.ide.intellij.svn:detachedConfiguration1'
2021-03-16T11:14:55.880+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.modulecache.ResolvedArtifactCaches] Reusing in-memory cache for repo 'MavenRepo' [a8be1fe3b3911d3d3425fe720cf42835].
This is unfortunate. Besides adding extra roundtrips this makes the build more fragile; if one of these repositories is unreachable (a 502 Bad Gateway, for example), the build terminates, even though the local proxy explicitly added via intellij.intellijRepo is reachable and has the artifacts in question:
> Could not resolve all files for configuration ':intellij:com.teamscale.ide.intellij.svn:detachedConfiguration1'.
> Could not resolve com.jetbrains.intellij.idea:ideaIC:2019.1.
Required by:
project :intellij:com.teamscale.ide.intellij.svn
> Could not resolve com.jetbrains.intellij.idea:ideaIC:2019.1.
> Could not get resource 'https://plugins.gradle.org/m2/com/jetbrains/intellij/idea/ideaIC/2019.1/ideaIC-2019.1.pom'.
> Could not GET 'https://jcenter.bintray.com/com/jetbrains/intellij/idea/ideaIC/2019.1/ideaIC-2019.1.pom'. Received status code 502 from server: Bad Gateway
IMHO, intellijRepo (and jreRepo and pluginsRepo) should be consulted first (and probably exclusively; why fall back to other repos if there is a dedicated repository for these kinds of artifacts?).
The text was updated successfully, but these errors were encountered:
@zcg It's not that my own intellijRepo isn't picked up; that works.
It is just that other repositories configured in the build are searched for first. This adds extra roundtrips, as each is asked for the IntelliJ dependency that I know it won't have, and increases the likelihood that the build breaks when one of these repos is unreachable – even though it is not really needed to fetch the IntellIJ dependency.
Thanks for raising this issue. Indeed, we use custom repositories only when we expect artifacts to be requested from them – so having such repositories at the bottom of the list isn't efficient.
After some refactorings that happened at the end of the last year, it was finally possible to quickly shuffle that list and put custom IJ-related ones on the top.
Fix will be available in the upcoming release.
I have set an
intellij.intellijRepo
pointing to a local proxy of the default (https://jetbrains.com/intellij-repository).Unfortunaly, this proxy is consulted last, after all the other repository configured in the build’s
repositories
block:This is unfortunate. Besides adding extra roundtrips this makes the build more fragile; if one of these repositories is unreachable (a 502 Bad Gateway, for example), the build terminates, even though the local proxy explicitly added via
intellij.intellijRepo
is reachable and has the artifacts in question:IMHO,
intellijRepo
(andjreRepo
andpluginsRepo
) should be consulted first (and probably exclusively; why fall back to other repos if there is a dedicated repository for these kinds of artifacts?).The text was updated successfully, but these errors were encountered: