2015-06-13 18:46:54 -04:00
|
|
|
group 'org.bspeice'
|
|
|
|
version '1.0-SNAPSHOT'
|
2015-06-28 19:21:28 -04:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.1'
|
|
|
|
}
|
|
|
|
}
|
2015-06-13 18:46:54 -04:00
|
|
|
|
|
|
|
apply plugin: 'java'
|
2015-06-28 19:21:28 -04:00
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
2015-06-13 18:46:54 -04:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2014-04-30 22:27:35 -04:00
|
|
|
}
|
|
|
|
|
2015-06-13 18:46:54 -04:00
|
|
|
task mergeSources(type: Copy) {
|
2015-06-28 19:21:28 -04:00
|
|
|
from 'jsword/src/main/java', 'src/stage/java'
|
2015-06-13 18:46:54 -04:00
|
|
|
into 'src/main/java'
|
|
|
|
}
|
|
|
|
|
|
|
|
task mergeResources(type: Copy) {
|
2015-06-28 19:21:28 -04:00
|
|
|
from 'jsword/src/main/resources', 'src/stage/resources'
|
2015-06-13 18:46:54 -04:00
|
|
|
into 'src/main/resources'
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.compileJava.dependsOn(mergeSources)
|
2015-06-28 19:21:28 -04:00
|
|
|
tasks.compileJava.dependsOn(mergeResources)
|
2015-06-13 18:46:54 -04:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile 'commons-net:commons-net:3.3'
|
|
|
|
compile 'org.apache.commons:commons-compress:1.7'
|
|
|
|
compile 'org.apache.httpcomponents:httpcore:4.3.2'
|
|
|
|
compile 'org.apache.httpcomponents:httpclient:4.3.2'
|
|
|
|
compile 'org.slf4j:slf4j-api:1.7.6'
|
|
|
|
compile 'org.jdom:jdom2:2.0.5'
|
|
|
|
compile 'org.apache.lucene:lucene-core:3.0.3'
|
|
|
|
compile 'org.apache.lucene:lucene-analyzers:3.0.3'
|
|
|
|
compile 'org.apache.lucene:lucene-snowball:3.0.3'
|
|
|
|
compile 'org.apache.lucene:lucene-smartcn:3.0.3'
|
|
|
|
|
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.11'
|
2014-04-30 22:27:35 -04:00
|
|
|
}
|
2015-06-28 19:21:28 -04:00
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
|
|
|
include(dependency('org.apache.httpcomponents:httpclient:4.3.2'))
|
|
|
|
}
|
|
|
|
relocate 'org.apache.http', 'org.apache.shaded.http'
|
|
|
|
}
|