diff options
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 24 |
1 files changed, 19 insertions, 5 deletions
@@ -1,12 +1,11 @@ <?xml version="1.0"?> -<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"> +<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> <packaging>pom</packaging> <groupId>org.onap.testsuite.heatbridge</groupId> <artifactId>heatbridge</artifactId> <name>heatbridge</name> - <version>0.3</version> + <version>0.3.0-SNAPSHOT</version> <description>heatbridge used to stitch together some holes in the onap tests for release one</description> <parent> <groupId>org.onap.oparent</groupId> @@ -15,7 +14,7 @@ </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <wheel.name>${project.artifactId}-${project.version}-py2-none-any.whl</wheel.name> + <wheel.name>${project.artifactId}-${python_version}-py2-none-any.whl</wheel.name> <python.sourceDirectory>${project.basedir}/heatbridge</python.sourceDirectory> </properties> <build> @@ -26,6 +25,20 @@ <version>3.0.0</version> <executions> <execution> + <id>write-python-version</id> + <goals> + <goal>regex-property</goal> + </goals> + <phase>initialize</phase> + <configuration> + <name>python_version</name> + <regex>-SNAPSHOT</regex> + <value>${project.version}</value> + <replacement>\.dev0</replacement> + <failIfNoMatch>false</failIfNoMatch> + </configuration> + </execution> + <execution> <id>attach-artifacts</id> <phase>package</phase> <goals> @@ -47,6 +60,7 @@ <artifactId>maven-python-distribute-plugin</artifactId> <version>0.2.0</version> <configuration> + <packageVersion>${python_version}</packageVersion> <sourceDirectory>${python.sourceDirectory}</sourceDirectory> <distributionType>wheel</distributionType> </configuration> @@ -94,4 +108,4 @@ <version>0.2.0</version> </dependency> </dependencies> -</project>
\ No newline at end of file +</project> |