Comments (6)
Currently I am not working on anything like that. However I would be happy to help you merge your changes into this repository.
However I am not sure I understand what you are doing. To me it looks like you simply changed the dependency to a newer version. However you are not using any newer APIs. So in theory you should be able to drop in the existing version into an environment using Gogo 1.x, as not maven but OSGi dependencies are the important ones.
from net.luminis.cmc.
The API is unchanged indeed, and the project can be built against both versions. But there is an issue with the package import org.apache.felix.service.command: the old version of gogo runtime exports the package with status=provisional attribute, which is gone in the new one... furthermore, the old version forces all bundles trying to import the package to set a filter on this attribute, using a 'mandatory=status' directive. This implies that you cannot declare an import statement matching both versions, and the bundle will only resolve against the version it was built against. Quite annoying feature, I think... my workaround is to make the package import optional, because the commands still work without the annotations package. The drawback is that optional parameters become mandatory, and the syntax changes slightly, if running with Gogo < v1: e.g., instead of cm:list (-s)
you will need to type cm:list true/false
.
On the other hand, it is probably time to migrate to the current Gogo version anyway, so if you are fine with the changes I can send you a pull request.
By the way, the rationale for the status attribute is explained here: http://felix.apache.org/documentation/development/provisional-osgi-api-policy.html
and the attributes matching:
https://osgi.org/specification/osgi.core/7.0.0/framework.module.html#i2480178
from net.luminis.cmc.
The main reason for me to build this was to use this with Eclipse Kura, which seems to be still stuck with Gogo 0.10.0 … Although Eclipse Photon ships with 1.0.x …
44 ACTIVE org.apache.felix.gogo.command_1.0.2.v20170914-1324
45 ACTIVE org.apache.felix.gogo.runtime_1.0.6.v20170914-1324
46 ACTIVE org.apache.felix.gogo.shell_1.0.0.v20170914-1324
So could we can settle for 1.0.x …
from net.luminis.cmc.
Thanks for merging 👍
Would you mind deploying the new version to Maven central as well?
from net.luminis.cmc.
Yes, I will do that.
from net.luminis.cmc.
Done.
from net.luminis.cmc.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from net.luminis.cmc.