Convert yang-data-transform into an explicit module 18/96018/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 7 May 2021 10:51:52 +0000 (12:51 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 7 May 2021 10:53:27 +0000 (12:53 +0200)
We do not rely on anything complex, just perform the straightforward
transformation, adjusting dependencies in the process.

JIRA: YANGTOOLS-1286
Change-Id: I3e385958268937a11f04a693a9a145caba3422d7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
data/yang-data-transform/pom.xml
data/yang-data-transform/src/main/java/module-info.java [new file with mode: 0644]

index 0bbbb781369579e460ddc9f99622ea1b87b673d5..8863ff0a53a3943d4bb66eff03d59d804cd34edd 100644 (file)
     <packaging>bundle</packaging>
 
     <dependencies>
+        <dependency>
+            <groupId>com.google.guava</groupId>
+            <artifactId>guava</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.opendaylight.yangtools</groupId>
+            <artifactId>yang-common</artifactId>
+        </dependency>
         <dependency>
             <groupId>org.opendaylight.yangtools</groupId>
             <artifactId>yang-data-api</artifactId>
             <artifactId>yang-data-impl</artifactId>
         </dependency>
     </dependencies>
-
-    <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>
-        </plugins>
-    </build>
-
 </project>
diff --git a/data/yang-data-transform/src/main/java/module-info.java b/data/yang-data-transform/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..581d78c
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2021 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.yangtools.yang.data.transform {
+    // FIXME: 8.0.0: rename this to yangtools.yang.data.transform
+    exports org.opendaylight.yangtools.transform;
+
+    requires transitive com.google.common;
+    requires transitive org.opendaylight.yangtools.yang.common;
+    requires transitive org.opendaylight.yangtools.yang.data.api;
+    requires org.opendaylight.yangtools.yang.data.impl;
+
+    // Annotations
+    requires static transitive org.eclipse.jdt.annotation;
+}