Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing service files in ES-Hadoop jars #1265

Merged
merged 3 commits into from
Mar 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ class BuildPlugin implements Plugin<Project> {
private static String gitHash(File gitHead) {
String rev = "unknown"

if (gitHead.exists()) {
if (gitHead != null && gitHead.exists()) {
rev = gitHead.text.trim()
}
return rev
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ class IntegrationBuildPlugin implements Plugin<Project> {
Jar rootJar = project.rootProject.getTasks().getByName('jar') as Jar
rootJar.dependsOn(project.tasks.jar)
rootJar.from(project.zipTree(project.tasks.jar.archivePath)) {
exclude "META-INF/**"
exclude "META-INF/*"
include "META-INF/services"
include "**/*"
}

Expand Down
3 changes: 2 additions & 1 deletion hive/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jar {
from(zipTree(project(":elasticsearch-hadoop-mr").jar.archivePath)) {
include "org/elasticsearch/hadoop/**"
include "esh-build.properties"
include "META-INF/services/*"
}
}

Expand All @@ -37,4 +38,4 @@ dependencies {
itestRuntime("org.apache.hive:hive-jdbc:$hiveVersion") {
exclude module: "log4j-slf4j-impl"
}
}
}
3 changes: 2 additions & 1 deletion pig/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jar {
from(zipTree(project(":elasticsearch-hadoop-mr").jar.archivePath)) {
include "org/elasticsearch/hadoop/**"
include "esh-build.properties"
include "META-INF/services/*"
}
}

Expand All @@ -39,4 +40,4 @@ dependencies {
testRuntime "jline:jline:0.9.94"

itestRuntime "dk.brics.automaton:automaton:1.11-8"
}
}
3 changes: 2 additions & 1 deletion spark/sql-13/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jar {
from(zipTree(project(":elasticsearch-hadoop-mr").jar.archivePath)) {
include "org/elasticsearch/hadoop/**"
include "esh-build.properties"
include "META-INF/services/*"
}
}

Expand Down Expand Up @@ -135,4 +136,4 @@ configurations.all { Configuration conf ->
}

conf.exclude group: "org.mortbay.jetty"
}
}
1 change: 1 addition & 0 deletions spark/sql-20/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ jar {
from(zipTree(project(":elasticsearch-hadoop-mr").jar.archivePath)) {
include "org/elasticsearch/hadoop/**"
include "esh-build.properties"
include "META-INF/services/*"
}
}

Expand Down
3 changes: 2 additions & 1 deletion storm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jar {
from(zipTree(project(":elasticsearch-hadoop-mr").jar.archivePath)) {
include "org/elasticsearch/hadoop/**"
include "esh-build.properties"
include "META-INF/services/*"
}
}

Expand All @@ -41,4 +42,4 @@ dependencies {
// add itest to Eclipse
//eclipse.classpath.plusConfigurations += [configurations.itestCompile]

tasks.getByName('integrationTest').enabled = false
tasks.getByName('integrationTest').enabled = false