Convert mdsal-dom-schema-osgi to a JPMS module 13/105813/4
authorSamuel Schneider <samuel.schneider@pantheon.tech>
Wed, 3 May 2023 15:51:06 +0000 (17:51 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 15 May 2023 19:44:45 +0000 (19:44 +0000)
mdsal-binding-dom-codec-osgi is a rather simple artifact.
Convert it to a JPMS module.

JIRA: MDSAL-748
Change-Id: I00e2e11047f4580ef7d443c4baefc036a1d0a58e
Signed-off-by: Samuel Schneider <samuel.schneider@pantheon.tech>
dom/mdsal-dom-schema-osgi/pom.xml
dom/mdsal-dom-schema-osgi/src/main/java/module-info.java [new file with mode: 0644]

index 364c68d8e5d5965852b2655919539382cc31ce7e..05704197bb925cd49283982b09d7eb8f3c65a4d5 100644 (file)
         </dependency>
     </dependencies>
 
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                <extensions>true</extensions>
-                <configuration>
-                    <instructions>
-                        <Automatic-Module-Name>org.opendaylight.mdsal.dom.schema.osgi</Automatic-Module-Name>
-                    </instructions>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
     <scm>
         <connection>scm:git:http://git.opendaylight.org/gerrit/controller.git</connection>
         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
diff --git a/dom/mdsal-dom-schema-osgi/src/main/java/module-info.java b/dom/mdsal-dom-schema-osgi/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..464e8b1
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2023 PANTHEON.tech, s.r.o. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+module org.opendaylight.mdsal.dom.schema.osgi {
+    exports org.opendaylight.mdsal.dom.schema.osgi;
+
+    requires transitive com.google.common;
+    requires transitive org.opendaylight.mdsal.binding.runtime.api;
+    requires org.opendaylight.mdsal.binding.runtime.spi;
+    requires org.opendaylight.mdsal.dom.spi;
+    requires org.opendaylight.yangtools.yang.binding;
+    requires org.opendaylight.yangtools.yang.model.api;
+    requires org.opendaylight.yangtools.yang.parser.api;
+    requires org.osgi.framework;
+    requires org.osgi.service.component;
+    requires org.osgi.util.tracker;
+    requires org.slf4j;
+
+    // Annotations
+    requires static org.apache.karaf.features.core;
+    requires static org.osgi.service.component.annotations;
+}
\ No newline at end of file