{"action":"created","issue":{"url":"https://api.github.com/repos/rest-assured/rest-assured/issues/697","repository_url":"https://api.github.com/repos/rest-assured/rest-assured","labels_url":"https://api.github.com/repos/rest-assured/rest-assured/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/rest-assured/rest-assured/issues/697/comments","events_url":"https://api.github.com/repos/rest-assured/rest-assured/issues/697/events","html_url":"https://github.com/rest-assured/rest-assured/issues/697","id":157380104,"number":697,"title":"restassured 2.9.0 installed via grape (@Grab in groovy) works only with groovy 2.4.4, old restassured 1.7 works fine with many different groovy versions ","user":{"login":"luv","id":1266756,"avatar_url":"https://avatars.githubusercontent.com/u/1266756?v=3","gravatar_id":"","url":"https://api.github.com/users/luv","html_url":"https://github.com/luv","followers_url":"https://api.github.com/users/luv/followers","following_url":"https://api.github.com/users/luv/following{/other_user}","gists_url":"https://api.github.com/users/luv/gists{/gist_id}","starred_url":"https://api.github.com/users/luv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luv/subscriptions","organizations_url":"https://api.github.com/users/luv/orgs","repos_url":"https://api.github.com/users/luv/repos","events_url":"https://api.github.com/users/luv/events{/privacy}","received_events_url":"https://api.github.com/users/luv/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-05-29T10:40:12Z","updated_at":"2016-05-31T10:30:35Z","closed_at":"2016-05-31T06:14:06Z","body":"Following groovy script works like a charm:\r\n```\r\n@Grab(\"com.jayway.restassured:rest-assured:1.7\")\r\n\r\nimport com.jayway.restassured.RestAssured\r\n\r\nRestAssured.get(\"http://example.com\")\r\n```\r\n\r\nbut after updating 1.7 to 2.9.0 \r\n```\r\n@Grab(\"com.jayway.restassured:rest-assured:2.9.0\")\r\n\r\nimport com.jayway.restassured.RestAssured\r\n\r\nRestAssured.get(\"http://example.com\")\r\n```\r\n\r\ngrape install fails with \r\n\r\n\"General error during conversion: Error grabbing Grapes -- [download failed: org.apache.httpcomponents#httpclient;4.5.1!httpclient.jar, download failed: org.apache.httpcomponents#httpcore;4.4.3!httpcore.jar]\"\r\n\r\nbut nevermind, nothing you can do about this I suppose. Moreover, it works after commenting out some magic XML \r\n\r\n```<ibiblio name=\"localm2\" root=\"file:${user.home}/.m2/repository/\" checkmodified=\"true\" changingPattern=\".*\" changingMatcher=\"regexp\" m2compatible=\"true\"/>``` in grapeConfig.xml specifically. Don't ask.\r\n\r\nBut the issue I'd like to report is this:\r\n\r\n```\r\nCaught: java.lang.IncompatibleClassChangeError: the number of constructors during runtime and compile time for com.jayway.restassured.internal.RequestSpecificationImpl$EncodingTarget do not match. Expected -1 but got 2\r\njava.lang.IncompatibleClassChangeError: the number of constructors during runtime and compile time for com.jayway.restassured.internal.RequestSpecificationImpl$EncodingTarget do not match. Expected -1 but got 2\r\n\tat com.jayway.restassured.internal.RequestSpecificationImpl$EncodingTarget.$INIT(RequestSpecificationImpl.groovy)\r\n\tat com.jayway.restassured.internal.RequestSpecificationImpl$EncodingTarget.<clinit>(RequestSpecificationImpl.groovy)\r\n\tat com.jayway.restassured.internal.RequestSpecificationImpl$_partiallyApplyPathParams_closure31.doCall(RequestSpecificationImpl.groovy:1676)\r\n\tat com.jayway.restassured.internal.RequestSpecificationImpl.partiallyApplyPathParams(RequestSpecificationImpl.groovy:1679)\r\n\tat com.jayway.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)\r\n\tat com.jayway.restassured.internal.RequestSpecificationImpl.newFilterContext(RequestSpecificationImpl.groovy:1039)\r\n\tat com.jayway.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)\r\n\tat com.jayway.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1594)\r\n\tat com.jayway.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)\r\n\tat com.jayway.restassured.internal.RequestSpecificationImpl.get(RequestSpecificationImpl.groovy:160)\r\n\tat com.jayway.restassured.internal.RequestSpecificationImpl.get(RequestSpecificationImpl.groovy)\r\n\tat com.jayway.restassured.RestAssured.get(RestAssured.java:808)\r\n```\r\n\r\nLooks like restassured 2.9.0 is not compatible with groovy 1.8.6 ?"},"comment":{"url":"https://api.github.com/repos/rest-assured/rest-assured/issues/comments/222651237","html_url":"https://github.com/rest-assured/rest-assured/issues/697#issuecomment-222651237","issue_url":"https://api.github.com/repos/rest-assured/rest-assured/issues/697","id":222651237,"user":{"login":"johanhaleby","id":187029,"avatar_url":"https://avatars.githubusercontent.com/u/187029?v=3","gravatar_id":"","url":"https://api.github.com/users/johanhaleby","html_url":"https://github.com/johanhaleby","followers_url":"https://api.github.com/users/johanhaleby/followers","following_url":"https://api.github.com/users/johanhaleby/following{/other_user}","gists_url":"https://api.github.com/users/johanhaleby/gists{/gist_id}","starred_url":"https://api.github.com/users/johanhaleby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanhaleby/subscriptions","organizations_url":"https://api.github.com/users/johanhaleby/orgs","repos_url":"https://api.github.com/users/johanhaleby/repos","events_url":"https://api.github.com/users/johanhaleby/events{/privacy}","received_events_url":"https://api.github.com/users/johanhaleby/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T10:30:35Z","updated_at":"2016-05-31T10:30:35Z","body":"Ah ok I didn't know that, interesting. In a much earlier release of REST Assured it depended on `groovy-all` but I removed this to cut down on the dependency size.\r\n\r\nBut how should we solve this? Is adding your solution to the FAQ the best we can do?"}}
{"actor":{"display_login":"johanhaleby"}}