Add MANIFEST.MF so this project can be used as an eclipse plugin.#72
Conversation
There was a problem hiding this comment.
@dobesv I don't know about Eclipse's use of manifests, but should the bundle version above be 4.2 for the last release?
There was a problem hiding this comment.
Hmm it's a good point
Also I have since learned that gradle is generating the manifest
currently. I should redo this one.
On Jan 4, 2015 5:02 PM, "Mark Perry" notifications@github.com wrote:
In META-INF/MANIFEST.MF
#72 (diff)
:@@ -0,0 +1,21 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Functional Java
+Bundle-SymbolicName: org.functionaljava
+Bundle-Version: 4.3.0.qualifier@dobesv https://github.com/dobesv I don't know about Eclipse's use of
manifests, but should the bundle version above be 4.2 for the last release?—
Reply to this email directly or view it on GitHub
https://github.com/functionaljava/functionaljava/pull/72/files#r22444882
.
|
@dobesv Ok, let us know when you have reviewed and updated the PR. |
|
@dobesv You might have figured this out, but you can set the attributes in the manifest by editing the core/build.gradle file and adding: How does Eclipse use the manifest file for a library? |
|
Yes, I did see that. But on further reflection I realized that if I am I have convinced gradle to build an OSGI jar file and also output a On Fri, Jan 9, 2015 at 7:01 PM, Mark Perry notifications@github.com wrote:
|
|
I haven't used Eclipse for more than 3 years, can you explain why you want to use projects as plugins in Eclipse? A quick Google search wasn't helpful. |
|
I am using it in an eclipse plugin, so converting the jar to an eclipse I can probably maintain this as a little fork of my own indefinitely. I'm
|
|
I spent 10 minutes reading around and it looks like the extra info in the manifest required for an OSGI bundle is ignored in most applications. I think generating the info from the Gradle build is feasible. |
|
Yes, I have this working locally now, I think it will work fine in and out One hiccup I ran into is that the OSGI plugin for gradle doesn't like the
|
|
The tests project is separate because of the various different support for Scala in IDEs. Putting them in a separate Gradle module allows us to exclude that module temporarily (if necessary). We don't need to build the jar, just to run the tests. |
|
So where do we go from here? |
|
Hi Mark, Sorry I have been a bit slow on my PR updates, I've just been a bit busy
|
Add union to TreeMap
Compiles all projects except "tests" as an OSGI compatible jar file, and changes the "eclipse" target to generate a MANIFEST.MF and a "plugin" project to use in eclipse.
…java into eclipse-plugin
|
OK so I updated it so that it builds an OSGI jar for each subproject except tests. Hopefully this doesn't interfere with anyone else's needs. Take a look and tell me what you think. |
|
FYI, I probably won't get to looking at this until the weekend. |
|
I think this is ok, everyone else will just see a more detailed manifest in their jar where the keys will be ignored. |
Add MANIFEST.MF so this project can be used as an eclipse plugin.
I've been using functionaljava in my eclipse projects, this change might be handy for others as well.