dipien / releases-hub-gradle-plugin

Gradle Plugin to automatically upgrade your gradle project dependencies and send a GitHub pull request with the changes
https://releaseshubplugin.dipien.com
Apache License 2.0
148 stars 7 forks source link

Allow to skip errors #114

Closed fleficher closed 3 years ago

fleficher commented 3 years ago

Describe the bug

When running the command line gradlew upgradeDependencies, some dependency checks fail & the whole workflow stop.

For an unknown reason, I got an SSL Exception when running the task:

Caused by: javax.net.ssl.SSLPeerUnverifiedException: Hostname cloud.dipien.com not verified (no certificates)
        at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.kt:396)
        at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.kt:337)
        at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:209)
        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 com.jdroid.java.http.okhttp.ExecuteRequestCommand.doExecute(ExecuteRequestCommand.kt:9)
        at com.jdroid.java.http.okhttp.ExecuteRequestCommand.doExecute(ExecuteRequestCommand.kt:5)
        at com.jdroid.java.http.okhttp.OkHttpCommand.execute(OkHttpCommand.kt:23)

& I cant figure out which dependency check throws this error.

If we cant gete an option to skip those errors or have details about which dependency throw this error, it will be really helpful.

Expected behavior The task run thru all dependencies that are succesfully fetched.

maxirosson commented 3 years ago

Are you having always the same error even if you retry the task execution?

fleficher commented 3 years ago

Are you having always the same error even if you retry the task execution?

Yes, even after multiple retries, I still have the same error