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 plugin - improve compatibility with Configuration Cache #1825

Conversation

aSemy
Copy link
Contributor

@aSemy aSemy commented Oct 14, 2022

Avoid using Project during task execution

  • Use properties to capture the Project group/name/version
  • Inject and use build services, rather than using Project
  • minor refactor (tidy buildRootPath(), fix some Javadoc)

The tests pass, but I haven't verified that the plugin is now compatible with the Gradle Configuration Cache, so I'm marking this as 'draft'.

(hopefully) fixes #1824

@pivotal-cla
Copy link

@aSemy Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@aSemy aSemy marked this pull request as draft October 14, 2022 14:50
@pivotal-cla
Copy link

@aSemy Thank you for signing the Contributor License Agreement!

@marcingrzejszczak marcingrzejszczak changed the base branch from main to 3.1.x November 29, 2022 08:43
@marcingrzejszczak marcingrzejszczak changed the base branch from 3.1.x to main November 29, 2022 08:43
@marcingrzejszczak
Copy link
Contributor

hey @shanman190 , WDYT?

@marcingrzejszczak
Copy link
Contributor

@aSemy can you please resolve the conflicts?

@shanman190
Copy link
Contributor

@marcingrzejszczak, the implementation looks good to me and is compatible with the Gradle 6.8 baseline for 3.1. Only thing that stuck out to me was the code style not following the Spring defaults, but that's minor.

@marcingrzejszczak marcingrzejszczak added this to the 4.0.0-RC3 milestone Nov 29, 2022
@marcingrzejszczak marcingrzejszczak marked this pull request as ready for review November 29, 2022 14:37
@marcingrzejszczak
Copy link
Contributor

@aSemy can we merge this?

@aSemy
Copy link
Contributor Author

aSemy commented Nov 29, 2022

@marcingrzejszczak definitely!

@marcingrzejszczak marcingrzejszczak merged commit 7b876aa into spring-cloud:main Nov 29, 2022
@marcingrzejszczak
Copy link
Contributor

Congrats @aSemy on your first contribution :)

@aSemy aSemy deleted the gradle_plugin/fix/config_cache_compat branch November 29, 2022 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Spring Cloud Contract Gradle Plugin is not compatible with Gradle Configuration Cache
5 participants