From 1b667b2584955ab38197d5c854176c7a75a8c05e Mon Sep 17 00:00:00 2001 From: David Roberts Date: Mon, 19 Sep 2016 14:36:40 +0100 Subject: [PATCH] Further split out C++ Gradle targets to make life easier for people without a C++ build environment Original commit: elastic/x-pack-elasticsearch@eeca100a3b8f418340f19af11d65c53c235d6d90 --- build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index dd94dad7368..38313bef07f 100644 --- a/build.gradle +++ b/build.gradle @@ -5,17 +5,17 @@ import org.gradle.internal.os.OperatingSystem project.ext.make = OperatingSystem.current().isLinux() ? "make" : "gnumake" project.ext.numCpus = Runtime.runtime.availableProcessors() -task clean(type: Exec) { +task cppclean(type: Exec) { commandLine make args 'clean' } -task objcompile(type: Exec) { +task cppobjcompile(type: Exec) { commandLine make args '-j' + numCpus, 'objcompile' } -task make(type: Exec) { +task cppmake(type: Exec) { commandLine make args '-j' + numCpus } @@ -29,6 +29,8 @@ subprojects { apply plugin: 'maven' apply plugin: 'java' + compileJava.options.encoding = 'UTF-8' + group = 'com.prelert' version = '2.1.1' sourceCompatibility = 1.8