Closed
Description
spotless-plugin-gradle:6.17.0
broke our build because it now tries to download artifacts directly from https://download.eclipse.org/eclipse/updates
whereas before they were resolved via the configured repositories in Gradle (i.e. an internal maven-central mirror).
Please make the P2 repo URL which is currently hardcoded in EquoBasedStepBuilder#addPlatformRepo configurable so we can swap it out with an internal mirror.
Stacktrace:
Caused by: java.lang.RuntimeException: java.net.SocketTimeoutException: connect timed out
at dev.equo.solstice.p2.Unchecked.wrap(Unchecked.java:25)
at dev.equo.solstice.p2.P2Model.query(P2Model.java:133)
at com.diffplug.spotless.extra.EquoBasedStepBuilder.get(EquoBasedStepBuilder.java:88)
at com.diffplug.spotless.FormatterStepImpl.calculateState(FormatterStepImpl.java:58)
at com.diffplug.spotless.LazyForwardingEquality.state(LazyForwardingEquality.java:56)
at com.diffplug.spotless.LazyForwardingEquality.unlazy(LazyForwardingEquality.java:118)
at com.diffplug.spotless.LazyForwardingEquality.unlazy(LazyForwardingEquality.java:124)
at com.diffplug.gradle.spotless.SpotlessExtensionPredeclare.lambda$new$0(SpotlessExtensionPredeclare.java:39)
at com.diffplug.gradle.spotless.SpotlessExtensionPredeclare.lambda$new$1(SpotlessExtensionPredeclare.java:33)
[...]
Caused by: java.net.SocketTimeoutException: connect timed out
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
at dev.equo.solstice.p2.P2Client.getBytes(P2Client.java:145)
at dev.equo.solstice.p2.P2Client.getString(P2Client.java:116)
at dev.equo.solstice.p2.P2Client$Folder.<init>(P2Client.java:209)
at dev.equo.solstice.p2.P2Client.addUnits(P2Client.java:94)
at dev.equo.solstice.p2.P2Session.populateFrom(P2Session.java:34)
at dev.equo.solstice.p2.P2Model.queryRaw(P2Model.java:96)
at dev.equo.solstice.p2.P2Model.query(P2Model.java:125)
... 191 more