add source files to dist jar files

This commit is contained in:
kimchy 2010-04-01 23:06:11 +03:00
parent 8faf8c2169
commit 05d85b2ae4
2 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ manifest.mainAttributes("Implementation-Title": "ElasticSearch", "Implementation
sourceSets.main.resources.srcDirs 'src/main/java', rootProject.file('config')
sourceSets.test.resources.srcDir 'src/test/java'
// add the source files to the dist jar
jar {
from sourceSets.main.allJava
}

View File

@ -15,6 +15,7 @@ configurations.testCompile.transitive = true
sourceSets.main.resources.srcDir 'src/main/java'
sourceSets.test.resources.srcDir 'src/test/java'
// add the source files to the dist jar
jar {
from sourceSets.main.allJava
}