diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-ant/build.gradle b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-ant/build.gradle index 692750679b..7ff1740185 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-ant/build.gradle +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-ant/build.gradle @@ -50,7 +50,7 @@ task syncTestRepository(type: Sync) { task antRun(type: JavaExec) { dependsOn syncTestRepository, configurations.antDependencies classpath = configurations.antDependencies; - main = "org.apache.tools.ant.launch.Launcher" + mainClass = "org.apache.tools.ant.launch.Launcher" args = [ "clean", "build" ] systemProperties = [ "ant-spring-boot.version" : version,