java: Gradle plugin for CDK #24379
Replies: 11 comments
-
I'm happy to take a stab at this if no one else is working on it? |
Beta Was this translation helpful? Give feedback.
-
Go for it |
Beta Was this translation helpful? Give feedback.
-
@leemorrisdev while this gets develop/merged, what would you suggest as a workaround for gradle-only projects right now? Is there an equivalent to Maven's: {
"app": "mvn exec:java -Dexec.mainClass=software.amazon.awscdk.examples.LambdaCronApp"
} I'm thinking something in the lines of a lightweight way to call cdk for now, i.e (pseudocode, since I'm not big in Gradle internals): {
"app": "gradlew run -Dexec.mainClass=org.umccr.awscdk.IGVAmazonCognitoApp"
} For more context, I'm testing this out in the following project: umccr/igv@7e16056 /cc @reisingerf |
Beta Was this translation helpful? Give feedback.
-
@brainstorm and anyone else looking to use gradle with the cdk: It's relatively easy to use gradle instead of maven with the cdk (for the sample tutorial project at least). The method I used was to perform a There were three changes I applied to the resulting
My
I suggest at this point running You can then edit
and then execute Once this works you can |
Beta Was this translation helpful? Give feedback.
-
Thanks @geoffweatherall ! I went with your suggestions in umccr/igv@dbd7ca5, the classes seem to compile (generate
I'll keep investigating... /cc @reisingerf |
Beta Was this translation helpful? Give feedback.
-
Nevermind, easy fix: umccr/igv@385f7c3 ... cruising with CDK Java now ;) |
Beta Was this translation helpful? Give feedback.
-
@digitalsanctum @rix0rrr @eladb - i have this PR for adding Kotlin + Gradle init template. I would make it just for Java + Gradle. So it could be something like:
or
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately, my attempt to add Gradle was rejected (fyi: @eladb) |
Beta Was this translation helpful? Give feedback.
-
Use this demo CDK Gradle project: https://github.com/xiaod-dev/demo-CDK-gradle-project |
Beta Was this translation helpful? Give feedback.
-
any progress? |
Beta Was this translation helpful? Give feedback.
-
Thank you for submitting this feature request! After closer examination of the issue by CDK product and development team, there are no plans to implement this in the near feature. This would be a good candidate for a separate 3p-owned plugin. I am moving this to a GitHub discussion so the information in this thread can continue to be accessible. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Similar to the proposal to create a Maven plugin and archetype in #840 I propose to create a Gradle plugin which would make it much more straight forward to work with CDK using a JVM language.
Beta Was this translation helpful? Give feedback.
All reactions