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

Gradle: Configure compiler options via build-logic #2026

Merged

Conversation

beatbrot
Copy link
Contributor

@beatbrot beatbrot commented Oct 18, 2024

Moves some of the "uninteresting" options to build-logic to clean up <projectname>.gradle files.

The basic idea of this PR is that much of the tedious configuration shall happen in the spockframework.base plugin.
All subprojects apply that plugin and profit from the abstraction.

"Interesting stuff" like declaration of dependencies shall still happen in <projectname>.gradle files.
I'd like to expand this idea , but I want to keep the PRs small and start with the most simple stuff first.

@beatbrot beatbrot force-pushed the compile-options-to-build-logic branch from 1436d62 to e7bf588 Compare October 18, 2024 16:05
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.80%. Comparing base (2c7db77) to head (bbbd167).
Report is 173 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2026      +/-   ##
============================================
+ Coverage     80.44%   81.80%   +1.35%     
- Complexity     4337     4614     +277     
============================================
  Files           441      448       +7     
  Lines         13534    14463     +929     
  Branches       1707     1830     +123     
============================================
+ Hits          10888    11832     +944     
+ Misses         2008     1954      -54     
- Partials        638      677      +39     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@beatbrot beatbrot force-pushed the compile-options-to-build-logic branch from e7bf588 to c98b28b Compare October 18, 2024 16:15
Moving these "uninteresting" options to build-logic cleans up
the build.gradle file and makes it more readable
@beatbrot beatbrot marked this pull request as ready for review October 18, 2024 16:27
Copy link
Member

@AndreasTu AndreasTu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @beatbrot for the change.

@leonard84 can you also have a look?

Copy link
Member

@leonard84 leonard84 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR

@leonard84 leonard84 enabled auto-merge (squash) December 20, 2024 12:29
@leonard84 leonard84 merged commit f516604 into spockframework:master Dec 20, 2024
25 checks passed
@beatbrot beatbrot deleted the compile-options-to-build-logic branch December 20, 2024 13:35
@beatbrot
Copy link
Contributor Author

Thank you very much for the review :)

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