OpenSextant / giscore

GIS file data format streaming input and output library
Other
9 stars 3 forks source link

Cannot change dependencies of configuration ':compile' after it has been included in dependency resolution. #9

Open Miriup opened 6 years ago

Miriup commented 6 years ago

I'm trying to write a splitter for large KML files and giscore has been recommended as a KML stream reader & writer. I'm trying to compile giscore with gradle 3.4.1 and I'm getting the following error:

The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_6brwhzs6v3omjt2bh5fe56rcs.run(/home/dirk/src/giscore/build.gradle:137)

FAILURE: Build failed with an exception.

* Where:
Build file '/home/dirk/src/giscore/build.gradle' line: 198

* What went wrong:
A problem occurred evaluating root project 'giscore'.
> Cannot change dependencies of configuration ':compile' after it has been included in dependency resolution.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 0.743 secs

I'm not sure how proceed, because I'm completely unfamiliar with gradle. I was hoping I can get giscore compiled into a jar or .class files and then use it from a custom Java app.

mubaldino commented 6 years ago

Dirk @ miriup,

Binary and dependencies are described in POM; Giscore v2.0.2 is published here: http://search.maven.org/#artifactdetails%7Corg.opensextant%7Cgiscore%7C2.0.2%7Cjar

Jason (docjason) would have to help you with the gradle issues. I'd suggest creating yourself a maven project and pulling in the maven reference as noted in link above. I'm not sure why we did not publish the test JAR files. Those would be helpful in running the tests without having to build.

sorry this is not a better solution.

cheers, Marc