Skip to content

Fix error 'Cannot mutate the dependencies of configuration'#1360

Open
snjeza wants to merge 1 commit into
eclipse-buildship:masterfrom
snjeza:issue-1355
Open

Fix error 'Cannot mutate the dependencies of configuration'#1360
snjeza wants to merge 1 commit into
eclipse-buildship:masterfrom
snjeza:issue-1355

Conversation

@snjeza

@snjeza snjeza commented Dec 29, 2025

Copy link
Copy Markdown

Fixes #1355

// https://github.com/eclipse-buildship/buildship/issues/1355
if (cause.getMessage() != null && cause.getMessage().startsWith(COULD_NOT_CREATE_TASK)) {
GradleProject model = connection.model(GradleProject.class).get();
List<String> tasks = new ArrayList<>();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should prolly use a Set here, or else you will likely collect duplicate tasks

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's good

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

Successfully merging this pull request may close these issues.

Gradle build improperly fails with "cannot mutate dependencies of configuration ':runtimeOnly'"

3 participants