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

Overhaul gradle inclusion/exclusion logic #620

Merged
merged 5 commits into from
Jul 30, 2021
Merged

Overhaul gradle inclusion/exclusion logic #620

merged 5 commits into from
Jul 30, 2021

Conversation

rcoh
Copy link
Collaborator

@rcoh rcoh commented Jul 30, 2021

Description of changes: Our environment variable based gradle logic didn't work properly and was plagued by caching issues. I think this works and is the "right way" to do it. Two major changes:

  1. Using gradle properties instead of environment variables
  2. The magic input.property that compares equality of this value vs. the serialized value of the previous value allowing us to use the list of services as a compared property (after toStringing for serialization).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rcoh rcoh requested a review from jdisanti July 30, 2021 15:09
#

# base set of services that are generated unless other options are specified:
aws.services.tier1=+apigateway,+applicationautoscaling,+autoscaling,+autoscalingplans,+batch,+cloudformation,+cloudwatch,+cloudwatch,+cloudwatchlogs,+cognitoidentity,+cognitoidentityprovider,+cognitosync,+config,+dynamodb,+ebs,+ec2,+ecr,+ecs,+eks,+iam,+kinesis,+kms,+lambda,+medialive,+mediapackage,+polly,+qldb,+qldbsession,+rds,+rdsdata,+route53,+s3,+sagemaker,+sagemakera2iruntime,+sagemakeredge,+sagemakerfeaturestoreruntime,+secretsmanager,+sesv2,+snowball,+sns,+sqs,+ssm,+sts
Copy link
Collaborator

Choose a reason for hiding this comment

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

Properties files allow you to break things over multiple lines if you want to make this more readable:

aws.services.tier1=\
  +apigateway,\
  +applicationautoscaling,\
...

@rcoh rcoh enabled auto-merge (squash) July 30, 2021 21:10
@rcoh rcoh merged commit 03ae7cc into main Jul 30, 2021
@rcoh rcoh deleted the gradle-v2 branch July 30, 2021 21:18
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.

2 participants