Skip to content

Commit

Permalink
Add an uber-bundle artifact
Browse files Browse the repository at this point in the history
Currently lemminx only provides an uber-jar that has no OSGi meta data
at all, because of this for example wild-webdeveloper needs to embed
this jar instead of use one installed in the OSGi framework.

This now adds a new uber-bundle artifact that is at the moment very
similar to uber-jar but contains some OSGi data useful for writing
extensions. This can then be used as a starting point to incrementally
make it more OSGified, e.g. by export/import its dependencies that are
already available as OSGi bundles (gson, lsp4j, ...)

Signed-off-by: Christoph Läubrich <[email protected]>
  • Loading branch information
laeubi committed Nov 10, 2024
1 parent 2482d4a commit f2fb177
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion org.eclipse.lemminx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
<native.maven.plugin.version>0.9.23</native.maven.plugin.version>
<graalvm.static />
</properties>
<pluginRepositories>
<pluginRepository>
<id>tycho-snpashots</id>
<url>https://repo.eclipse.org/content/repositories/tycho-snapshots</url>
</pluginRepository>
</pluginRepositories>
<build>
<resources>
<resource>
Expand Down Expand Up @@ -78,7 +84,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -125,6 +130,31 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-wrap-plugin</artifactId>
<version>4.0.10-SNAPSHOT</version>
<executions>
<execution>
<id>make-uber-bundle</id>
<goals>
<goal>wrap</goal>
</goals>
<configuration>
<bnd>
<![CDATA[
Bundle-SymbolicName: org.eclipse.lemminx.uber
Export-Package: org.eclipse.lemminx.services.extensions.*
Import-Package: java.*, !*
]]>
</bnd>
<input>${project.build.directory}/org.eclipse.lemminx-uber.jar</input>
<classifier>uber-bundle</classifier>
<output>${project.build.directory}/org.eclipse.lemminx-uber-bundle.jar</output>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
Expand Down

0 comments on commit f2fb177

Please sign in to comment.