-
Notifications
You must be signed in to change notification settings - Fork 131
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
Can I just get a jar? #31
Comments
Just run the command gradle jar in project folder. Then go to build folder. You will see gdax-java-0.9.0.jar |
And directly download a jar and an example with it is not possible ? (Like big players do like google for example with tensorflow for java .... you go to the site download a ready to use jar file and them see examples using that jar ... simple dont you think ? ) |
./gradlew jar then the file should appear under build/gdax-java-[VERSION].jar |
its not on maven yet but no reason why it can't be |
Using maven it is a real pain... I was force to use maven to use DL4J in my project. I just wanted to include a DL4J.JAR in a bigger project. Generate DL4J.JAR was a titanic operation (I only manage to produce the jar with the maven eclipse plugin - maven command line did not do the job ...). In the end I end up with a DL4J.JAR of 400MB that is bigger than the entire project (because maven force the inclusion of many many things that were not needed to have a stand alone jar) and impossible to upload it in github ... Result: forget DL4J and use tensorflow in java. Google provide a small tensoflow.jar (ready to download) that was simple to include in any project. In this project (gdax-java ) it is easy to have a jar but you have to put the credentials inside the jar (not good). And on top of that we are force to learn spring. I did not look into spring yet but it seams I will have to change the base logic of my project where I want to include gdax-java just because of "spring" ... |
It really shouldn't be so hard. This is why build tools exist (like Gradle). Managing dependencies by downloading them isn't transferrable from one machine to the next so easily. Also managing the correct versions of dependencies will become more difficult if you do it manually. Regarding the credentials being difficult to manage - we will look into this. I know others have managed to make use of the codebase as a lib successfully but its not something I've done and so it hasn't been documented yet. I'm working on a live orderbook that will initially be applied on top of the existing codebase. Once thats done, I'll attempt to put it into a separate codebase entirely which will be independent of the API. Hopefully then that can act as a live document/example of how to use this codebase as a library. |
Being forced to learn spring... hmm. I guess if you embrace Spring within Java you will find it makes your life orders of magnitude easier. I tried to create a project similar to this before now without spring. It became spaghetti code and unmanageable. I've since been back and begun converting it to a Spring application and the resulting code is SOO much better, more readable, more manageable, more maintainable. I can't sing and dance enough about how much faster I can now develop applications. I'm a relative novice with it too. But I get where you're coming from. I was once (in the not too distant past) incapable of understanding Spring too. Since I now understand it and use it on enterprise projects I can tell you its a necessity for any larger scale system, which this could easily become. Start with the right foundations.... That said, there are 76 Forks of the codebase - some have been amended to remove spring (if I remember correctly). You only have to look at what others have done (I will not do this portion of leg work for you) to find a version that works for you. Before this version, from what research I did, there was relatively little choice in what you could work with. Having this library has opened up the gates for many others to improve it. |
But if you have already a big Java project (related with markets trading.. with scalping, trailing-stops, swing mechanism, already implemented in generic form and machine learning methods already integrated etc, etc ) and just want to read data and include it in this project (that does not use spring) it will be a nightmare that would be solved with a simple pure java JAR to connect and retrieve data and put simple orders on the market ... This API, that should be simple (because it is just a communication API nothing more ) to integrate in any project, will force the host java code/framework to use spring logic ... Does it makes sense to build a JAR simple communication base API based on spring (?) |
Just was with a friend here that does not understand nothing about computers and I have explain to him : And he said : lol |
log in - there is no login - all requests are signed with a secret unique to the user and cryptographic hashing. It really is simpler with Spring. Perhaps you can provide a bit more detail about which java project you're trying to integrate this with? I'm soon going to start looking at writing the documentation for using this more as a library |
Looking to publish to maven as a next step so the libs can be depended on independently |
I have give up on this a longo time ago because of spring... Using bitmex Java Simple to use implementation |
#31 re-add lost update to websocket feed's object mapper
That's a different exchange but glad you were able to find something that you can work with. |
Doing ./gradlew build produces an empty jar for the whole project. However, it does produce a jar for each subproject (api, ...). How can I make a "fat-jar" to be included in a project? Do I have to include each subproject independently? |
#74 - one jar that contains everything. I've merged this to master |
try |
It worked. Thanks! |
This might be a kind of stupid question, but is it possible the the gradlescript does not work? I get this error:
|
what version of gradle are you running with? It worked last time I checked. |
I found the issue. I had Java 1.8 in my java_path. Everything works fine with 11 |
Hey all I had the use case that I just wanted some parts of this project (api/model/security) so I created a script which is cloning this repo, building it and pushing the final jars to a local maven repository. Now I can use them like any other dependency in my project. Steps
Now you can use them as described here: https://github.com/irufus/gdax-java/blob/master/CONTRIBUTING.md |
I just want the jar. ./gradlew jar does not work. i dont want to run this in spring boot. just standalone java application.
The text was updated successfully, but these errors were encountered: