Further split out C++ Gradle targets to make life easier for people without a C++ build environment
Original commit: elastic/x-pack-elasticsearch@eeca100a3b
This commit is contained in:
parent
c0b1ac948c
commit
1b667b2584
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue