Add Infrautils guice inject code to odlguice 00/91300/12
authorVenkataSatya Jonnadula <rsankar@luminanetworks.com>
Mon, 13 Jul 2020 14:34:26 +0000 (20:04 +0530)
committerVenkataSatya Jonnadula <rsankar@luminanetworks.com>
Thu, 16 Jul 2020 19:19:55 +0000 (00:49 +0530)
This patch is to move Infrautils guice inject code to odlguice.

JIRA: ODLGUICE-2

Signed-off-by: VenkataSatya Jonnadula <rsankar@luminanetworks.com>
Change-Id: Id7d42463a55ff1a8b130d18d3edd06b6aef9abcd

42 files changed:
common/artifacts/pom.xml [new file with mode: 0644]
common/features/odl-odlguice-inject/pom.xml [new file with mode: 0644]
common/features/odlguice-features/pom.xml [new file with mode: 0644]
common/features/pom.xml [new file with mode: 0644]
common/karaf/pom.xml [new file with mode: 0644]
common/parent/pom.xml [new file with mode: 0644]
common/pom.xml [new file with mode: 0644]
docs/_static/logo.png [new file with mode: 0644]
docs/conf.py [new file with mode: 0644]
docs/conf.yaml [new file with mode: 0644]
docs/favicon.ico [new file with mode: 0644]
docs/index.rst [new file with mode: 0644]
docs/requirements.txt [new file with mode: 0644]
inject/inject-guice-testutils/pom.xml [moved from infrautils/inject/inject-guice-testutils/pom.xml with 88% similarity]
inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/AbstractCheckedModule.java [moved from infrautils/inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/AbstractCheckedModule.java with 100% similarity]
inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/AbstractGuiceJsr250Module.java [moved from infrautils/inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/AbstractGuiceJsr250Module.java with 100% similarity]
inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/AnnotationsModule.java [moved from infrautils/inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/AnnotationsModule.java with 100% similarity]
inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/GuiceRule.java [moved from infrautils/inject/inject-guice-testutils/src/main/java/org/opendaylight/infrautils/inject/guice/testutils/GuiceRule.java with 100% similarity]
inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/ExampleGuiceRuleTest.java [moved from infrautils/inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/ExampleGuiceRuleTest.java with 100% similarity]
inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/ExamplePureGuiceTest.java [moved from infrautils/inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/ExamplePureGuiceTest.java with 100% similarity]
inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/GuiceRuleForgotAnnotationsModuleTest.java [moved from infrautils/inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/GuiceRuleForgotAnnotationsModuleTest.java with 100% similarity]
inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/SomeClassWithPostConstruct.java [moved from infrautils/inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/SomeClassWithPostConstruct.java with 100% similarity]
inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/SomeInterfaceWithPostConstruct.java [moved from infrautils/inject/inject-guice-testutils/src/test/java/org/opendaylight/infrautils/inject/guice/testutils/tests/SomeInterfaceWithPostConstruct.java with 100% similarity]
inject/inject-guice/pom.xml [moved from infrautils/inject/inject-guice/pom.xml with 86% similarity]
inject/inject-guice/src/main/java/org/opendaylight/infrautils/inject/guice/AbstractCheckedModule.java [moved from infrautils/inject/inject-guice/src/main/java/org/opendaylight/infrautils/inject/guice/AbstractCheckedModule.java with 100% similarity]
inject/inject-guice/src/main/java/org/opendaylight/infrautils/inject/guice/AutoWiringModule.java [moved from infrautils/inject/inject-guice/src/main/java/org/opendaylight/infrautils/inject/guice/AutoWiringModule.java with 100% similarity]
inject/inject-guice/src/main/java/org/opendaylight/infrautils/inject/guice/GuiceClassPathBinder.java [moved from infrautils/inject/inject-guice/src/main/java/org/opendaylight/infrautils/inject/guice/GuiceClassPathBinder.java with 100% similarity]
inject/inject-guice/src/test/java/org/opendaylight/infrautils/inject/guice/test/ClassPathScannerTest.java [moved from infrautils/inject/inject-guice/src/test/java/org/opendaylight/infrautils/inject/guice/test/ClassPathScannerTest.java with 100% similarity]
inject/inject-guice/src/test/java/org/opendaylight/infrautils/inject/guice/test/ClassPathScannerTestAnotherInterface.java [moved from infrautils/inject/inject-guice/src/test/java/org/opendaylight/infrautils/inject/guice/test/ClassPathScannerTestAnotherInterface.java with 100% similarity]
inject/inject-guice/src/test/java/org/opendaylight/infrautils/inject/guice/test/ClassPathScannerTestImplementation.java [moved from infrautils/inject/inject-guice/src/test/java/org/opendaylight/infrautils/inject/guice/test/ClassPathScannerTestImplementation.java with 100% similarity]
inject/inject-guice/src/test/java/org/opendaylight/infrautils/inject/guice/test/ClassPathScannerTestNoInterfacesImplementation.java [moved from infrautils/inject/inject-guice/src/test/java/org/opendaylight/infrautils/inject/guice/test/ClassPathScannerTestNoInterfacesImplementation.java with 100% similarity]
inject/inject-guice/src/test/java/org/opendaylight/infrautils/inject/guice/test/ClassPathScannerTestTopInterface.java [moved from infrautils/inject/inject-guice/src/test/java/org/opendaylight/infrautils/inject/guice/test/ClassPathScannerTestTopInterface.java with 100% similarity]
inject/inject/pom.xml [moved from infrautils/inject/inject/pom.xml with 89% similarity]
inject/inject/src/main/java/org/opendaylight/infrautils/inject/AbstractLifecycle.java [moved from infrautils/inject/inject/src/main/java/org/opendaylight/infrautils/inject/AbstractLifecycle.java with 100% similarity]
inject/inject/src/main/java/org/opendaylight/infrautils/inject/ClassPathScanner.java [moved from infrautils/inject/inject/src/main/java/org/opendaylight/infrautils/inject/ClassPathScanner.java with 100% similarity]
inject/inject/src/main/java/org/opendaylight/infrautils/inject/Lifecycle.java [moved from infrautils/inject/inject/src/main/java/org/opendaylight/infrautils/inject/Lifecycle.java with 100% similarity]
inject/inject/src/main/java/org/opendaylight/infrautils/inject/ModuleSetupRuntimeException.java [moved from infrautils/inject/inject/src/main/java/org/opendaylight/infrautils/inject/ModuleSetupRuntimeException.java with 100% similarity]
inject/inject/src/main/java/org/opendaylight/infrautils/inject/PostFullSystemInjectionListener.java [moved from infrautils/inject/inject/src/main/java/org/opendaylight/infrautils/inject/PostFullSystemInjectionListener.java with 100% similarity]
inject/inject/src/main/java/org/opendaylight/infrautils/inject/package-info.java [moved from infrautils/inject/inject/src/main/java/org/opendaylight/infrautils/inject/package-info.java with 100% similarity]
inject/pom.xml [moved from infrautils/inject/pom.xml with 89% similarity]
pom.xml [new file with mode: 0644]
tox.ini [new file with mode: 0644]

diff --git a/common/artifacts/pom.xml b/common/artifacts/pom.xml
new file mode 100644 (file)
index 0000000..eead956
--- /dev/null
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+ Copyright (c) 2016 Hewlett Packard Enterprise, Co. 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
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+      <groupId>org.opendaylight.odlparent</groupId>
+      <artifactId>odlparent-lite</artifactId>
+      <version>7.0.3</version>
+      <relativePath/>
+    </parent>
+
+    <groupId>org.opendaylight.odlguice</groupId>
+    <artifactId>odlguice-artifacts</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
+    <!-- <name> formatting is used by autorelease to parse and notify projects on
+         build failure. Please do not modify this unless you have a good reason. -->
+    <name>ODL :: odlguice :: ${project.artifactId}</name>
+
+    <dependencyManagement>
+        <dependencies>
+            <!-- APIs & runtime utilities -->
+            <dependency>
+              <groupId>${project.groupId}</groupId>
+              <artifactId>inject</artifactId>
+              <version>${project.version}</version>
+            </dependency>
+            <dependency>
+              <groupId>${project.groupId}</groupId>
+              <artifactId>inject.guice</artifactId>
+              <version>${project.version}</version>
+            </dependency>
+
+            <!-- Test utilities -->
+            <dependency>
+              <groupId>${project.groupId}</groupId>
+              <artifactId>inject.guice.testutils</artifactId>
+              <version>${project.version}</version>
+              <scope>test</scope>
+            </dependency>
+            
+            <!-- Karaf features -->
+            <dependency>
+                <groupId>${project.groupId}</groupId>
+                <artifactId>odl-odlguice-inject</artifactId>
+                <version>${project.version}</version>
+                <type>xml</type>
+                <classifier>features</classifier>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+  <!--
+      Maven Site Configuration
+
+      The following configuration is necessary for maven-site-plugin to
+      correctly identify the correct deployment path for OpenDaylight Maven
+      sites.
+  -->
+  <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
+
+  <distributionManagement>
+    <site>
+      <id>opendaylight-site</id>
+      <url>${nexus.site.url}/${project.artifactId}/</url>
+    </site>
+  </distributionManagement>
+</project>
diff --git a/common/features/odl-odlguice-inject/pom.xml b/common/features/odl-odlguice-inject/pom.xml
new file mode 100644 (file)
index 0000000..0bfb748
--- /dev/null
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright © 2017 Red Hat, Inc. 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
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.opendaylight.odlparent</groupId>
+        <artifactId>single-feature-parent</artifactId>
+        <version>7.0.3</version>
+        <relativePath/>
+    </parent>
+
+    <groupId>org.opendaylight.odlguice</groupId>
+    <artifactId>odl-odlguice-inject</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>feature</packaging>
+
+    <name>OpenDaylight :: odlguice :: @Inject</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>inject</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+    </dependencies>
+</project>
diff --git a/common/features/odlguice-features/pom.xml b/common/features/odlguice-features/pom.xml
new file mode 100644 (file)
index 0000000..532b61d
--- /dev/null
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright © 2017 Red Hat, Inc. 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
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.opendaylight.odlparent</groupId>
+        <artifactId>feature-repo-parent</artifactId>
+        <version>7.0.3</version>
+        <relativePath/>
+    </parent>
+
+    <groupId>org.opendaylight.odlguice</groupId>
+    <artifactId>odlguice-features</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>feature</packaging>
+    <!-- <name> formatting is used by autorelease to parse and notify projects on
+         build failure. Please do not modify this unless you have a good reason. -->
+    <name>ODL :: odlguice :: ${project.artifactId}</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>odl-odlguice-inject</artifactId>
+            <version>${project.version}</version>
+            <type>xml</type>
+            <classifier>features</classifier>
+        </dependency>
+    </dependencies>
+
+</project>
diff --git a/common/features/pom.xml b/common/features/pom.xml
new file mode 100644 (file)
index 0000000..5513639
--- /dev/null
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright © 2017 Red Hat, Inc. 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
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.opendaylight.odlparent</groupId>
+        <artifactId>odlparent-lite</artifactId>
+        <version>7.0.3</version>
+        <relativePath/>
+    </parent>
+    <groupId>org.opendaylight.odlguice</groupId>
+    <artifactId>features</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
+    <!-- <name> formatting is used by autorelease to parse and notify projects on
+         build failure. Please do not modify this unless you have a good reason. -->
+    <name>ODL :: odlguice :: ${project.artifactId}</name>
+
+    <modules>
+        <module>odlguice-features</module>
+        <module>odl-odlguice-inject</module>
+    </modules>
+
+    <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
+    <distributionManagement>
+        <site>
+            <id>opendaylight-site</id>
+            <url>${nexus.site.url}/${project.artifactId}/</url>
+        </site>
+    </distributionManagement>
+</project>
diff --git a/common/karaf/pom.xml b/common/karaf/pom.xml
new file mode 100644 (file)
index 0000000..7c48940
--- /dev/null
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=2 tabstop=2: -->
+<!--
+ Copyright © 2017 Red Hat, Inc. 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
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.opendaylight.odlparent</groupId>
+    <artifactId>karaf4-parent</artifactId>
+    <version>7.0.3</version>
+    <relativePath/>
+  </parent>
+
+  <groupId>org.opendaylight.odlguice</groupId>
+  <artifactId>odlguice-karaf</artifactId>
+  <version>1.0.0-SNAPSHOT</version>
+  <!-- <name> formatting is used by autorelease to parse and notify projects on
+       build failure. Please do not modify this unless you have a good reason. -->
+  <name>ODL :: odlguice :: ${project.artifactId}</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.karaf.features</groupId>
+      <artifactId>framework</artifactId>
+      <type>kar</type>
+      <!-- scope is compile so all features (there is only one) are installed
+           into startup.properties and the feature repo itself is not installed -->
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.opendaylight.odlguice</groupId>
+      <artifactId>odlguice-features</artifactId>
+      <version>${project.version}</version>
+      <classifier>features</classifier>
+      <type>xml</type>
+      <scope>runtime</scope>
+    </dependency>
+  </dependencies>
+
+  <!-- DO NOT install or deploy the karaf artifact -->
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-install-plugin</artifactId>
+        <configuration>
+          <skip>true</skip>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-deploy-plugin</artifactId>
+        <configuration>
+          <skip>true</skip>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/common/parent/pom.xml b/common/parent/pom.xml
new file mode 100644 (file)
index 0000000..29222be
--- /dev/null
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=2 tabstop=2: -->
+<!--
+ Copyright © 2017 Red Hat, Inc. 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
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.opendaylight.odlparent</groupId>
+    <artifactId>bundle-parent</artifactId>
+    <version>7.0.2</version>
+    <relativePath/>
+  </parent>
+
+  <groupId>org.opendaylight.odlguice</groupId>
+  <artifactId>parent</artifactId>
+  <version>1.0.0-SNAPSHOT</version>
+    <!-- <name> formatting is used by autorelease to parse and notify projects on
+        build failure. Please do not modify this unless you have a good reason. -->
+  <name>ODL :: odlguice :: ${project.artifactId}</name>
+  <packaging>pom</packaging>
+
+  <properties>
+    <!-- Enforce all of odlparent's optional code quality checks: -->
+    <pmd.cpd.fail>true</pmd.cpd.fail>                    <!-- Fails build for copy/pasted code -->
+    <duplicate-finder.skip>false</duplicate-finder.skip> <!-- Fails build if duplicate classpath entries on dependencies (odlparent 3.0.0) -->
+    <odlparent.modernizer.enforce>true</odlparent.modernizer.enforce>
+  </properties>
+
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <!-- ClassGraph is used both in the ClasspathHellDuplicatesCheckRule as well as in the ClassPathScanner -->
+        <groupId>io.github.classgraph</groupId>
+        <artifactId>classgraph</artifactId>
+        <version>4.8.47</version>
+      </dependency>
+      <dependency>
+        <groupId>com.mycila.guice.extensions</groupId>
+        <artifactId>mycila-guice-jsr250</artifactId>
+        <version>4.0.rc1</version>
+      </dependency>
+      <dependency>
+        <groupId>com.google.inject</groupId>
+        <artifactId>guice</artifactId>
+        <version>4.2.3</version>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
+  <dependencies>
+    <dependency>
+      <groupId>com.google.truth</groupId>
+      <artifactId>truth</artifactId>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <extensions>true</extensions>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>
diff --git a/common/pom.xml b/common/pom.xml
new file mode 100644 (file)
index 0000000..e0fefe7
--- /dev/null
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+ Copyright (c) 2016 Hewlett Packard Enterprise, Co. 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
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+      <groupId>org.opendaylight.odlparent</groupId>
+      <artifactId>odlparent-lite</artifactId>
+      <version>7.0.3</version>
+      <relativePath/>
+    </parent>
+
+    <groupId>org.opendaylight.odlguice</groupId>
+    <artifactId>odlguice-common</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
+    <!-- <name> formatting is used by autorelease to parse and notify projects on
+         build failure. Please do not modify this unless you have a good reason. -->
+    <name>ODL :: odlguice :: ${project.artifactId}</name>
+
+    <modules>
+        <module>artifacts</module>
+        <module>features</module>
+        <module>parent</module>
+    </modules>
+    
+    <profiles>
+        <profile>
+            <id>karaf</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+
+            <modules>
+                <module>karaf</module>
+            </modules>
+        </profile>
+    </profiles>
+</project>
diff --git a/docs/_static/logo.png b/docs/_static/logo.png
new file mode 100644 (file)
index 0000000..861e1af
Binary files /dev/null and b/docs/_static/logo.png differ
diff --git a/docs/conf.py b/docs/conf.py
new file mode 100644 (file)
index 0000000..f8d31cf
--- /dev/null
@@ -0,0 +1,24 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+# SPDX-License-Identifier: EPL-1.0
+##############################################################################
+# Copyright (c) 2018 The Linux Foundation 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
+##############################################################################
+
+from docs_conf.conf import *
+
+# Append to intersphinx_mapping
+#intersphinx_mapping['odl-releng-builder'] = ('http://docs.opendaylight.org/projects/releng-builder/en/latest/', None)
+
+linkcheck_ignore = [
+    # Ignore jenkins because it's often slow to respond.
+    'https://jenkins.opendaylight.org/releng',
+    'https://jenkins.opendaylight.org/sandbox',
+]
+
+nitpicky = True
diff --git a/docs/conf.yaml b/docs/conf.yaml
new file mode 100644 (file)
index 0000000..2652cfc
--- /dev/null
@@ -0,0 +1,6 @@
+---
+project_cfg: opendaylight
+project: ODL Odlguice
+version: Aluminium
+copyright: 2020, VenkataSatya
+author: VenkataSatya, VenkataSatya
diff --git a/docs/favicon.ico b/docs/favicon.ico
new file mode 100644 (file)
index 0000000..c9b3888
Binary files /dev/null and b/docs/favicon.ico differ
diff --git a/docs/index.rst b/docs/index.rst
new file mode 100644 (file)
index 0000000..0a13190
--- /dev/null
@@ -0,0 +1,15 @@
+.. Infrautils documentation master file, created by
+   sphinx-quickstart on Sun Dec 03 21:47:32 2016.
+   You can adapt this file completely to your liking, but it should at least
+   contain the root `toctree` directive.
+
+Infrautils Documentation
+========================
+This documentation provides critical information needed to help you write ODL
+Applications/Projects using Infrautils, which offers various generic utilities
+and infrastructure for ease of application development.
+
+Contents:
+
+.. toctree::
+   :maxdepth: 1
diff --git a/docs/requirements.txt b/docs/requirements.txt
new file mode 100644 (file)
index 0000000..74a3b7a
--- /dev/null
@@ -0,0 +1 @@
+lfdocs-conf
similarity index 88%
rename from infrautils/inject/inject-guice-testutils/pom.xml
rename to inject/inject-guice-testutils/pom.xml
index 1e6f6488ad76e465e91be8ae2a2c11bd506543e6..9e21f7e408244310debc6fea957ec80b48672ddd 100644 (file)
   <modelVersion>4.0.0</modelVersion>
 
   <parent>
-      <groupId>org.opendaylight.infrautils</groupId>
+      <groupId>org.opendaylight.odlguice</groupId>
       <artifactId>parent</artifactId>
-      <version>1.8.0-SNAPSHOT</version>
+      <version>1.0.0-SNAPSHOT</version>
       <relativePath>../../common/parent</relativePath>
   </parent>
-
+  
   <artifactId>inject.guice.testutils</artifactId>
   <packaging>jar</packaging>
   <!-- <name> formatting is used by autorelease to parse and notify projects on
        build failure. Please do not modify this unless you have a good reason. -->
-  <name>ODL :: infrautils :: ${project.artifactId}</name>
+  <name>ODL :: odlguice :: ${project.artifactId}</name>
 
   <dependencies>
     <dependency>
@@ -50,8 +50,9 @@
       <scope>compile</scope>
     </dependency>
     <dependency>
-      <groupId>org.opendaylight.infrautils</groupId>
+      <groupId>org.opendaylight.odlguice</groupId>
       <artifactId>inject</artifactId>
+      <version>${project.version}</version>
     </dependency>
   </dependencies>
 </project>
similarity index 86%
rename from infrautils/inject/inject-guice/pom.xml
rename to inject/inject-guice/pom.xml
index 9f10bfce9826197e965e2560624163ee0b799429..505cf2933a79374e2561e18ffa9f952fbea8810d 100644 (file)
   <modelVersion>4.0.0</modelVersion>
 
   <parent>
-      <groupId>org.opendaylight.infrautils</groupId>
+      <groupId>org.opendaylight.odlguice</groupId>
       <artifactId>parent</artifactId>
-      <version>1.8.0-SNAPSHOT</version>
+      <version>1.0.0-SNAPSHOT</version>
       <relativePath>../../common/parent</relativePath>
   </parent>
-
+  
   <artifactId>inject.guice</artifactId>
   <packaging>bundle</packaging>
   <!-- <name> formatting is used by autorelease to parse and notify projects on
        build failure. Please do not modify this unless you have a good reason. -->
-  <name>ODL :: infrautils :: ${project.artifactId}</name>
+  <name>ODL :: odlguice :: ${project.artifactId}</name>
 
   <dependencies>
     <dependency>
       <artifactId>guice</artifactId>
     </dependency>
     <dependency>
-      <groupId>org.opendaylight.infrautils</groupId>
+      <groupId>org.opendaylight.odlguice</groupId>
       <artifactId>inject</artifactId>
       <version>${project.version}</version>
     </dependency>
-
     <dependency>
-      <groupId>org.opendaylight.infrautils</groupId>
+      <groupId>org.opendaylight.odlguice</groupId>
       <artifactId>inject.guice.testutils</artifactId>
       <version>${project.version}</version>
       <scope>test</scope>
similarity index 89%
rename from infrautils/inject/inject/pom.xml
rename to inject/inject/pom.xml
index cb86576c811ced505ee95a09f08fbd9df400116b..fe26d5e9a1c2a16af6443afb669fd0b600d3f387 100644 (file)
@@ -10,9 +10,9 @@
   <modelVersion>4.0.0</modelVersion>
 
   <parent>
-      <groupId>org.opendaylight.infrautils</groupId>
+      <groupId>org.opendaylight.odlguice</groupId>
       <artifactId>parent</artifactId>
-      <version>1.8.0-SNAPSHOT</version>
+      <version>1.0.0-SNAPSHOT</version>
       <relativePath>../../common/parent</relativePath>
   </parent>
 
@@ -20,7 +20,7 @@
   <packaging>bundle</packaging>
   <!-- <name> formatting is used by autorelease to parse and notify projects on
        build failure. Please do not modify this unless you have a good reason. -->
-  <name>ODL :: infrautils :: ${project.artifactId}</name>
+  <name>ODL :: odlguice :: ${project.artifactId}</name>
 
   <build>
     <plugins>
@@ -32,7 +32,7 @@
           <instructions>
             <!-- TODO remove this; it should do this by default? -->
             <Export-Package>
-              org.opendaylight.infrautils.inject
+              org.opendaylight.odlguice.inject
             </Export-Package>
           </instructions>
         </configuration>
similarity index 89%
rename from infrautils/inject/pom.xml
rename to inject/pom.xml
index 73f8fb6c313915b5ce47394dd9b1064d32899062..6239dbeafabc98bd23d069642f1a632da23a736e 100644 (file)
     <relativePath/>
   </parent>
 
-  <groupId>org.opendaylight.infrautils</groupId>
+  <groupId>org.opendaylight.odlguice</groupId>
   <artifactId>inject-aggregator</artifactId>
-  <version>1.8.0-SNAPSHOT</version>
+  <version>1.0.0-SNAPSHOT</version>
   <packaging>pom</packaging>
   <!-- <name> formatting is used by autorelease to parse and notify projects on
        build failure. Please do not modify this unless you have a good reason. -->
-  <name>ODL :: infrautils :: ${project.artifactId}</name>
+  <name>ODL :: odlguice :: ${project.artifactId}</name>
 
   <modules>
     <module>inject</module>
diff --git a/pom.xml b/pom.xml
new file mode 100644 (file)
index 0000000..85cdea3
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=2 tabstop=2: -->
+<!-- Copyright © 2016 Red Hat, Inc. 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 -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <parent>
+        <groupId>org.opendaylight.odlparent</groupId>
+        <artifactId>bundle-parent</artifactId>
+        <version>7.0.3</version>
+        <relativePath />
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.opendaylight.odlguice</groupId>
+    <artifactId>odlguice</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
+    <name>odlguice</name>
+
+    <scm>
+        <connection>scm:git:ssh://git.opendaylight.org:29418/odlguice.git</connection>
+        <developerConnection>scm:git:ssh://git.opendaylight.org:29418/odlguice.git</developerConnection>
+        <!-- <url>https://wiki.opendaylight.org/view/Infrastructure_Utilities:Main</url> -->
+        <tag>HEAD</tag>
+    </scm>
+
+    <modules>
+        <module>common</module>
+        <module>inject</module>
+    </modules>
+</project>
\ No newline at end of file
diff --git a/tox.ini b/tox.ini
new file mode 100644 (file)
index 0000000..6bd0f1e
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,8 @@
+[tox]
+minversion = 1.6.0
+envlist = docs
+skipsdist = true
+
+[testenv:docs]
+deps = -rdocs/requirements.txt
+commands = sphinx-build -W -n -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html