namemc-api icon indicating copy to clipboard operation
namemc-api copied to clipboard

Maven Dependency

Open Bedlessdeus opened this issue 3 years ago • 4 comments

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

Bedlessdeus avatar Aug 14 '22 22:08 Bedlessdeus

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

Lamby777 avatar Jul 31 '24 15:07 Lamby777

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.

zagrski avatar Jul 31 '24 16:07 zagrski

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"]

Lamby777 avatar Jul 31 '24 19:07 Lamby777

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.

zagrski avatar Aug 01 '24 07:08 zagrski