Nithanim / gw2api

A library that provides access to the api of Guild Wars 2.
Apache License 2.0
5 stars 1 forks source link

Problems setting it up #25

Open marko-kisegi opened 1 year ago

marko-kisegi commented 1 year ago

I tried setting it up new gradle command is apparently compileOnly 'me.nithanim.gw2api:gw2api:0.0.8' Then I tried making a Main class to which I got with the first command I tried running from the tutorial Caused by: java.lang.ClassNotFoundException: me.nithanim.gw2api.v2.GuildWars2Api

Nithanim commented 1 year ago

Hello! I think for gradle you need to use implementation instead of compileOnly. compileOnly would mean not to include it for runtime, and therefore you get the ClassNotFoundException because it is not included. Source:https://stackoverflow.com/questions/61696863/gradle-compileonly-and-runtimeonly

My word of warning: The library is insanely old so it uses a lot of old dependencies and might be broken. I don't know. I started a rewrite a long time ago but never finished it. I hope it still works for you!

marko-kisegi commented 1 year ago

True. I was mistaken. Its not working well for me I'm just struggling but thanks!