diff --git a/build.gradle b/build.gradle index fe72e388..45429aa9 100644 --- a/build.gradle +++ b/build.gradle @@ -104,13 +104,15 @@ task buildRestNotesSpringDataRestSampleWithGradle(type: GradleBuild) { task buildRestNotesSpringHateoasSampleWithMaven(type: Exec) { dependsOn 'spring-restdocs:install' workingDir 'samples/rest-notes-spring-hateoas' - commandLine "${System.env.MAVEN_HOME}/bin/mvn", 'clean', 'package' + def suffix = File.separatorChar == '/' ? '' : '.bat' + commandLine "${System.env.MAVEN_HOME}/bin/mvn${suffix}", 'clean', 'package' } task buildRestNotesSpringDataRestSampleWithMaven(type: Exec) { dependsOn 'spring-restdocs:install' workingDir 'samples/rest-notes-spring-data-rest' - commandLine "${System.env.MAVEN_HOME}/bin/mvn", 'clean', 'package' + def suffix = File.separatorChar == '/' ? '' : '.bat' + commandLine "${System.env.MAVEN_HOME}/bin/mvn${suffix}", 'clean', 'package' } wrapper {