Top-gg-Community / java-sdk

An API wrapper for https://top.gg/api/docs that works in Java
Apache License 2.0
36 stars 22 forks source link

Maven dependency doesn't seem to work #13

Open TechnoVisionDev opened 2 years ago

TechnoVisionDev commented 2 years ago

Im getting a Unresolved dependency: com.github.DiscordBotList:DBL-Java-Library:jar:2.1.1 error from maven but my dependency xml structure follows what is on jitpack exactly. I also have the jitpack repository as well

https://paste.ofcode.org/55mcCRchgxRj4tzajjN23U

TechnoVisionDev commented 2 years ago

I have also tried the following dependency tag and it doesn't work either

    <dependency>
        <groupId>org.discordbots</groupId>
        <artifactId>DBL-Java-Library</artifactId>
        <version>2.1.1</version>
    </dependency>
TechnoVisionDev commented 2 years ago

I have also now tried searching the repo in jitpack and get a third dependency tag that ALSO does not work. What is the real dependency?

Could not find artifact com.github.top-gg:java-sdk:jar:2.1.1 in jitpack.io

    <dependency>
        <groupId>com.github.top-gg</groupId>
        <artifactId>java-sdk</artifactId>
        <version>2.1.1</version>
    </dependency>
TechnoVisionDev commented 2 years ago

Found ANOTHER dependency tag that doesn't works! This time from maven central. How many different ones are there??

    <dependency>
        <groupId>com.github.DiscordBotList</groupId>
        <artifactId>DBL-Java-Wrapper</artifactId>
        <version>2.1.1</version>
        <type>pom</type>
    </dependency>
TechnoVisionDev commented 2 years ago

Found another dependency tag that doesn't work, this time from another jitpack page https://jitpack.io/p/discordbotlist/dbl-java-library

<dependency>
    <groupId>com.github.discordbotlist</groupId>
    <artifactId>dbl-java-library</artifactId>
    <version>2.1.1</version>
</dependency>
Thibstars commented 2 years ago

I have the same issue. Seems like this PR is opened to address it: https://github.com/top-gg/java-sdk/pull/14 can anyone provide an update please?

Update: This one does seem to work.

        <dependency>
            <groupId>com.github.top-gg</groupId>
            <artifactId>java-sdk</artifactId>
            <version>2.0.1</version>
        </dependency>
Hopefuls commented 2 years ago

Resolved by https://github.com/top-gg/java-sdk/pull/14