{"action":"closed","issue":{"url":"https://api.github.com/repos/4finance/uptodate-gradle-plugin/issues/18","labels_url":"https://api.github.com/repos/4finance/uptodate-gradle-plugin/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/4finance/uptodate-gradle-plugin/issues/18/comments","events_url":"https://api.github.com/repos/4finance/uptodate-gradle-plugin/issues/18/events","html_url":"https://github.com/4finance/uptodate-gradle-plugin/issues/18","id":58683288,"number":18,"title":"Support Proxy configuration","user":{"login":"djKianoosh","id":222783,"avatar_url":"https://avatars.githubusercontent.com/u/222783?v=3","gravatar_id":"","url":"https://api.github.com/users/djKianoosh","html_url":"https://github.com/djKianoosh","followers_url":"https://api.github.com/users/djKianoosh/followers","following_url":"https://api.github.com/users/djKianoosh/following{/other_user}","gists_url":"https://api.github.com/users/djKianoosh/gists{/gist_id}","starred_url":"https://api.github.com/users/djKianoosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djKianoosh/subscriptions","organizations_url":"https://api.github.com/users/djKianoosh/orgs","repos_url":"https://api.github.com/users/djKianoosh/repos","events_url":"https://api.github.com/users/djKianoosh/events{/privacy}","received_events_url":"https://api.github.com/users/djKianoosh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/4finance/uptodate-gradle-plugin/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"cbuleandra","id":8832176,"avatar_url":"https://avatars.githubusercontent.com/u/8832176?v=3","gravatar_id":"","url":"https://api.github.com/users/cbuleandra","html_url":"https://github.com/cbuleandra","followers_url":"https://api.github.com/users/cbuleandra/followers","following_url":"https://api.github.com/users/cbuleandra/following{/other_user}","gists_url":"https://api.github.com/users/cbuleandra/gists{/gist_id}","starred_url":"https://api.github.com/users/cbuleandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbuleandra/subscriptions","organizations_url":"https://api.github.com/users/cbuleandra/orgs","repos_url":"https://api.github.com/users/cbuleandra/repos","events_url":"https://api.github.com/users/cbuleandra/events{/privacy}","received_events_url":"https://api.github.com/users/cbuleandra/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/4finance/uptodate-gradle-plugin/milestones/2","html_url":"https://github.com/4finance/uptodate-gradle-plugin/milestones/1.2.0","labels_url":"https://api.github.com/repos/4finance/uptodate-gradle-plugin/milestones/2/labels","id":995276,"number":2,"title":"1.2.0","description":null,"creator":{"login":"marcingrzejszczak","id":3297437,"avatar_url":"https://avatars.githubusercontent.com/u/3297437?v=3","gravatar_id":"","url":"https://api.github.com/users/marcingrzejszczak","html_url":"https://github.com/marcingrzejszczak","followers_url":"https://api.github.com/users/marcingrzejszczak/followers","following_url":"https://api.github.com/users/marcingrzejszczak/following{/other_user}","gists_url":"https://api.github.com/users/marcingrzejszczak/gists{/gist_id}","starred_url":"https://api.github.com/users/marcingrzejszczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcingrzejszczak/subscriptions","organizations_url":"https://api.github.com/users/marcingrzejszczak/orgs","repos_url":"https://api.github.com/users/marcingrzejszczak/repos","events_url":"https://api.github.com/users/marcingrzejszczak/events{/privacy}","received_events_url":"https://api.github.com/users/marcingrzejszczak/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2015-02-25T14:49:29Z","updated_at":"2015-02-25T14:59:34Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-02-24T02:07:34Z","updated_at":"2015-02-25T14:59:34Z","closed_at":"2015-02-25T14:59:34Z","body":"In your httpBuilder after line 46, \r\nhttps://github.com/4finance/uptodate-gradle-plugin/blob/master/src/main/groovy/com/ofg/uptodate/finder/MavenNewVersionFinder.groovy#L46\r\ncould you please add a line line they have commented out in this gist:\r\nhttps://gist.github.com/sarmbruster/8114445\r\nto support using a proxy connection? \r\nhttp://groovy.codehaus.org/modules/http-builder/apidocs/groovyx/net/http/HTTPBuilder.html#setProxy%28java.lang.String,%20int,%20java.lang.String%29\r\nSomething like:\r\n```httpBuilder.setProxy( proxyHostFromSystem, proxyPortFromSystem, \"http\" )```\r\n\r\nAlternatively, you could let that be configurable. Up to you really. One way or another. As it is, I get a connection timed out behind a corporate proxy. \r\n\r\n```\r\nCaused by: java.util.concurrent.ExecutionException: org.apache.http.conn.ConnectTimeoutException: Connect to search.maven.org/207.223.241.72:80 timed out\r\n        at java_util_concurrent_Future$get.call(Unknown Source)\r\n        at com.ofg.uptodate.finder.MavenNewVersionFinder$_findNewerInMavenCentralRepo_closure3.doCall(MavenNewVersionFinder.groovy:48)\r\n        at com.ofg.uptodate.finder.MavenNewVersionFinder.findNewerInMavenCentralRepo(MavenNewVersionFinder.groovy:48)\r\n        at com.ofg.uptodate.finder.MavenNewVersionFinder.this$2$findNewerInMavenCentralRepo(MavenNewVersionFinder.groovy)\r\n        at com.ofg.uptodate.finder.MavenNewVersionFinder$this$2$findNewerInMavenCentralRepo.callCurrent(Unknown Source)\r\n        at com.ofg.uptodate.finder.MavenNewVersionFinder.findNewer(MavenNewVersionFinder.groovy:39)\r\n        at com.ofg.uptodate.finder.NewVersionFinder$findNewer.call(Unknown Source)\r\n        at com.ofg.uptodate.finder.NewVersionFinderInAllRepositories$_findNewer_closure1.doCall(NewVersionFinderInAllRepositories.groovy:23)\r\n        at com.ofg.uptodate.finder.NewVersionFinderInAllRepositories.findNewer(NewVersionFinderInAllRepositories.groovy:22)\r\n        at com.ofg.uptodate.finder.NewVersionFinderInAllRepositories$findNewer.call(Unknown Source)\r\n        at com.ofg.uptodate.UptodatePlugin$_apply_closure1.doCall(UptodatePlugin.groovy:37)\r\n        at org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:548)\r\n        at org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:529)\r\n        at org.gradle.api.internal.tasks.TaskMutator$1.execute(TaskMutator.java:77)\r\n        at org.gradle.api.internal.tasks.TaskMutator$1.execute(TaskMutator.java:73)\r\n        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)\r\n        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)\r\n        ... 44 more\r\nCaused by: org.apache.http.conn.ConnectTimeoutException: Connect to search.maven.org/207.223.241.72:80 timed out\r\n        at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:129)\r\n        at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:183)\r\n        at org.apache.http.conn.scheme.SchemeSocketFactoryAdaptor.connectSocket(SchemeSocketFactoryAdaptor.java:65)\r\n        at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)\r\n        at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:151)\r\n        at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:125)\r\n        at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:640)\r\n        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)\r\n        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)\r\n        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1066)\r\n        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1044)\r\n        at groovyx.net.http.HTTPBuilder.doRequest(HTTPBuilder.java:515)\r\n        at groovyx.net.http.AsyncHTTPBuilder.doRequestSuper(AsyncHTTPBuilder.java:146)\r\n        at groovyx.net.http.AsyncHTTPBuilder.access$000(AsyncHTTPBuilder.java:59)\r\n        at groovyx.net.http.AsyncHTTPBuilder$1.call(AsyncHTTPBuilder.java:131)\r\n```"}}