Move test plugins in a detached project so they can use the Gradle Besu plugin #9590
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR description
This PR ports the existing test plugins, used for acceptance tests, to use the Gradle plugin for Besu plugins, this way the acceptance tests are closer to the standard way of using plugins and it will allow for more plugin verification on startup to be implemented in following PR.
To achieve that the
test-pluginssubproject has to be moved to a new detached project, due to circular dependencies between Besu and the Gradle plugin, while trying to keep the DevUX intact as much as possible.Basically since the Gradle plugin needs to know the version of Besu to use, and we want to use the current local version, before building anything in the detached project, Besu project must publish its artifacts to mavenLocal, for this helper tasks have been added to Besu's
build.gradleto automate that part, and normally a developer should not know about them, because the normal development workflow remains the same.Fixed Issue(s)
Thanks for sending a pull request! Have you done the following?
doc-change-requiredlabel to this PR if updates are required.Locally, you can run these tests to catch failures early:
./gradlew spotlessApply./gradlew build./gradlew acceptanceTest./gradlew integrationTest./gradlew ethereum:referenceTests:referenceTests