add source files to dist jar files
This commit is contained in:
parent
50249f4e52
commit
8faf8c2169
|
@ -1,5 +1,3 @@
|
||||||
import java.text.SimpleDateFormat
|
|
||||||
|
|
||||||
dependsOn(':test-testng')
|
dependsOn(':test-testng')
|
||||||
|
|
||||||
usePlugin 'java'
|
usePlugin 'java'
|
||||||
|
@ -26,6 +24,10 @@ manifest.mainAttributes("Implementation-Title": "ElasticSearch", "Implementation
|
||||||
sourceSets.main.resources.srcDirs 'src/main/java', rootProject.file('config')
|
sourceSets.main.resources.srcDirs 'src/main/java', rootProject.file('config')
|
||||||
sourceSets.test.resources.srcDir 'src/test/java'
|
sourceSets.test.resources.srcDir 'src/test/java'
|
||||||
|
|
||||||
|
jar {
|
||||||
|
from sourceSets.main.allJava
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile('jline:jline:0.9.94') { transitive = false }
|
compile('jline:jline:0.9.94') { transitive = false }
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,10 @@ configurations.testCompile.transitive = true
|
||||||
sourceSets.main.resources.srcDir 'src/main/java'
|
sourceSets.main.resources.srcDir 'src/main/java'
|
||||||
sourceSets.test.resources.srcDir 'src/test/java'
|
sourceSets.test.resources.srcDir 'src/test/java'
|
||||||
|
|
||||||
|
jar {
|
||||||
|
from sourceSets.main.allJava
|
||||||
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
dists
|
dists
|
||||||
distLib {
|
distLib {
|
||||||
|
|
Loading…
Reference in New Issue