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

Use R8 API and impl. New service wizard #5632 requires annotations, framework, scr, gogo shell #7

Closed
scottslewis opened this issue May 28, 2023 · 2 comments

Comments

@scottslewis
Copy link
Contributor

No description provided.

@scottslewis
Copy link
Contributor Author

@pkriens Please modify the bndtools.workspace.min workspace template so that

  1. OSGi R8 is used
  2. The new bndtools OSGi service wizard (in 7.0.0 as per Enhance wizard-based creation of OSGi services bnd#5632 ) can use the repos provided to compile, resolve, and run the wizard-created projects + bndrun file.

The requirements of the generated projects are currently: Use of R8 org.osgi.annotation.bundle.Export and org.osgi.annotation.versioning.Version("1.0.0") annotations. Use of org.osgi.service.component.annotations.Component, org.osgi.service.component.annotations.Reference, org.osgi.service.component.annotations.Activate scr annotations. Use of R8 framework impl. Use of R8 SCR impl, Use of gogo (shell, command, runtime bundles).

It might also make sense (IMHO) to add a R8 LogService API and impl, but the service wizard code does not currently use it.

@scottslewis scottslewis changed the title Added repositories to make minimal workspace at least usable Use R8 API and impl. New service wizard #5632 requires annotations, framework, scr, gogo shell Jun 29, 2023
@pkriens pkriens mentioned this issue Jun 29, 2023
@scottslewis
Copy link
Contributor Author

I've now tested these changes with latest bndtools snapshot.

Happy to report that the bndtools.workspace.min changes for R8 is now is now working as needed to allow the wizard-based creation of Java OSGi Services as per bndtools/bnd#5632

Thanks to @chrisrueger for the leg-work on this.

I have one question for @pkriens : The Java OSGi Service Wizard creates three new projects/bundles (api, impl, and consumer). I've noticed that after these are created that the workspace needs a refresh to resolve bndrun deps (done on resolve). I would like to programmatically trigger an entire workspace refresh after the projects are created by the wizard. My question is: How do I initiate a bndtools workspace refresh programmatically (I assume there is some service to call refresh on, but I don't know what it is).

Thanksinadvance. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant