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

Refactor to use convention plugins for common configuration #117

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

hpmellema
Copy link
Contributor

Description of changes:
Refactors the plugin to use convention plugins for common configuration rather than configuring all project using the subprojects block.
For more on convention plugins for common logic see: https://docs.gradle.org/current/userguide/sharing_build_logic_between_subprojects.html

This has a few benefits:

  1. The build scripts are cleaner and easier to understand
  2. The typed accessors for extensions are generated correctly within the build scripts with this approach
  3. Removes the need to disable plugins in the plugin block (i.e. apply false)

This PR also upgrades the plugins used by the project.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hpmellema hpmellema requested a review from a team as a code owner January 11, 2024 18:09
@hpmellema hpmellema requested a review from haydenbaker January 11, 2024 18:09
import org.gradle.testkit.runner.BuildResult;
import org.gradle.testkit.runner.BuildTask;
import org.gradle.testkit.runner.TaskOutcome;
import org.junit.jupiter.api.Assertions;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes checkstyle violations.

@@ -28,4 +28,9 @@
<Match>
<Bug pattern="EI_EXPOSE_REP2"/>
</Match>

<!-- Excessive Defensive checks on constructor exceptions. -->
<Match>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new bug pattern added in newer spotbugs version

@rschmitt
Copy link
Contributor

Nice. Ship it

@hpmellema hpmellema merged commit c1128e9 into smithy-lang:main Jan 12, 2024
4 checks passed
@hpmellema hpmellema deleted the refactor-common-configuration branch January 12, 2024 14:34
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

Successfully merging this pull request may close these issues.

3 participants