Generate .pom files to list maven deps

This commit is contained in:
redth 2019-03-04 15:02:49 -05:00
Родитель af7b032ce7
Коммит 635902c042
2 изменённых файлов: 48 добавлений и 0 удалений

Просмотреть файл

@ -14,6 +14,10 @@
{
"templateFile": "source/AndroidSupportProject.cshtml",
"outputFileRule" : "generated/{groupid}.{artifactid}/{groupid}.{artifactid}.csproj"
},
{
"templateFile": "source/AndroidSupportPom.cshtml",
"outputFileRule" : "generated/{groupid}.{artifactid}/dependencies.pom"
}
],
"artifacts" : [

Просмотреть файл

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
@using System.Linq
@using System.IO
@using System.Xml.Linq
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.xamarin.android.bindings</groupId>
<artifactId>@(Model.Name)</artifactId>
<version>1.0.0</version>
<packaging>aar</packaging>
<name>Xamarin.Android Bindings for Android Support - @(Model.Name)</name>
<description>Xamarin.Android Bindings for Android Support - @(Model.Name)</description>
<url>https://github.com/xamarin/AndroidSupportComponents/</url>
<inceptionYear>2019</inceptionYear>
<licenses>
<license>
<name>MIT License</name>
<url>https://github.com/xamarin/AndroidSupportComponents/blob/master/LICENSE.md</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>Xamarin</name>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/xamarin/AndroidSupportComponents.git</connection>
<url>https://github.com/xamarin/AndroidSupportComponents/</url>
</scm>
@if (@Model.MavenArtifacts.Count > 0) {
<dependencies>
@foreach (var art in @Model.MavenArtifacts) {
<dependency>
<groupId>@(art.MavenGroupId)</groupId>
<artifactId>@(art.MavenArtifactId)</artifactId>
<version>@(art.MavenArtifactVersion)</version>
<scope>compile</scope>
</dependency>
}
</dependencies>
}
</project>