diff --git a/modules/elasticsearch/build.gradle b/modules/elasticsearch/build.gradle index 3fa346d3496..6f9689f4e7e 100644 --- a/modules/elasticsearch/build.gradle +++ b/modules/elasticsearch/build.gradle @@ -1,5 +1,3 @@ -import java.text.SimpleDateFormat - dependsOn(':test-testng') usePlugin 'java' @@ -26,6 +24,10 @@ manifest.mainAttributes("Implementation-Title": "ElasticSearch", "Implementation sourceSets.main.resources.srcDirs 'src/main/java', rootProject.file('config') sourceSets.test.resources.srcDir 'src/test/java' +jar { + from sourceSets.main.allJava +} + dependencies { compile('jline:jline:0.9.94') { transitive = false } diff --git a/plugins/attachments/build.gradle b/plugins/attachments/build.gradle index b780741d7e6..e6da750f5fc 100644 --- a/plugins/attachments/build.gradle +++ b/plugins/attachments/build.gradle @@ -15,6 +15,10 @@ configurations.testCompile.transitive = true sourceSets.main.resources.srcDir 'src/main/java' sourceSets.test.resources.srcDir 'src/test/java' +jar { + from sourceSets.main.allJava +} + configurations { dists distLib {