Move .pom file in gradle build task (#2708)

This commit is contained in:
Mikael Mengistu 2018-08-01 09:42:35 -07:00 committed by GitHub
parent c8eedb3540
commit fd6b52c22b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -129,7 +129,6 @@
<Target Name="PackJavaClient" Condition="'$(JAVA_HOME)' != '' And Exists('$(JAVA_HOME)/lib/tools.jar')">
<Message Text="Packing Java client" Importance="high" />
<Exec Command="./gradlew jar sourceJar javadocJar generatePOM" WorkingDirectory="$(RepositoryRoot)clients/java/signalr" />
<Move SourceFiles="$(RepositoryRoot)clients/java/signalr/signalr-client-$(JavaClientVersion).pom" DestinationFolder="$(RepositoryRoot)clients/java/signalr\build\libs" />
<Copy SourceFiles="$(RepositoryRoot)clients/java/signalr\build\libs\%(JavaBuildFiles.Identity)" DestinationFolder="$(BuildDir)" />
</Target>

View File

@ -45,4 +45,7 @@ task generatePOM {
}
}
}.writeTo("signalr-client-0.1.0-preview1.pom")
}
ant.move file: "signalr-client-0.1.0-preview1.pom",
todir: "${buildDir}/libs"
}