File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 11import org.gradle.internal.os.OperatingSystem
2+ import org.ajoberstar.grgit.*
3+
4+ plugins {
5+ id " org.ajoberstar.grgit" version " 4.1.0"
6+ }
27
38def gradleExec = file(OperatingSystem . current(). isWindows() ? " gradlew.bat" : " gradlew" )
49def mavenExec = file(OperatingSystem . current(). isWindows() ? " mvnw.cmd" : " mvnw" )
@@ -44,7 +49,20 @@ ext.maven = { Closure mavenClosure ->
4449 tasks. withType(Exec ) { environment << envVars }
4550}
4651
52+ task buildToolkitsLib {
53+ def tempDir = File . createTempDir()
54+ tempDir. deleteOnExit()
55+
56+ Grgit . clone(dir : file(tempDir), uri : ' https://github.com/microsoft/azure-maven-plugins.git' )
57+
58+ maven {
59+ goals = " install"
60+ pom = file(" ${ tempDir} /pom.xml" )
61+ }
62+ }
63+
4764task buildUtils {
65+ dependsOn buildToolkitsLib
4866 doLast {
4967 logger. info(' Building Utils ...' )
5068 maven {
You can’t perform that action at this time.
0 commit comments