From 64ef14f422815c41e5315542eeb2f4d60e261d2b Mon Sep 17 00:00:00 2001 From: Juraj Michalek Date: Tue, 15 Apr 2014 07:35:00 +0200 Subject: [PATCH] Update build.gradle to support Gradle 2.0 --- gradle/01-hello-muni/build.gradle | 7 ++++++- gradle/02-hello-muni-with-gradle-wrapper/build.gradle | 7 ++++++- gradle/03-hello-muni-with-debug/build.gradle | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/gradle/01-hello-muni/build.gradle b/gradle/01-hello-muni/build.gradle index 0590df0..8f23699 100644 --- a/gradle/01-hello-muni/build.gradle +++ b/gradle/01-hello-muni/build.gradle @@ -1 +1,6 @@ -apply plugin: 'cpp-exe' +apply plugin: 'cpp' + +executables { + main { + } +} diff --git a/gradle/02-hello-muni-with-gradle-wrapper/build.gradle b/gradle/02-hello-muni-with-gradle-wrapper/build.gradle index 4c58bdf..0260c79 100644 --- a/gradle/02-hello-muni-with-gradle-wrapper/build.gradle +++ b/gradle/02-hello-muni-with-gradle-wrapper/build.gradle @@ -1,3 +1,8 @@ -apply plugin: 'cpp-exe' +apply plugin: 'cpp' task wrapper(type: Wrapper) + +executables { + main { + } +} diff --git a/gradle/03-hello-muni-with-debug/build.gradle b/gradle/03-hello-muni-with-debug/build.gradle index e43f043..9aa9d2a 100644 --- a/gradle/03-hello-muni-with-debug/build.gradle +++ b/gradle/03-hello-muni-with-debug/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'cpp-exe' +apply plugin: 'cpp' // Based on http://www.gradle.org/docs/current/userguide/nativeBinaries.html @@ -12,3 +12,8 @@ binaries.all { linker.args '/DEBUG' } } + +executables { + main { + } +}