Mark API bundles with Automatic-Module-Name 22/82922/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 3 Jul 2019 23:04:38 +0000 (01:04 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 4 Jul 2019 09:35:43 +0000 (11:35 +0200)
This patch updates core API packages to interact with JPMS, so
that they become automatic modules.

Change-Id: I9aa2f7dd7a82c9d7eaf4080d541db19991446da4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-api/pom.xml
binding/mdsal-binding-spi/pom.xml
binding/mdsal-binding-util/pom.xml
common/mdsal-common-api/pom.xml
dom/mdsal-dom-api/pom.xml
dom/mdsal-dom-spi/pom.xml

index 92664b9c189f9c335daf307a8f685b827bdd72cd..a6fc9c5aacf62aa1dd9ce23699a55762ce236df7 100644 (file)
@@ -66,7 +66,7 @@
                 <artifactId>maven-bundle-plugin</artifactId>
                 <configuration>
                     <instructions>
-                        <Import-Package>!javax.annotation,*</Import-Package>
+                        <Automatic-Module-Name>org.opendaylight.mdsal.binding.api</Automatic-Module-Name>
                     </instructions>
                 </configuration>
             </plugin>
index c25a869f69f0b0ae3a3580ba9d7343cb881c6929..14156a91a52c77d4bf8826d1a3a599171b7aef7c 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.mdsal.binding.spi</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index cef153fa95df91f561f8915c992f5209cfa71c13..1e2905f610014c36fbb9545bd625485540380a0f 100644 (file)
@@ -47,7 +47,7 @@
                 <artifactId>maven-bundle-plugin</artifactId>
                 <configuration>
                     <instructions>
-                        <Import-Package>!javax.annotation,*</Import-Package>
+                        <Automatic-Module-Name>org.opendaylight.mdsal.binding.util</Automatic-Module-Name>
                     </instructions>
                 </configuration>
             </plugin>
index 013d8ef6ad5135cf7bdb850b2b49ea5153f62161..d5e2e8622db55d563eef456ea9ab3d3d82bf6bb0 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.mdsal.common.api</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index e0ea1a37d302d9d2fc29d17304a7aa25a7659459..656516b9625976eba17408031fd6e754bd2bff82 100644 (file)
@@ -52,7 +52,7 @@
                 <artifactId>maven-bundle-plugin</artifactId>
                 <configuration>
                     <instructions>
-                        <Import-Package>!javax.annotation,*</Import-Package>
+                        <Automatic-Module-Name>org.opendaylight.mdsal.dom.api</Automatic-Module-Name>
                     </instructions>
                 </configuration>
             </plugin>
index 96cf155da8113faf429eff1eb8ed1e3c9ce9de74..9cdd540ad5c8fbbce88392475b59b7c5bbc5b8bc 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.mdsal.dom.spi</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>