question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Nebula Gradle info plugin upgrade errors

See original GitHub issue

Describe the bug After upgrading the nebula gradle info plugin (#2831), when applying opensearch.build plugin in gradle, it is causing the below error:

A problem occurred evaluating root project 'bwc-test'.
> Failed to apply plugin 'nebula.info-basic'.
   > Cannot obtain value from provider of system property 'user.name' at configuration time.
     Use a provider returned by 'forUseAtConfigurationTime()' instead.

Security plugin faced this issue when moving to 2.0 for bwc tests - #2987

To Reproduce Steps to reproduce the behavior: Added in #2987

Expected behavior The upgrade does not cause errors.

Plugins Please list all plugins currently enabled.

Screenshots If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
owaiskazi19commented, May 16, 2022

Hi @cliu123! Coming from https://github.com/opensearch-project/OpenSearch/issues/2987. I tried to change the gradle version here to 7.3.3-bin and bwc test did pass for me. Can you try it out and let us know if it resolves the issue?

>>$ ./gradlew bwcTestSuite -Dtests.security.manager=false

FAILURE: Build failed with an exception.

* Where:
Build file '/home/ubuntu/security/bwc-test/build.gradle' line: 34

* What went wrong:
A problem occurred evaluating root project 'bwc-test'.
> Failed to apply plugin 'nebula.info-basic'.
   > Cannot obtain value from provider of system property 'user.name' at configuration time.
     Use a provider returned by 'forUseAtConfigurationTime()' instead.

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

* Get more help at https://help.gradle.org

BUILD FAILED in 538ms

With 7.3.3-bin gradle version

>>$ ./gradlew bwcTestSuite -Dtests.security.manager=false
=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 7.3.3
  OS Info               : Linux 5.11.0-1020-aws (amd64)
  Runtime JDK Version   : 14 (Private Build JDK)
  Runtime java.home     : /usr/lib/jvm/java-14-openjdk-amd64
  Gradle JDK Version    : 14 (Private Build JDK)
  Gradle java.home      : /usr/lib/jvm/java-14-openjdk-amd64
  Random Testing Seed   : 54CC66F17E2A5183
  In FIPS 140 mode      : false
=======================================

BUILD SUCCESSFUL in 1m 15s
8 actionable tasks: 8 executed
0reactions
dbwiddiscommented, Jul 5, 2022

Closing this issue:

  • The version is already updated in OpenSearch and has been shown not to have issues with Gradle 7+
  • PR submitted to opensearch.build to upgrade there
  • data-prepper already upgraded
  • perftop has older version but doesn’t build due to other compatibilities; project appears currently unmaintained to address these
Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading your build from Gradle 6.x to the latest
Some plugins will break with this new version of Gradle, for example ... Try to run the project and debug any errors using...
Read more >
Idea autocomplete ignores third party plugins from gradle
When working over gradle project build script ( build.gradle ) IDEA autocomplete fails to recoginze any types supplied by thirdparty plugins.
Read more >
nebula-plugins/gradle-ospackage-plugin - Gitter
Currently "yum install" works fine, but "yum update" doesn't work. Looks like "yum update" runs the preInstall, postInstall (on new rpm version), and...
Read more >
Nebula: Netflix's OSS Gradle Plugins - YouTube
Nebula : Netflix's OSS Gradle Plugins presented by Rob Spieldenner at GR8Conf US 2015.
Read more >
Bug listing with status UNCONFIRMED as at 2022/12/12 00 ...
Bug :128538 - "sys-apps/coreutils: /bin/hostname should be installed from ... warnings/errors on updating shared mime info database" status:UNCONFIRMED ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found