Skip to content

Commit

Permalink
streamlined gradle in the ES modules
Browse files Browse the repository at this point in the history
modules depending on ES sources are now having different javac options
  • Loading branch information
dobe committed Nov 8, 2016
1 parent d8ee4b2 commit 53cd787
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ configurations {
}
}

evaluationDependsOn(':es')
evaluationDependsOn(':core')
evaluationDependsOn(':es:es-core')
evaluationDependsOn(':sql')
evaluationDependsOn(':sql-parser')
evaluationDependsOn(':blob')
Expand Down
1 change: 0 additions & 1 deletion azure-discovery/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply from: "$rootDir/gradle/javaModule.gradle"
apply plugin: 'idea'

archivesBaseName = 'crate-azure-discovery'
group = 'io.crate'
Expand Down
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ project.gradle.addListener(new TestListener() {
def jacocoProjects() {
subprojects.findAll {
!['es-core',
'es-client',
'es-testing',
'es-discovery-multicast',
'es-cloud-aws',
Expand Down
1 change: 0 additions & 1 deletion es-repository-hdfs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ plugins {
id "de.undercouch.download" version "2.1.0"
}
apply from: "$rootDir/gradle/javaModule.gradle"
apply plugin: 'idea'

description = 'Elasticsearch HDFS Repository'

Expand Down
20 changes: 18 additions & 2 deletions es/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
subprojects {

// all subprojects in this folder are using only the elasticsearch
// upstream source under upstream. we do not share the java
// configuration of the other top level modules since we do want
// to ignore compiler warnings

apply plugin: 'java'
apply plugin: 'maven'

repositories {
mavenCentral()
}

sourceCompatibility = "8"
targetCompatibility = "8"

compileJava {
// upstream code - not interested in any warnings
options.warnings = false
options.deprecation = false
options.compilerArgs << '-XDignore.symbol.file'
options.fork = true
options.forkOptions.executable = 'javac'
}

compileTestJava {
// upstream code - not interested in any warnings
options.warnings = false
options.deprecation = false
options.compilerArgs << '-XDignore.symbol.file'
}

test {
enabled = false
jacoco {
Expand Down
3 changes: 0 additions & 3 deletions es/es-cloud-aws/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
apply from: "$rootDir/gradle/javaModule.gradle"
apply plugin: 'idea'

dependencies {
compile project(':es:es-core')
compile "com.amazonaws:aws-java-sdk-ec2:${versions.aws}"
Expand Down
2 changes: 0 additions & 2 deletions es/es-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
apply from: "$rootDir/gradle/javaModule.gradle"

dependencies {
// start ES compile dependencies
// generated in upstream directory with:
Expand Down
3 changes: 0 additions & 3 deletions es/es-discovery-multicast/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
apply from: "$rootDir/gradle/javaModule.gradle"
apply plugin: 'idea'

dependencies {
compile project(':es:es-core')
}
Expand Down
2 changes: 0 additions & 2 deletions es/es-testing/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
apply from: "$rootDir/gradle/javaModule.gradle"

dependencies {
compile project(':es:es-core')

Expand Down
9 changes: 5 additions & 4 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
include 'es:es-core',
include 'es',
'es:es-core',
'es:es-testing',
'es:es-cloud-aws',
'es:es-discovery-multicast',
'testing',
'core',
'blob',
Expand All @@ -9,10 +12,8 @@ include 'es:es-core',
'udc',
'azure-discovery',
'dns-discovery',
'sigar',
'es:es-cloud-aws',
'es:es-discovery-multicast',
'es-repository-hdfs',
'sigar',
'app',
'blackbox'

1 change: 0 additions & 1 deletion sql/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply from: "$rootDir/gradle/javaModule.gradle"
apply plugin: 'idea'
apply plugin: 'groovy'
apply plugin: 'de.thetaphi.forbiddenapis'

Expand Down

0 comments on commit 53cd787

Please sign in to comment.