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

Add ReplacedBy attribute to identify properties that are replaced by … #8581

Merged
merged 3 commits into from Feb 26, 2019

Conversation

big-guy
Copy link
Member

@big-guy big-guy commented Feb 21, 2019

…other properties

This is informational only for now. @ReplacedBy is treated like @internal.

Context

Contributor Checklist

  • Review Contribution Guidelines
  • Make sure that all commits are signed off to indicate that you agree to the terms of Developer Certificate of Origin.
  • Check "Allow edit from maintainers" option in pull request so that additional changes can be pushed by Gradle team
  • Provide integration tests (under <subproject>/src/integTest) to verify changes from a user perspective
  • Provide unit tests (under <subproject>/src/test) to verify logic
  • Update User Guide, DSL Reference, and Javadoc for public-facing changes
  • Ensure that tests pass locally: ./gradlew <changed-subproject>:check

Gradle Core Team Checklist

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation
  • Recognize contributor in release notes

…other properties

This is informational only for now. @ReplacedBy is treated like @internal.
@big-guy big-guy added this to the 5.3 RC1 milestone Feb 21, 2019
@big-guy big-guy added the @core Issue owned by GBT Core label Feb 21, 2019
@big-guy big-guy requested a review from ghale February 21, 2019 20:22
* limitations under the License.
*/

package org.gradle.api.tasks;
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't be task specific, because we want to do similar kind of things (documentation, validation, migration magic, ignore as state) for extensions and other model types.

@@ -89,6 +90,10 @@ PropertyAnnotationHandler createInternalAnnotationHandler() {
return new NoOpPropertyAnnotationHandler(Internal.class);
}

PropertyAnnotationHandler createReplacedByAnnotationHandler() {
Copy link
Member

Choose a reason for hiding this comment

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

Can you also update 'ValidateTaskPropertiesIntegrationTest` to verify we don't complain about a property with this annotation.

Also, we should probably complain or fail when another input or output annotation is attached to a @ReplacedBy property, as the annotations should move to the new property.

@big-guy big-guy self-assigned this Feb 25, 2019
Make sure we get an error if you combine two annotations with ReplacedBy
@big-guy big-guy changed the base branch from master to release February 26, 2019 04:01
@big-guy big-guy merged commit 483f981 into release Feb 26, 2019
@big-guy big-guy deleted the sg/provider/replacedby branch March 6, 2019 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@core Issue owned by GBT Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants