Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Miriup opened this issue Nov 8, 2017 · 1 comment

Comments

@Miriup
Copy link

Miriup commented Nov 8, 2017

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants