Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.jayway.jsonpath project moved to io.restassured.jsonpath [SPR-17038] #21576

Closed
spring-projects-issues opened this issue Jul 13, 2018 · 5 comments
Assignees
Labels
in: test status: invalid

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Jul 13, 2018

Christopher Barham opened SPR-17038 and commented

<dependency>
    <groupId>com.jayway.jsonpath</groupId>
    <artifactId>json-path</artifactId>
    <version>2.4.0</version>
</dependency>

has moved to:

 <dependency>
    <groupId>io.rest-assured</groupId>
    <artifactId>json-path</artifactId>
    <version>3.1.0</version>
</dependency>

 

but spring-test relies on the old maven project coordinates to:

https://github.com/spring-projects/spring-framework/blob/master/spring-test/src/main/java/org/springframework/test/util/JsonPathExpectationsHelper.java#L22


Affects: 5.0.7

Reference URL: https://github.com/spring-projects/spring-framework/blob/master/spring-test/src/main/java/org/springframework/test/util/JsonPathExpectationsHelper.java#L22

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jul 13, 2018

Sam Brannen commented

Christopher Barham, it appears to me that the inclusion of JsonPath as part of REST Assured is a fork of the original.

Do you have any links to articles or documentation that explicitly state that the com.jayway implementation is being discontinued and/or deprecated in favor of the io.restassured port?

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jul 13, 2018

Sam Brannen commented

Based on the following issue, it would appear that they are unrelated projects.

json-path/JsonPath#203

Thus, Christopher Barham, I am very interested in hearing why you claim the project has moved.

Looking forward to you answer... ;-)

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jul 13, 2018

Sam Brannen commented

After further analysis, I see zero compatibility between the Jayway implementation and the REST Assured implementation.

In light of that, I am closing this issue.

 

 

@spring-projects-issues spring-projects-issues added status: invalid in: test type: task labels Jan 11, 2019
@spring-projects-issues spring-projects-issues removed the type: task label Jan 12, 2019
@chas678
Copy link

@chas678 chas678 commented Jun 10, 2019

@sbrannen - can we re-open the discussion? I think it has moved because it's in the release notes and the jayway version has not been updated since 2017.
ref:
https://stackoverflow.com/questions/42016076/what-is-the-difference-between-io-rest-assured-vs-jayway-rest-assured
and the release notes at:
https://github.com/rest-assured/rest-assured/wiki/ReleaseNotes30#highlights

@sbrannen
Copy link
Member

@sbrannen sbrannen commented Jun 11, 2019

can we re-open the discussion?

Please see json-path/JsonPath#203 (comment):

There is no relationship between the projects. RestAssured JsonPath is based on Groovys JsonSlurper and is not compatible with the Gossner JSONPath specs.

Thus, the Java JsonPath used in Spring has not moved.

and the jayway version has not been updated since 2017.

Although that is true, there is recent development work on the project (see commits). As for when they will release a new version, I don't know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test status: invalid
Projects
None yet
Development

No branches or pull requests

3 participants