GradleUp / GradleUp/nmcp

When aggregation is empty, don't throw an error (it causes project sync to fail)

Open
#242 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Kotlin
Stars
131
Forks
10
Avg merge
2h 5m
Merged PRs (30d)
6

Description

What feature do you want to see added?

Here's the situation: I'm in the process of setting up publishing in my project, so there's lots to do. I just added nmcp and I'm in the process of setting it up, but I haven't finished yet.

I realise I haven't set up the signing plugin, so I add it and try refresh my project. But I run into a problem:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'my-project'.
> Nmcp: the aggregation is empty. This is usually a misconfiguration. If this is intentional, set `allowEmptyAggregation` to true.

Obviously it's a problem that should be fixed, but the issue is because nmcp throws an exception in the configuration phase I've now lost IDE support, which would help me resolve the issue.

Image

Suggestions:

Upstream changes

No response

Are you interested in contributing this feature?

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the code that raises “the aggregation is empty” during Gradle configuration, then read the linked Gradle Problems API sample. Determine how the empty aggregation should be reported without removing IDE support; done should preserve a useful configuration-time diagnostic while allowing project sync to continue as proposed.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
build-system, release
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.