ZEST-25 Skip checkBinDist_goOfflineMaven is mvm is not on PATH
Project: http://git-wip-us.apache.org/repos/asf/zest-qi4j/repo Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/4f2a0b0b Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/4f2a0b0b Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/4f2a0b0b Branch: refs/heads/develop Commit: 4f2a0b0bc957b6fe32fce4d8e91c1b6bdfc0534b Parents: b110516 Author: Paul Merlin <[email protected]> Authored: Wed Jun 24 18:25:01 2015 +0200 Committer: Paul Merlin <[email protected]> Committed: Wed Jun 24 18:25:01 2015 +0200 ---------------------------------------------------------------------- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/4f2a0b0b/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index 170edb4..2658c9c 100644 --- a/build.gradle +++ b/build.gradle @@ -760,10 +760,14 @@ task checkBinDist_goOfflineGradle( type: GradleBuild, dependsOn: unpackBinDist ) } } task checkBinDist_goOfflineMaven( type: Exec, dependsOn: unpackBinDist ) { + onlyIf { + def pathDirs = System.getenv( 'PATH' ).split( File.pathSeparator ) + pathDirs.collect( { new File( it, 'mvn') } ).flatten().findAll( { it.isFile() } ) + } def dependenciesDir = new File( unpackedBinDistDir, 'dependencies' ) doFirst { dependenciesDir.deleteDir() } workingDir unpackedBinDistDir - commandLine 'mvn', '-f', 'go-offline.pom', 'validate' + commandLine 'mvn', '-q', '-f', 'go-offline.pom', 'validate' doLast { releaseApprovedProjects*.configurations.runtime.allDependencies.findAll({it.name}).each { dep -> def jarArtifactId = dep.name instanceof String ? dep.name : dep.name.last()
