jsii icon indicating copy to clipboard operation
jsii copied to clipboard

Add OSGi metadata to AWS CDK Java libraries

Open fipro78 opened this issue 2 years ago • 1 comments

Describe the feature

Add OSGi metadata to the aws-cdk Java artefacts, so it can be deployed and consumed in OSGi applications.

Use Case

I want to create services that use the AWS CDK to be able to orchestrate applications in the cloud. I want to use OSGi, so the services can also be integrated in an Eclipse based application. This is currently not possible by using the artefacts published at Maven Central, as all artefacts doesn't contain the necessary OSGi metadata.

The only way I could verify that it is generally working, was to create wrapped bundles that consume the artefacts and add the OSGi metadata. But this is more a workaround for verification than a reliable solution.

Proposed Solution

Add the bnd-maven-plugin or Grade Plugins to the build process of the AWS CDK Java libraries (dependent on whether Maven or Gradle is used), to get the OSGi metadata automatically generated at build time.

Other Information

No response

Acknowledgements

  • [ ] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

CDK version used

2.73

Environment details (OS name and version, etc.)

Windows 10, Eclipse, Java 11

fipro78 avatar Apr 13 '23 09:04 fipro78

Thanks for reporting this! I think this will end up being handled by jsii, so I will transfer this to that repo.

peterwoodworth avatar Apr 13 '23 18:04 peterwoodworth