aws / jsii

jsii allows code in any language to naturally interact with JavaScript classes. It is the technology that enables the AWS Cloud Development Kit to deliver polyglot libraries from a single codebase!
https://aws.github.io/jsii
Apache License 2.0
2.61k stars 243 forks source link

Add OSGi metadata to AWS CDK Java libraries #4057

Open fipro78 opened 1 year ago

fipro78 commented 1 year ago

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

CDK version used

2.73

Environment details (OS name and version, etc.)

Windows 10, Eclipse, Java 11

peterwoodworth commented 1 year ago

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