Convert mdsal-eos-binding-api to a module 95/106495/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 15 Jun 2023 09:29:29 +0000 (11:29 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 15 Jun 2023 12:24:18 +0000 (14:24 +0200)
This is a rather simple API, convert it to a Java module.

JIRA: MDSAL-751
Change-Id: Ic43a4d3a801721c202909c813d68ca52b2da18e8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
entityownership/mdsal-eos-binding-api/pom.xml
entityownership/mdsal-eos-binding-api/src/main/java/module-info.java [new file with mode: 0644]
entityownership/mdsal-eos-binding-api/src/main/java/org/opendaylight/mdsal/eos/binding/api/Entity.java

index f71367bfc1c786d715748e82ceef018448255d2b..30a035aa03aa195aca08ff9f4921a75a49910910 100644 (file)
     <packaging>bundle</packaging>
 
     <dependencies>
+        <dependency>
+            <groupId>com.github.spotbugs</groupId>
+            <artifactId>spotbugs-annotations</artifactId>
+            <optional>true</optional>
+        </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.opendaylight.yangtools</groupId>
+            <artifactId>concepts</artifactId>
+        </dependency>
         <dependency>
             <groupId>org.opendaylight.mdsal</groupId>
             <artifactId>mdsal-eos-common-api</artifactId>
             <groupId>org.opendaylight.mdsal</groupId>
             <artifactId>yang-binding</artifactId>
         </dependency>
+
         <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-lang3</artifactId>
             <scope>test</scope>
         </dependency>
     </dependencies>
+
     <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/entityownership/mdsal-eos-binding-api/src/main/java/module-info.java b/entityownership/mdsal-eos-binding-api/src/main/java/module-info.java
new file mode 100644 (file)
index 0000000..a474455
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+ * 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.eos.binding.api {
+    exports org.opendaylight.mdsal.eos.binding.api;
+
+    requires transitive com.google.common;
+    requires transitive org.opendaylight.mdsal.eos.common.api;
+    requires transitive org.opendaylight.yangtools.yang.binding;
+
+    requires org.opendaylight.mdsal.model.general.entity;
+}
index 5fe55c378f9049da8bfe2bec38cbde20c741a45d..ea63957e47910bedb53f7d3e84a53501750d2160 100644 (file)
@@ -10,7 +10,6 @@ package org.opendaylight.mdsal.eos.binding.api;
 import static java.util.Objects.requireNonNull;
 
 import com.google.common.annotations.Beta;
-import java.io.Serial;
 import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.mdsal.eos.common.api.GenericEntity;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.core.general.entity.rev150930.EntityKey;
@@ -23,7 +22,7 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
  */
 @Beta
 public class Entity extends GenericEntity<InstanceIdentifier<?>> {
-    @Serial
+    @java.io.Serial
     private static final long serialVersionUID = 1L;
 
     /** Constructs an instance.