Add Automatic-Module-Name declarations 36/80936/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 16 Mar 2019 14:58:03 +0000 (15:58 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 16 Mar 2019 15:11:48 +0000 (16:11 +0100)
Providing automatic module name allows downstreams to better
modularize their deployment with JDK9+. Provide this header
for all production artifacts.

Change-Id: I1dedaea93b7aea9df0ca17a9dad2bcc0ec7848af
JIRA: YANGTOOLS-933
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
35 files changed:
common/concepts/pom.xml
common/util/pom.xml
yang/odlext-model-api/pom.xml
yang/odlext-parser-support/pom.xml
yang/openconfig-model-api/pom.xml
yang/openconfig-parser-support/pom.xml
yang/rfc6536-model-api/pom.xml
yang/rfc6536-parser-support/pom.xml
yang/rfc7952-data-api/pom.xml
yang/rfc7952-data-util/pom.xml
yang/rfc7952-model-api/pom.xml
yang/rfc7952-parser-support/pom.xml
yang/rfc8040-model-api/pom.xml
yang/rfc8040-parser-support/pom.xml
yang/rfc8528-model-api/pom.xml
yang/rfc8528-parser-support/pom.xml
yang/yang-common/pom.xml
yang/yang-data-api/pom.xml
yang/yang-data-codec-gson/pom.xml
yang/yang-data-codec-xml/pom.xml
yang/yang-data-impl/pom.xml
yang/yang-data-jaxen/pom.xml
yang/yang-data-transform/pom.xml
yang/yang-data-util/pom.xml
yang/yang-data-xpath-api/pom.xml
yang/yang-model-api/pom.xml
yang/yang-model-export/pom.xml
yang/yang-model-util/pom.xml
yang/yang-parser-api/pom.xml
yang/yang-parser-impl/pom.xml
yang/yang-parser-reactor/pom.xml
yang/yang-parser-rfc7950/pom.xml
yang/yang-parser-spi/pom.xml
yang/yang-xpath-api/pom.xml
yang/yang-xpath-impl/pom.xml

index 9a122cb878dd75c0f0ec5998329c9637f3a399fc..8a8716e4883e24d2c8187f56baaf35306add8fa3 100644 (file)
@@ -39,6 +39,7 @@
                 <artifactId>maven-bundle-plugin</artifactId>
                 <configuration>
                     <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.concepts</Automatic-Module-Name>
                         <Import-Package>!javax.annotation,*</Import-Package>
                     </instructions>
                 </configuration>
index 95a135f26b471b29e18e8b45ddd1f8d7eb16dc39..bbe012e96c3cbcc8be2b01cee1b4cf229fc7f5a1 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.util</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 6c5e2595cbe710bf8e6af82855d85a29335bde95..389cc3bdc59aac8924e1b3164efc2890efbde3f4 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.odlext.model.api</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 6732c5941e7d7c5c8a317267a31a008d8ecc15b0..1cd02ae2febcf33d20c33b8d74b4f5b618a95090 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.odlext.parser.support</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 43ea0930d95904cdd26f84ba16469a351a14ff66..cab8d35689adcedf34e55a45bc9ea77ca5fa2f87 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.openconfig.model.api</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index f95e54e29cf9711bfd9339b422d898de2da5231e..0468cc1ee9ab9d9618a085392296951f28267127 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.openconfig.parser.support</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index c0d43d4a157dd4e6004852f1798e462c0dc5c9e7..f0a7434276daeac7cd1e7dcb10db79c23b0ed050 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.rfc6536.model.api</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 83661558c89db6ca9cf47f084cd8f9ca18deef69..162b987b5f3f22e5a4b95d1b3c42f0344dace665 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.rfc6536.parser.support</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 812c2a81a5b97a11affa2671c076756b04dc47cc..1844247c90cd9f423bb462f03f27c9d357950a0f 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.rfc7952.data.api</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 0449171afb3bf5c7216f571e70a0124548fecc65..9e51a0e1a4cd8ebfa80d25a3a7f4182b9508cc4f 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.rfc7952.data.util</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 5cf6297d8ed5da9fa8e094891ed04cf3a749e73e..ea4ae912fbd0b1e378928eb61f43c9ee8e34a7f4 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.rfc7952.model.api</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index a46cab0acebb3ece8eb45905eab1a5897400a341..b9ec2b5ea42491190b4f4a4d325abb2936107e53 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.rfc7952.parser.support</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 36eeac2842cc064a299373405b955b4ae8559078..fa79c593d68a28391e3fd748e026efdc3f8a7e8d 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.rfc8040.model.api</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 4ce79190e6c2e659d87535c7b5ed861dc43a1838..f3f04a686e57e410f4c3722079c0e6e0d9959721 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.rfc8040.parser.support</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 35a5d0e61e3da29406408848914ad2e57829cffd..73ccc82f74ce949e4bc7c3db95c5e266cfc8bf2e 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.rfc8528.model.api</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 915a45b340673346a30626ad269e11adfbe2dc06..6464b494ffd98232b2d0f89c69778cdb64de20fb 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.rfc8528.parser.support</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index e0a1a2840c1c0724cff4f68b13cd583c40627bcc..00dc5ff10749f4c670a2a8397beff89f6d1a05e4 100644 (file)
@@ -44,6 +44,7 @@
                 <extensions>true</extensions>
                 <configuration>
                     <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.common</Automatic-Module-Name>
                         <Import-Package>!javax.annotation,*</Import-Package>
                         <Include-Resource>{META-INF/services=${project.build.directory}/classes/META-INF/services}</Include-Resource>
                     </instructions>
index 6fbdc07105afae28780e8f41e36b3e684b957086..415be8428fcca7866cb5446030c465271dc01453 100644 (file)
@@ -51,6 +51,7 @@
                 <artifactId>maven-bundle-plugin</artifactId>
                 <configuration>
                     <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.data.api</Automatic-Module-Name>
                         <Import-Package>!javax.annotation,*</Import-Package>
                     </instructions>
                 </configuration>
index aee0c1edf849ea8b0385b04d1ccc4d325458a999..dce9d9f3cab12239ce95a875ba762e12ebba2c89 100644 (file)
@@ -67,6 +67,7 @@
                 <artifactId>maven-bundle-plugin</artifactId>
                 <configuration>
                     <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.data.codec.gson</Automatic-Module-Name>
                         <Import-Package>!javax.annotation,*</Import-Package>
                     </instructions>
                 </configuration>
index f590be9c3bc3c9e6370f0d5aef9bfe1643f21215..20e9af443db6c7861bea78266caabbf505e2b4d4 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.data.codec.xml</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 0b7afb29af160d2c3ee0956cb47e5a57b9d38875..7fc382f8c2df7553207440ee2973508c2a3becf7 100644 (file)
@@ -52,6 +52,7 @@
                 <extensions>true</extensions>
                 <configuration>
                     <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.data.impl</Automatic-Module-Name>
                         <Export-Package>
                             {local-packages},
                             org.opendaylight.yangtools.yang.data.impl.*,
index de8e5922ed9115a228c3afb917bdc75ffa4e8b81..ec4b6593ca79bf33dd9694d930f37a7098c44627 100644 (file)
@@ -78,6 +78,7 @@
                 <extensions>true</extensions>
                 <configuration>
                     <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.data.jaxen</Automatic-Module-Name>
                         <Import-Package>!javax.annotation,*</Import-Package>
                         <Include-Resource>{META-INF/services=${project.build.directory}/classes/META-INF/services}</Include-Resource>
                         <Bundle-Activator>org.opendaylight.yangtools.yang.data.jaxen.osgi.Activator</Bundle-Activator>
index 9b0a7f381d6b6688326be61623a9eb52b681100e..5a6e24cf75b7f919e00a0d7e54fdae7afc52d597 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.data.transform</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 27ed26c284e31c9725fa54a7e0847304dc51cd8c..68031c8fa8749ebe2f4af4fadbb158fe399a5264 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.data.util</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index cf865638f9b0d876c5a455b51846e0b6a0c8de27..c93ce6cc89ce989cf6bd28ae7f177339e3a90c50 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.data.xpath.api</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index a9d77ecf5c26e07855df3ab259f81110eb1b09ff..e069469cd4c3e2eb4e3a9116a77006f8efa2f2f5 100644 (file)
@@ -43,6 +43,7 @@
                 <artifactId>maven-bundle-plugin</artifactId>
                 <configuration>
                     <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.model.api</Automatic-Module-Name>
                         <Import-Package>!javax.annotation,*</Import-Package>
                     </instructions>
                 </configuration>
index 42979e9e981d089edaac928bf736967dcc3add1c..bf29d50699f98bfde7856cd42a64a79b1df9bdcf 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.model.export</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 10343c3cee9722010c20769928162aefa9c43e82..d30e9f55c6674dcf778fc884416f105f5abdcad5 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.model.util</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index 592c1911d8a67cb0d97a37a6128a90ebb6782b83..e949b2cc2e675f3d2adef7aefbc9185dcc5e3673 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.parser.api</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index e9bdc0295eb896fdfcb2be2639a0925ff4f3918a..abe74fef3ca8781115c449b5d95a7f7e6f854fff 100644 (file)
                 <extensions>true</extensions>
                 <configuration>
                     <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.parser.impl</Automatic-Module-Name>
                         <Include-Resource>{META-INF/services=${project.build.directory}/classes/META-INF/services}</Include-Resource>
                         <Bundle-Activator>org.opendaylight.yangtools.yang.parser.impl.osgi.Activator</Bundle-Activator>
                     </instructions>
index 4c70495185f02be2f27e6abea8247dc6e6619412..b27d6791141a7805396514c67aab3eccfb8033bb 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.parser.reactor</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index be874a9a32565bd34590e126f562edb35d91aa42..f1d3b5ddbfef554102d4f669fdc2216bb132f78c 100644 (file)
@@ -95,6 +95,7 @@
                 <artifactId>maven-bundle-plugin</artifactId>
                 <configuration>
                     <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.parser.reactor</Automatic-Module-Name>
                         <Import-Package>!javax.annotation,*</Import-Package>
                     </instructions>
                 </configuration>
index 00f00d196b6c94de6cc3a9eadf14ebfa955db87a..9d823d80f8c0db9a3f311314538162d104bd5d22 100644 (file)
@@ -49,6 +49,7 @@
                 <artifactId>maven-bundle-plugin</artifactId>
                 <configuration>
                     <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.parser.spi</Automatic-Module-Name>
                         <Import-Package>!javax.annotation,*</Import-Package>
                     </instructions>
                 </configuration>
index 0935a1dcefcb93f1f1d98e4601b3a9780dbded60..1c42de57efd3289adcd601145585eeb6380f2bb2 100644 (file)
 
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.xpath.api</Automatic-Module-Name>
+                    </instructions>
+                </configuration>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-checkstyle-plugin</artifactId>
index bad31c7f8d592c484eca5603a48231ce76716dee..6de90cf5d61c67a269b047b269254c406841701d 100644 (file)
@@ -79,6 +79,7 @@
                 <extensions>true</extensions>
                 <configuration>
                     <instructions>
+                        <Automatic-Module-Name>org.opendaylight.yangtools.yang.xpath.impl</Automatic-Module-Name>
                         <Include-Resource>{META-INF/services=${project.build.directory}/classes/META-INF/services}</Include-Resource>
                         <Bundle-Activator>org.opendaylight.yangtools.yang.xpath.impl.Activator</Bundle-Activator>
                     </instructions>