Skip to content

Commit

Permalink
Replace osgi plugin with bnd plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tumbarumba committed Jul 4, 2024
1 parent 4c1f749 commit f2bd89e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'signing'
//apply plugin: 'osgi'
apply plugin: 'maven-publish'
plugins {
id "signing"
id "maven-publish"
}

group = "org.hamcrest"
version = "3.0-SNAPSHOT"
Expand Down
17 changes: 12 additions & 5 deletions hamcrest/hamcrest.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//apply plugin: 'osgi'
plugins {
id "biz.aQute.bnd.builder" version "6.4.0"
}

version = rootProject.version

Expand All @@ -18,10 +20,15 @@ jar {
'Implementation-Vendor': 'hamcrest.org',
'Implementation-Version': version,
'Automatic-Module-Name': 'org.hamcrest'
// instruction 'Import-Package', '''javax.xml.namespace; resolution:=optional,
// javax.xml.xpath; resolution:=optional,
// org.w3c.dom; resolution:=optional,
// *'''
}
bundle {
bnd "Bundle-Name": "org.hamcrest",
"Bundle-SymbolicName": "org.hamcrest",
"Import-Package": "javax.xml.namespace; resolution:=optional," +
"javax.xml.xpath;resolution:=optional," +
"org.w3c.dom;resolution:=optional," +
"*",
"-exportcontents": "org.hamcrest.*"
}
}

Expand Down

0 comments on commit f2bd89e

Please sign in to comment.