Gradle transforms https maven repository to http 443 request -


my build.gradle configured as:

repositories {     mavenlocal()     mavencentral()     jcenter()     maven {         url "https://<myrepo>/repo"     } } 

however,

$ gradle build --debug 

gives me:

[...] 12:01:58.487 [debug] [org.gradle.api.internal.artifacts.ivyservice.ivyloggingadaper] setting 'https.proxyhost' '<myrepo>' [...] 12:01:59.070 [debug] [org.gradle.internal.resource.transport.http.httpclienthelper] performing http get: https://repo1.maven.org/maven2/org/xbib/archive/maven-metadata.xml 12:01:59.316 [debug] [org.apache.http.client.protocol.requestaddcookies] cookiespec selected: default 12:01:59.324 [debug] [org.apache.http.client.protocol.requestauthcache] auth cache not set in context 12:01:59.325 [debug] [org.apache.http.impl.conn.poolinghttpclientconnectionmanager] connection request: [route: {tls}->http://<myrepo>:443->https://repo1.maven.org:443][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 20] 12:01:59.336 [debug] [org.apache.http.impl.conn.poolinghttpclientconnectionmanager] connection leased: [id: 0][route: {tls}->http://<myrepo>:443->https://repo1.maven.org:443][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 20] 12:01:59.337 [debug] [org.apache.http.impl.execchain.mainclientexec] opening connection {tls}->http://<myrepo>:443->https://repo1.maven.org:443 12:01:59.340 [debug] [org.apache.http.impl.conn.defaulthttpclientconnectionoperator] connecting <myrepo>/<reposerverip>:443 12:01:59.342 [debug] [org.apache.http.impl.conn.defaulthttpclientconnectionoperator] connection established <localip>:49298<-><reposerverip>:443 12:01:59.346 [debug] [org.apache.http.impl.conn.defaulthttpresponseparser] garbage in response: [...] 12:01:59.347 [debug] [org.apache.http.impl.conn.defaultmanagedhttpclientconnection] http-outgoing-0: close connection 12:01:59.347 [debug] [org.apache.http.impl.conn.defaultmanagedhttpclientconnection] http-outgoing-0: shutdown connection 12:01:59.348 [debug] [org.apache.http.impl.execchain.mainclientexec] connection discarded 12:01:59.348 [debug] [org.apache.http.impl.conn.defaultmanagedhttpclientconnection] http-outgoing-0: close connection [...] 

...though don't know, why gradle feels motivated transform "https" configuration "http: ... :443". having configuration idea?

as wasn't able find configuration error itself, happy have problem solved simply

  1. uninstalling gradle completely
  2. restarting ubuntu and
  3. installing gradle 2.14 again.

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -