Build with Gradle 4.3 where possible

Upgrade the main build and all the Gradle-based samples other than
the Gradle sample to Gradle 4.3.

Closes gh-446
This commit is contained in:
Andy Wilkinson
2017-11-06 20:42:36 +00:00
parent 1a858a2e1f
commit c7fd07576b
14 changed files with 16 additions and 16 deletions

View File

@@ -116,11 +116,11 @@ public class SampleBuildConfigurer {
}
private Task createGradleBuild(Project project, Object... dependencies) {
Task gradleBuild = project.tasks.create("${name}Gradle", GradleBuild)
Task gradleBuild = project.tasks.create("${name}Gradle", Exec)
gradleBuild.description = "Builds the ${name} sample with Gradle"
gradleBuild.group = "Build"
gradleBuild.dir = this.workingDir
gradleBuild.tasks = ['clean', 'build']
gradleBuild.workingDir = this.workingDir
gradleBuild.commandLine = [isWindows() ? "${sampleDir.absolutePath}/gradlew.bat" : './gradlew', 'clean', 'build']
gradleBuild.dependsOn dependencies
return gradleBuild
}