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

There seems to be an issue on Gradle 8.1.1 and init scripts #146

Open
remy-tiitre opened this issue Jun 5, 2023 · 2 comments
Open

There seems to be an issue on Gradle 8.1.1 and init scripts #146

remy-tiitre opened this issue Jun 5, 2023 · 2 comments

Comments

@remy-tiitre
Copy link
Contributor

When I apply the plugin in my build script like this:

plugins {
    id 'java-library'
    id 'com.netflix.nebula.resolution-rules' version '10.2.0'
}

it works, but we apply the plugin in custom Gradle wrapper like this:

initscript {
    dependencies {
        classpath 'com.netflix.nebula:gradle-resolution-rules-plugin:10.2.0'
    }
}

And this crashes with an error:

Could not resolve all files for configuration 'classpath'.
> Could not resolve com.fasterxml.jackson:jackson-bom:{strictly 2.9.10.20210106}.
  Required by:
      unspecified:unspecified:unspecified > com.netflix.nebula:gradle-resolution-rules-plugin:10.2.0
   > Cannot find a version of 'com.fasterxml.jackson:jackson-bom' that satisfies the version constraints:
        Dependency path 'unspecified:unspecified:unspecified' --> 'com.netflix.nebula:gradle-resolution-rules-plugin:10.2.0' (runtimeElements) --> 'com.fasterxml.jackson:jackson-bom:{strictly 2.9.10.20210106}'
...

Is there a reason why its enforcedPlatgorm?
implementation enforcedPlatform("com.fasterxml.jackson:jackson-bom:2.9.10.+")

@remy-tiitre
Copy link
Contributor Author

I think you need the same changes in this project nebula-plugins/nebula-plugin-plugin@d8a8616

@remy-tiitre
Copy link
Contributor Author

@OdysseusLives I think the original change was done by you, or maybe it was merged by you. I would make a PR, but as I don't know the reasons why it was forced to certain version I would hope someone who does makes the change.

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