xaguzman / pathfinding

Java pathfinding framework.
Apache License 2.0
96 stars 28 forks source link

Gradle issue #10

Closed sm0k closed 8 years ago

sm0k commented 8 years ago

Hello, Im a bit new to gradle, Im trying to use your gdx-bridge, adding the following lines to my build.gradle:

project(":core") {
    apply plugin: "java"

    dependencies {
        compile "com.badlogicgames.gdx:gdx:$gdxVersion"
        compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
        compile "com.github.xaguzman:pathfinding:0.2.6"
        compile "com.github.xaguzman:pathfinding-gdx-bridge:0.2.6"
    }
}

However, I got the following error at build time:

Error:Gradle: Could not resolve all dependencies for configuration ':core:compile'.
> Could not find pathfinding:pathfinding:unspecified.
  Searched in the following locations:
      https://repo1.maven.org/maven2/pathfinding/pathfinding/unspecified/pathfinding-unspecified.pom
      https://repo1.maven.org/maven2/pathfinding/pathfinding/unspecified/pathfinding-unspecified.jar
      https://oss.sonatype.org/content/repositories/snapshots/pathfinding/pathfinding/unspecified/pathfinding-unspecified.pom
      https://oss.sonatype.org/content/repositories/snapshots/pathfinding/pathfinding/unspecified/pathfinding-unspecified.jar
      https://oss.sonatype.org/content/repositories/releases/pathfinding/pathfinding/unspecified/pathfinding-unspecified.pom
      https://oss.sonatype.org/content/repositories/releases/pathfinding/pathfinding/unspecified/pathfinding-unspecified.jar
  Required by:
      TestsTiles:core:1.0 > com.github.xaguzman:pathfinding-gdx-bridge:0.2.6

Am I doing something wrong?

xaguzman commented 8 years ago

Hm...that's an incorrect maven dependency created by gradle when publishing...I will see what's going on

sm0k commented 8 years ago

Thank you!

xaguzman commented 8 years ago

I have corrected the dependencies now. The correct dependency should be pointed to without problems.

Please try re-downloading the dependency (delete it from your repo cache in your local machine) and run the gradlew --refresh-dependencies