-
Notifications
You must be signed in to change notification settings - Fork 379
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
feat(java): CDKv2 support #1447
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1447 +/- ##
==========================================
+ Coverage 88.06% 88.82% +0.76%
==========================================
Files 132 136 +4
Lines 5109 5198 +89
Branches 1207 1195 -12
==========================================
+ Hits 4499 4617 +118
+ Misses 610 581 -29
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! See some comments.
Co-authored-by: Elad Ben-Israel <benisrae@amazon.com>
Thanks for the review @eladb. I'll address the items shortly. On a side note, I've been struggling with an issue when trying to extend the interface
The error goes away if I remove Any idea what would cause that? |
Actually to answer my above question I think it's because I'm working with local packages and yarn links. I'll see if it's still an issue once this PR is merged. |
Fixes #1446
Allow a java app to use CDKv2.
AwsCdkDeps
helper classAwsCdkDeps
is extended byAwsCdkDepsJava
andAwsCdkDepsJs
in order to handle different package names but retain all the other logicorg.acme.App
toorg.acme.MyApp
to avoid conflicting with theApp
class from cdkBREAKING CHANGE:
cdkVersion
parameter ofAwsCdkJavaApp
no longer support caret (eg:"^1.136.0"
). That behavior is now controlled on whethercdkVersionPinning
is set totrue
orfalse
.addCdkDependency
method ofAwsCdkJavaApp
now expects fully qualified package names (eg:software.amazon.awscdk/aws-lambda
).By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.