Repository navigation
Conversation
|
Thanks, good ideas!
Yeah, we can get rid of the extra Java client then.
Then we would have to deploy the clients to all language specific binary repository. For Java we already do this, for the other languages it would be too much effort. To leave the autocreation to the users seems also suboptimal, as they would need to install java to run the swagger codegen. |
Valid point, now it's easy to clone / use the latest |
For Java it would be okay to remove the autocreated code as we deploy this to maven central or the snapshots to sonatype. |
Are they now automatically published with each successful commit? |
|
Yeah, this is the reason I would like to keep https://github.com/graphhopper/directions-api-clients with the Java code after we deprecated https://github.com/graphhopper/directions-api-java-client |
|
Ah, btw, @karussell, did you see, this is now independent of the dropwizard PR. I just moved it over. |
karussell
left a comment
There was a problem hiding this comment.
LGTM, only a few comments ...
| * additional information regarding copyright ownership. | ||
| * | ||
| * GraphHopper GmbH licenses this file to you under the Apache License, | ||
| * GraphHopper licenses this file to you under the Apache License, |
There was a problem hiding this comment.
The license header should be fixed to GraphHopper GmbH
| @@ -0,0 +1,18 @@ | |||
| # | |||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ |
There was a problem hiding this comment.
Here the same regarding the license header
| * | ||
| * @author Peter Karich | ||
| */ | ||
| public class WebHelper { |
There was a problem hiding this comment.
Is this class now duplicate as we also have com.graphhopper.http.WebHelper and if yes, can we avoid this somehow?
There was a problem hiding this comment.
Yes and yes, in the next step, where we move all the Data Transfer Objects (including, probably, GHRequest / GHResponse) and their serializers-deserializers to another module (without HTTP-client dependencies, only Jackson-API and javax.ws API), which is then included by core, client and server.
|
Cool & Thanks! |
Fixes #1104.
I hope I was careful enough merging the two versions, they were already diverged quite a bit.
Further suggestion: Rename it from "client-hc" to "client". (That's inside-out terminology, nobody cares that it's hand-coded.)
Even further suggestion (for the other repository): Move the Swagger client into the repository with the other Swagger clients, then it's clear where it comes from and can be regenerated easier. Repositories are mainly for the coders of the stuff which is inside, not for coders who want to use the stuff which is inside for coding. So having specifically the Java-Swagger client separate to make it more visible shouldn't be necessary.
Even more further suggestion: Remove the Java-Swagger client and the Swagger-Client repository completely, because arguably generated code shouldn't be in a repository at all but should be generated. Is that possible?