-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
Improve code templates #5907
Improve code templates #5907
Conversation
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.
Additionally, I think we should remove version=latest
everywhere.
bnd selects version=lowest for compiling and version=latest for running. This is a good strategy we should not overide.
I also think we should remove the comments everywhere, except a short description at the top.
org.bndtools.templates.osgi/resources/templates/ds/launch.bndrun
Outdated
Show resolved
Hide resolved
@@ -1,9 +1,9 @@ | |||
# This is the version of JUnit that will be used at build time and run time | |||
junit: org.apache.servicemix.bundles.junit;version="[4.11,5)" | |||
junit: org.apache.servicemix.bundles.junit;version=latest |
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.
@kriegfrj can you give advise for the templates how to use JUnit 5?
Personally I am ok with 4 since it is so much simpler and smaller. However, you've been advocating JUnit 5 a lot so should the templates be migrated?
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.
@chrisrueger I think we should refer to junit as a macro so we do not have this information in all bndrun files.
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.
@chrisrueger I think we should refer to junit as a macro so we do not have this information in all bndrun files.
I have added a line like this junit: org.apache.servicemix.bundles.junit
to build.bnd
of the workspace template (next door).
This how it can be used like ${junit}
right?
org.bndtools.templates.osgi/resources/templates/integration-test/bnd.bnd
Outdated
Show resolved
Hide resolved
org.bndtools.templates.osgi/resources/templates/integration-test/bnd.bnd
Outdated
Show resolved
Hide resolved
org.bndtools.templates.osgi/resources/templates/integration-test/bnd.bnd
Show resolved
Hide resolved
org.bndtools.templates.osgi/resources/templates/integration-test/bnd.bnd
Outdated
Show resolved
Hide resolved
@@ -1,5 +1,4 @@ | |||
-runfw: org.apache.felix.framework;version=4 | |||
-runee: JavaSE-1.8 | |||
-runfw: org.apache.felix.framework |
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.
again, move to build.bnd
Also remove any references to R8, this way for R9 we do not have to change it :-) |
Great work ... |
Signed-off-by: Christoph Rueger <chrisrueger@gmail.com> Update template files - remove versions where possible Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
No Export-Package or Private-Package headers, defaults should be used. Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
45f0ab6
to
277d2cb
Compare
Merge? |
No, I would add your review suggestions first. Try to be ready tomorrow. |
- remove version=latest - remove references to R8 - only include osgi.core Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
They are required by the sources Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
@pkriens I "think" I am done for now. Feel free to merge. These changes depend on bndtools/bndtools.workspace.min#11 I had some trouble testing, so let me know if merging is ok for now or we should have a chat about it. |
let's merge so I can easier take a look. |
Thanks 👍 |
Related to bndtools/bndtools.workspace.min#11 (comment)
It tries to address (some) of the suggestions by @pkriens from here:
addressed in this PR
@pkriens do you have some pointer what that means? Do you mean https://bnd.discourse.group/t/the-resolve-cache-mode/302 ?
addressed in this PR. Let me know if I forgot something
addressed in this PR
addressed in this PR
addressed in this PR (not sure I got everything)
TODO
TODO
TODO