Make concepts an explicit module 20/83920/7
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 22 Aug 2019 18:05:03 +0000 (20:05 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 1 Oct 2019 14:48:59 +0000 (14:48 +0000)
This adds module-info, turning concepts into a full-pledged module.

Change-Id: I3225cb148364818ff2ff1c0abac0ebf90c4f198c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/concepts/pom.xml
common/concepts/src/main/java/module-info.java [new file with mode: 0644]

index 7f7aa5fb733fb1354edec177642a83f57b81d6c9..7a3aed2883bac7ef79f113da36372a6b21c00fb3 100644 (file)
             <artifactId>mockito-configuration</artifactId>
         </dependency>
     </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                <configuration>
-                    <instructions>
-                        <Automatic-Module-Name>org.opendaylight.yangtools.concepts</Automatic-Module-Name>
-                    </instructions>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
-
 </project>
diff --git a/common/concepts/src/main/java/module-info.java b/common/concepts/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..eb8e059
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2019 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.concepts {
+    exports org.opendaylight.yangtools.concepts;
+
+    requires transitive com.google.common;
+    requires org.slf4j;
+
+    // Annotations
+    requires static com.github.spotbugs.annotations;
+    requires static org.eclipse.jdt.annotation;
+    requires static org.checkerframework.checker.qual;
+}