Add initial files for new ccsdk/sli repo 49/115549/1
authorDan Timoney <dtimoney@att.com>
Mon, 30 Nov 2020 15:35:19 +0000 (10:35 -0500)
committerDan Timoney <dtimoney@att.com>
Mon, 30 Nov 2020 15:35:19 +0000 (10:35 -0500)
Add initial pom.xml for new ccsdk/sli repo

Issue-ID: CCSDK-3008
Signed-off-by: Dan Timoney <dtimoney@att.com>
Change-Id: I41cca73c191f871b3dcfbbac9f29964a046a262f

pom.xml [new file with mode: 0755]
version.properties [new file with mode: 0644]

diff --git a/pom.xml b/pom.xml
new file mode 100755 (executable)
index 0000000..1c9b9c8
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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.onap.ccsdk.parent</groupId>
+               <artifactId>oparent</artifactId>
+               <version>2.1.0-SNAPSHOT</version>
+               <relativePath/>
+       </parent>
+
+       <groupId>org.onap.ccsdk.sli</groupId>
+       <artifactId>ccsdk-sli</artifactId>
+       <version>1.1.1-SNAPSHOT</version>
+       <packaging>pom</packaging>
+
+       <name>ccsdk-sli</name>
+       <description>Service Logic Interpreter</description>
+       <url>https://wiki.onap.org</url>
+       <organization>
+               <name>ONAP</name>
+       </organization>
+
+       <modules>
+       </modules>
+
+       <scm>
+               <connection>scm:git:ssh://git@${onap.git.host}/sdnc-code.git</connection>
+               <developerConnection>scm:git:ssh://${onap.git.host}:${onap.git.port}/${onap.git.project}/sli.git</developerConnection>
+               <url>${onap.git.protocol}://${onap.git.host}/projects/${onap.git.project}/repos/sli/browse</url>
+               <tag>sli-1.1.0</tag>
+       </scm>
+       <distributionManagement>
+               <site>
+                       <id>ecomp-site</id>
+                       <url>dav:${onap.nexus.url}/${sitePath}</url>
+               </site>
+       </distributionManagement>
+
+       <properties>
+               <sitePath>content/sites/site/org/onap/ccsdk/sli/${project.version}/</sitePath>
+       </properties>
+
+       <profiles>
+               <profile>
+                       <id>blackduck</id>
+                       <activation>
+                               <property>
+                                       <name>blackduck-scan</name>
+                               </property>
+                       </activation>
+                       <build>
+                                       <plugins>
+                                               <plugin>
+                                                       <groupId>com.blackducksoftware.integration</groupId>
+                                                       <artifactId>hub-maven-plugin</artifactId>
+                                                       <version>1.4.0</version>
+                                                       <inherited>false</inherited>
+                                                       <configuration>
+                                                               <hubProjectName>${project.name}</hubProjectName>
+                                                               <outputDirectory>${project.basedir}</outputDirectory>
+                                                       </configuration>
+                                                       <executions>
+                                                               <execution>
+                                                                       <id>create-bdio-file</id>
+                                                                       <phase>package</phase>
+                                                                       <goals>
+                                                                               <goal>createHubOutput</goal>
+                                                                       </goals>
+                                                               </execution>
+                                                       </executions>
+                                               </plugin>
+                                       </plugins>
+                       </build>
+
+               </profile>
+
+               <profile>
+                       <id>dependency-list</id>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               <groupId>com.github.ferstl</groupId>
+                                               <artifactId>depgraph-maven-plugin</artifactId>
+                                               <executions>
+                                                       <execution>
+                                                               <phase>validate</phase>
+                                                               <inherited>false</inherited>
+                                                               <goals>
+                                                                       <goal>aggregate</goal>
+                                                               </goals>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                                       <plugin>
+                                               <groupId>org.codehaus.mojo</groupId>
+                                               <artifactId>build-helper-maven-plugin</artifactId>
+                                               <executions>
+                                                       <execution>
+                                                               <id>attach-artifacts</id>
+                                                               <phase>package</phase>
+                                                               <inherited>false</inherited>
+                                                               <goals>
+                                                                       <goal>attach-artifact</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <artifacts>
+                                                                               <artifact>
+                                                                                       <file>${dependency-list.file}</file>
+                                                                                       <type>txt</type>
+                                                                                       <classifier>dependencies</classifier>
+                                                                               </artifact>
+                                                                       </artifacts>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
+
+       </profiles>
+</project>
diff --git a/version.properties b/version.properties
new file mode 100644 (file)
index 0000000..ca85875
--- /dev/null
@@ -0,0 +1,15 @@
+###########################################################
+# Versioning variables
+# Note that these variables cannot be structured (e.g. : version.release or version.snapshot etc... )
+# because they are used in Jenkins, whose plug-in doesn't support
+
+
+release_name=1
+sprint_number=1
+feature_revision=1
+
+base_version=${release_name}.${sprint_number}.${feature_revision}
+
+release_version=${base_version}
+snapshot_version=${base_version}-SNAPSHOT
+