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

chore: refactor build to use custom smithy build plugin #1168

Merged
merged 8 commits into from
Jan 2, 2024
Merged

Conversation

aajtodd
Copy link
Contributor

@aajtodd aajtodd commented Dec 29, 2023

Issue #

Description of changes

Refactors the build to use our new codegen plugin based on the newer smithy gradle base plugin.

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

@aajtodd aajtodd requested a review from a team as a code owner December 29, 2023 16:58
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

@@ -145,13 +131,14 @@ fun awsServiceProjections(): Provider<List<SmithyProjection>> {
}

// get around class cast issues, listProperty implements what we need to pass this to `NamedObjectContainer`
return project.objects.listProperty<SmithyProjection>().value(p)
// return project.objects.listProperty<SmithyProjection>().value(p)
Copy link
Member

Choose a reason for hiding this comment

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

should this just be removed rather than commented out?

Comment on lines 184 to 189
println(software.amazon.smithy.aws.traits.ServiceTrait.ID.toString())
println(service.allTraits.map { it.key.toString() })
println(service.hasTrait(software.amazon.smithy.aws.traits.ServiceTrait::class.java))
println(service.findTrait(software.amazon.smithy.aws.traits.ServiceTrait.ID))

println("classloader...")
Copy link
Member

Choose a reason for hiding this comment

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

nit: remove unnecessary printlns

@@ -27,7 +27,7 @@ sourceControl {

rootProject.name = "aws-sdk-kotlin"

includeBuild("./gradle/sdk-plugins")
// includeBuild("./gradle/sdk-plugins")
Copy link
Member

Choose a reason for hiding this comment

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

same comment here, should this just be removed?

Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

@aajtodd aajtodd added the no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly. label Dec 29, 2023
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

Copy link

sonarqubecloud bot commented Jan 2, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@aajtodd aajtodd merged commit 60dd23c into main Jan 2, 2024
14 of 16 checks passed
@aajtodd aajtodd deleted the smithy-gradle branch January 2, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants