Skip to content

Commit

Permalink
Merge pull request #328 from lefou/osgi-bundle
Browse files Browse the repository at this point in the history
Add OSGi metadata to asciidoctorj-core jar
  • Loading branch information
robertpanzer committed Jun 18, 2015
2 parents 5be01b9 + b419cf0 commit 775fc1d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions asciidoctorj-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
apply plugin: 'osgi'

dependencies {
compile "org.jruby:jruby-complete:$jrubyVersion"
compile "com.beust:jcommander:$jcommanderVersion"
Expand Down Expand Up @@ -32,3 +34,19 @@ jrubyPrepareGems << {
//jruby {
// execVersion = '1.7.20'
//}

jar {
manifest {
symbolicName = 'org.asciidoctor'
instruction 'Export-Package',
"org.asciidoctor;version=\"${version}\"",
"org.asciidoctor.ast;version=\"${version}\"",
"org.asciidoctor.converter;version=\"${version}\"",
"org.asciidoctor.converter.spi;version=\"${version}\"",
"org.asciidoctor.extension;version=\"${version}\"",
"org.asciidoctor.extension.spi;version=\"${version}\""
instruction 'Import-Package',
'com.beust.jcommander;resolution:=optional',
'*'
}
}

0 comments on commit 775fc1d

Please sign in to comment.