Skip to content

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

@Miriup

Description

@Miriup

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions