-
Notifications
You must be signed in to change notification settings - Fork 3.5k
make sure versions.yml is only read once into gradle.ext #17865
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
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
This pull request does not have a backport label. Could you fix it @jsvd? 🙏
|
|
💚 Build Succeeded
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea to avoid duplication.
I tried with the input java test plugin (https://github.com/logstash-plugins/logstash-input-java_input_example) and ./gradlew clean test
fails with:
FAILURE: Build failed with an exception.
* Where:
Script '/Users/andrea/workspace/logstash_andsel/rubyUtils.gradle' line: 27
* What went wrong:
A problem occurred evaluating script.
> Cannot get property 'versions' on extra properties extension as it does not exist
* 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 3s
We have to understand if we want to support that example or not.
@andsel I've addressed the java plugin issue by tweaking the plugin's build.gradle here logstash-plugins/logstash-input-java_input_example#19 This would have to be replicated to the other example plugins. I couldn't find a more elegant solution, unfortunately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
this removes the need to re-read the yaml file in so many places, and also avoids having to state the jruby version an extra time in the rubyUtils.gradle It uses gradle.ext, computed in settings.gradle, as a place to store the versions. This is important to load the versions before any other buildscript {} block runs. (cherry picked from commit b430599) # Conflicts: # rubyUtils.gradle
this removes the need to re-read the yaml file in so many places, and also avoids having to state the jruby version an extra time in the rubyUtils.gradle It uses gradle.ext, computed in settings.gradle, as a place to store the versions. This is important to load the versions before any other buildscript {} block runs. (cherry picked from commit b430599) # Conflicts: # rubyUtils.gradle
this removes the need to re-read the yaml file in so many places, and also avoids having to state the jruby version an extra time in the rubyUtils.gradle It uses gradle.ext, computed in settings.gradle, as a place to store the versions. This is important to load the versions before any other buildscript {} block runs. (cherry picked from commit b430599)
this removes the need to re-read the yaml file in so many places, and also avoids having to state the jruby version an extra time in the rubyUtils.gradle It uses gradle.ext, computed in settings.gradle, as a place to store the versions. This is important to load the versions before any other buildscript {} block runs.
…7901) this removes the need to re-read the yaml file in so many places, and also avoids having to state the jruby version an extra time in the rubyUtils.gradle It uses gradle.ext, computed in settings.gradle, as a place to store the versions. This is important to load the versions before any other buildscript {} block runs. (cherry picked from commit b430599) Co-authored-by: João Duarte <[email protected]>
… gradle.ext (#17900) * make sure versions.yml is only read once into gradle.ext (#17865) this removes the need to re-read the yaml file in so many places, and also avoids having to state the jruby version an extra time in the rubyUtils.gradle It uses gradle.ext, computed in settings.gradle, as a place to store the versions. This is important to load the versions before any other buildscript {} block runs. (cherry picked from commit b430599) # Conflicts: # rubyUtils.gradle * Update rubyUtils.gradle --------- Co-authored-by: João Duarte <[email protected]>
…o gradle.ext (#17899) * make sure versions.yml is only read once into gradle.ext (#17865) this removes the need to re-read the yaml file in so many places, and also avoids having to state the jruby version an extra time in the rubyUtils.gradle It uses gradle.ext, computed in settings.gradle, as a place to store the versions. This is important to load the versions before any other buildscript {} block runs. (cherry picked from commit b430599) # Conflicts: # rubyUtils.gradle * Update rubyUtils.gradle * Update build.gradle * Update build.gradle --------- Co-authored-by: João Duarte <[email protected]>
this removes the need to re-read the yaml file in so many places, and also avoids having to state the jruby version an extra time in the rubyUtils.gradle
It uses
gradle.ext
, computed in settings.gradle, as a place to store the versions. This is important to load the versions before any otherbuildscript {}
block runs. From what I can gleam this isn't an anti-pattern, but happy to be convinced otherwise.Exhaustive test suite: https://buildkite.com/elastic/logstash-exhaustive-tests-pipeline/builds/2179/steps/canvas