nebula-plugins / nebula-plugins/gradle-resolution-rules-plugin

Deny rule shows exception multiple times

Open
#38 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Groovy
Stars
49
Forks
15
Avg merge
23h 52m
Merged PRs (30d)
2

Description

Reproduced in https://github.com/nadavc/repro-rules-exceptions

$ gw build                                                                                                                                                       

Using gradle at '/Users/ncohen/dev/tests/repro/gradlew' to run buildfile '/Users/ncohen/dev/tests/repro/build.gradle':

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'repro'.
> Failed to notify project evaluation listener.
   > Dependency org.slf4j:slf4j-api denied by dependency rule: reproducing bug
   > Dependency org.slf4j:slf4j-api denied by dependency rule: reproducing bug
   > Dependency org.slf4j:slf4j-api denied by dependency rule: reproducing bug
   > Dependency org.slf4j:slf4j-api denied by dependency rule: reproducing bug
   > Dependency org.slf4j:slf4j-api denied by dependency rule: reproducing bug
   > Dependency org.slf4j:slf4j-api denied by dependency rule: reproducing bug
   > Dependency org.slf4j:slf4j-api denied by dependency rule: reproducing bug
   > Dependency org.slf4j:slf4j-api denied by dependency rule: reproducing bug
   > Dependency org.slf4j:slf4j-api denied by dependency rule: reproducing bug

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

BUILD FAILED

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 with the reproduction at https://github.com/nadavc/repro-rules-exceptions and run gw build against its build.gradle. Trace the dependency-rule failure reported during project evaluation and identify why the same denial appears repeatedly; done means the exception is shown only once while the build still reports the denied dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.