Skip to content

Commit

Permalink
Add Manifest headers to allow automatic linking of source jar by Ecli…
Browse files Browse the repository at this point in the history
…pse (#152)

When JLine is materialized from a p2 site these headers (specifically 
Eclipse-SourceBundle) will allow the source to be obtained as well. It
can then be automatically linked by Eclipse.
  • Loading branch information
jamesmudd authored and gnodet committed Aug 3, 2017
1 parent 811d8f4 commit 8e451a7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,16 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<archive>
<manifestEntries>
<Bundle-Name>JLine Sources Bundle</Bundle-Name>
<Bundle-SymbolicName>${project.groupId}.source</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Eclipse-SourceBundle>${project.groupId};version="${project.version}"</Eclipse-SourceBundle>
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
Expand Down

0 comments on commit 8e451a7

Please sign in to comment.