blob: 23dc450ec03500793545e7cfcf78f967aaee6204 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
POM file.
-->
<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.apache.ignite</groupId>
<artifactId>ignite-parent-internal</artifactId>
<version>${revision}</version>
<relativePath>../../../parent-internal/pom.xml</relativePath>
</parent>
<artifactId>ignite-dotnet</artifactId>
<packaging>pom</packaging>
<dependencies>
<!--
The modules below are required to build the .NET sources.
These dependencies are required for the maven reactor to build them first.
-->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>ignite-core</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>ignite-indexing</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>ignite-spring</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>update-versions</id>
<goals>
<goal>run</goal>
</goals>
<phase>initialize</phase>
<configuration>
<target>
<echo message="Update ignite.version in .NET" />
<replaceregexp byline="true" encoding="UTF-8">
<regexp pattern="(\[assembly:\s*Assembly\w*Version\w*\(&quot;)\d+\.\d+\.\d+(\.\d+)?(&quot;\)\])" />
<substitution expression="\1${ignite.platform.full.version}\3" />
<fileset dir="${basedir}/">
<include name="**/SharedAssemblyInfo.cs" />
</fileset>
</replaceregexp>
<replaceregexp byline="true" encoding="UTF-8">
<regexp pattern="(\[assembly:\s*AssemblyInformationalVersion\w*\(&quot;).*?(&quot;\)\])" />
<substitution
expression="\1${ignite.majorVersion}.${ignite.minorVersion}.${ignite.incrementalVersion}\2" />
<fileset dir="${basedir}/">
<include name="**/SharedAssemblyInfo.cs" />
</fileset>
</replaceregexp>
</target>
</configuration>
</execution>
<execution>
<id>build-dotnet</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<exec executable="pwsh" dir="${project.basedir}" failonerror="true">
<arg line="${project.basedir}/build.ps1"/>
<arg line="-skipJava -skipExamples"/>
</exec>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>clean-native</id>
<phase>clean</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo>Basedir: ${project.basedir}</echo>
<delete dir="${project.basedir}/bin/"/>
<delete dir="${project.basedir}/nupkg/"/>
<delete dir="${project.basedir}/obj/"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>