How to use this api?
liach opened this issue ยท 17 comments
Ref Railcraft/Railcraft#685
Is it better to ship the api from this repo (submodule) or copy the code? I afraid that integrating this might make the api shippping harder...
I had to strip the ic2 API out, and then build a jar with just the classic API in, that then allows me to just add a line into my build.gradle
You should get a maven, with jar files that just contain the ic2 classic api and none of the normal ic2 classic classes.
Sadly i do not know how to make that @modmuss50.
Well for compiling you do not need a Jar. The sourcecode can be used too.
I have this repo https://github.com/modmuss50/IC2-Classic-API-STANDALONE it is a clone of the ic2 classic api just without all of the ic2 classes.
Then I use my jenkins to build this, and it uploads to my maven: http://maven.modmuss50.me/
In TechReborn I add https://github.com/TechReborn/TechReborn/blob/master/build.gradle#L36 this to tell gradle where to look for dependences. In that build.gradle file I have https://github.com/TechReborn/TechReborn/blob/master/build.gradle#L119 The reason I am using 'shade' not 'compile' is because I want to include this jar into the final release jar. Shading requires a bit more code in the build.gradle
EDIT:
And I have an automated jenkins to build it and upload to the maven repo. http://modmuss50.me:8080/job/IC2-Classic-API-STANDALONE/
would be great. But my time is sadly over... I have in about 1 hour a meeting and have to leave now...
You can download the API and implement it to your source.
Both ways work fine.
Also @liach what of the API do you want to use. Information would be helpfull.
Just
If you update the api on time that would be helpful.
oh ok. Simply the API is updated. Just updated the API for the newest Classic release.
Also the API at that part you ask for will not change in the near future...
@modmuss50 well i am back at least. Tell me when you have time.
@Speiger poke me on irc if you are around, I can't seem to find you.
@modmuss50 sry totally forgot you. I was to tiered and went sleep early sry