jaqobb / namemc

Lightweight, straightforward, easy-to-use and fast NameMC Java wrapper
Apache License 2.0
24 stars 7 forks source link

Maven Dependency #5

Closed Bedlessdeus closed 1 week ago

Bedlessdeus commented 2 years ago

Could you please make A Maven Depedency & Repository for this!

Lamby777 commented 2 months ago

yea the one in the readme doesn't work

> Could not resolve all files for configuration ':app:compileClasspath'.
   > Could not find dev.jaqobb:namemcapi:2.0.7.
     Searched in the following locations:
       - https://jcenter.bintray.com/dev/jaqobb/namemcapi/2.0.7/namemcapi-2.0.7.pom
       - https://repo.maven.apache.org/maven2/dev/jaqobb/namemcapi/2.0.7/namemcapi-2.0.7.
pom

did it get taken down or something? sorry i'm kinda new to gradle/maven setup stuff

jaqobb commented 2 months ago

yea the one in the readme doesn't work

> Could not resolve all files for configuration ':app:compileClasspath'.
   > Could not find dev.jaqobb:namemcapi:2.0.7.
     Searched in the following locations:
       - https://jcenter.bintray.com/dev/jaqobb/namemcapi/2.0.7/namemcapi-2.0.7.pom
       - https://repo.maven.apache.org/maven2/dev/jaqobb/namemcapi/2.0.7/namemcapi-2.0.7.
pom

did it get taken down or something? sorry i'm kinda new to gradle/maven setup stuff

Hey! It was not actually taken down but JCenter repository got closed a while back making it impossible to use the dependency. I no longer support this API so if you wish to use it, you would have to clone the repository and install the library to your local repository yourself. Running ./gradlew clean build shadowJar publishMavenPublicationToMavenLocal should do the job.

Lamby777 commented 2 months ago

yea the one in the readme doesn't work ...

Hey! It was not actually taken down but JCenter repository got closed a ...

Oh, thanks! Which version of Java did you use for this? Now it's saying there's a missing dependency:

Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
> Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.reflection.ReflectionCache [in thread "Daemon worker"]
jaqobb commented 2 months ago

Java 11 with Gradle 5.6.2, though the Gradle part should not really matter as there is a bundled one inside.

Alternatively, given how small the code actually is, you can just put the source code directly into your project and edit it to your needs.

jaqobb commented 1 week ago

I will be closing this issue. I have revamped the project and although the feature set is still the same given the small amount of exposed endpoints, the way the library is used was updated and streamlined for future potential updates.

I have also set up a personal repository and the newest version of Java wrapper for NameMC is included there, more info in the new and refreshed README. As such, manually compiling the library and publishing it to a local repository is no longer necessary.