Bump minor version
[so.git] / aria / aria-rest-server / pom.xml
1 <?xml version="1.0"?>
2 <!--
3     /*
4     * ============LICENSE_START===================================================
5     * Copyright (c) 2017 Cloudify.co.  All rights reserved.
6     * ===================================================================
7     * Licensed under the Apache License, Version 2.0 (the "License"); you may not
8     * use this file except in compliance with the License. You may obtain a copy
9     * of the License at
10     *
11     *       http://www.apache.org/licenses/LICENSE-2.0
12     *
13     * Unless required by applicable law or agreed to in writing, software
14     * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15     * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16     * License for the specific language governing permissions and limitations under
17     * the License.
18     * ============LICENSE_END====================================================
19     */
20   -->
21
22 <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">
23   <modelVersion>4.0.0</modelVersion>
24   <packaging>pom</packaging>
25   <groupId>org.onap.aria</groupId>
26   <artifactId>ariarest</artifactId>
27   <name>ariarest</name>
28   <version>0.1.0-SNAPSHOT</version>
29   <description>ARIA REST API wheel build</description>
30   <parent>
31     <groupId>org.onap.oparent</groupId>
32     <artifactId>oparent</artifactId>
33     <version>1.1.0-SNAPSHOT</version>
34   </parent>
35
36   <pluginRepositories>
37     <pluginRepository>
38       <id>jitpack.io</id>
39       <url>https://jitpack.io</url>
40     </pluginRepository> 
41   </pluginRepositories>
42
43   <properties>
44     <python_version>2.7</python_version>
45     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46     <wheel.name>${project.artifactId}-${python_version}-py2-none-any.whl</wheel.name>
47     <python.sourceDirectory>${project.basedir}/src/main/python/aria-rest</python.sourceDirectory>
48   </properties>
49   <build>
50     <plugins>
51       <plugin>
52         <groupId>org.codehaus.mojo</groupId>
53         <artifactId>build-helper-maven-plugin</artifactId>
54         <version>3.0.0</version>
55         <executions>
56           <execution>
57             <id>write-python-version</id>
58             <goals>
59               <goal>regex-property</goal>
60             </goals>
61             <phase>initialize</phase>
62             <configuration>
63               <name>python_version</name>
64               <regex>-SNAPSHOT</regex>
65               <value>${project.version}</value>
66               <replacement>\.dev0</replacement>
67               <failIfNoMatch>false</failIfNoMatch>
68             </configuration>
69           </execution>
70           <execution>
71             <id>attach-artifacts</id>
72             <phase>package</phase>
73             <goals>
74               <goal>attach-artifact</goal>
75             </goals>
76             <configuration>
77               <artifacts>
78                 <artifact>
79                   <file>${project.build.directory}/maven-python/dist/${wheel.name}</file>
80                   <type>whl</type>
81                 </artifact>
82               </artifacts>
83             </configuration>
84           </execution>
85         </executions>
86       </plugin>
87       <plugin>
88         <groupId>com.github.UltimateDogg</groupId>
89         <artifactId>maven-python-distribute-plugin</artifactId>
90         <version>0.2.0</version>
91         <configuration>
92           <packageVersion>${python_version}</packageVersion>
93           <sourceDirectory>${python.sourceDirectory}</sourceDirectory>
94           <distributionType>wheel</distributionType>
95         </configuration>
96         <executions>
97           <execution>
98             <id>package</id>
99             <phase>prepare-package</phase>
100             <goals>
101               <goal>package</goal>
102             </goals>
103           </execution>
104           <execution>
105             <id>process</id>
106             <phase>process-sources</phase>
107             <goals>
108               <goal>process-sources</goal>
109             </goals>
110           </execution>
111         </executions>
112       </plugin>
113     </plugins>
114   </build>
115 </project>
116