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

Ignore empty middle projects #756

Open
ianbrandt opened this issue Mar 27, 2023 · 0 comments
Open

Ignore empty middle projects #756

ianbrandt opened this issue Mar 27, 2023 · 0 comments

Comments

@ianbrandt
Copy link

From @jvandort in #727 (comment):

The log4j problem was present on 0.44.0 before these changes. It is related to trying to resolve the buildscript classpath configuration in the :subprojects project, which has a log4j dependency constraint. Though since the :subprojects project is empty with only a single subproject itself and no other configuration, it has no plugins.

You can either file a separate issue or add a repository to the :subprojects project.

Reproducer: https://github.com/ianbrandt/gradle-versions-plugin-platform-constraints/ (commit as of this writing: https://github.com/ianbrandt/gradle-versions-plugin-platform-constraints/tree/09d5e70d2f78789a045f5442fd05fa6b62d41594).

As said, ":subprojects" is just an empty middle project with no plugins defined. It's not included on its own in my 'settings.gradle.kts', only ":subprojects:app" is: https://github.com/ianbrandt/gradle-versions-plugin-platform-constraints/blob/09d5e70d2f78789a045f5442fd05fa6b62d41594/settings.gradle.kts#L17.

It doesn't have its own 'settings.gradle.kts' or 'build.gradle.kts', and only the Versions Plugin is applied to my root build: https://github.com/ianbrandt/gradle-versions-plugin-platform-constraints/blob/09d5e70d2f78789a045f5442fd05fa6b62d41594/build.gradle.kts#L15.

I would expect the Versions Plugin to just ignore it. Instead the following is printed:

Failed to determine the latest version for the following dependencies (use --info for details):
 - org.apache.logging.log4j:log4j-core
     2.20.0
The exception that is the cause of unresolved state: org.gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency org.apache.logging.log4j:log4j-core:+ because no repositories are defined.
Required by:
    project :subprojects
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

1 participant