I'm trying to automate some tasks that will examine all repositories in all projects. I have been using curl to invoke REST API to retrieve list of projects and repos. I use python to process the json response.
Prototyping is complete and we are now implementing the code in Java. I added the maven dependency for stash-api, but that only includes the Interface for Project, so I cannot deserialize the response.
What is the correct maven dependency to include a library with class implementations that I can use to deserialize the object?
String json_response = stash_rest_api_projects();
Gson gson = new Gson();
Project p = gson.fromJson(json_response, Project.class);
This results in the error:
Unable to invoke no-args constructor for interface com.atlassian.stash.project.Project. Register an InstanceCreator with Gson for this type may fix this problem.