forked from sing1ee/elasticsearch-jieba-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
75 lines (67 loc) · 1.98 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'zhangcheng' at '17-1-17 下午8:18' with Gradle 2.10
*
* This generated file contains a commented-out sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at https://docs.gradle.org/2.10/userguide/tutorial_java_projects.html
*/
group 'org.elasticsearch'
version = '6.6.1'
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
jcenter()
}
sourceSets {
main {
java {
srcDir "src/main/java"
}
resources {
srcDir "src/main/resources"
srcDir "src/main/assemblies"
srcDir "src/main/dic"
include "**/*"
}
}
}
task initSourceFolders {
sourceSets*.java.srcDirs*.each { it.mkdirs() }
sourceSets*.resources.srcDirs*.each { it.mkdirs() }
}
configurations {
wagon
distJars {
extendsFrom runtime
exclude group: 'org.elasticsearch'
exclude group: 'lucene-core'
exclude group: 'org.apache.logging.log4j'
exclude group: 'lucene-analyzers-common'
exclude group: 'org.apache.commons'
}
}
dependencies {
compile 'com.huaban:jieba-analysis:1.0.2'
compile 'org.elasticsearch:elasticsearch:6.6.1'
compile 'org.apache.logging.log4j:log4j-api:2.7'
compile 'org.apache.logging.log4j:log4j-core:2.7'
testCompile 'junit:junit:4.12'
}
task pz(type: Zip, dependsOn: [':jar']) {
into(".") {
from configurations.distJars
from 'build/libs'
from 'build/resources/main/plugin.xml'
from 'build/resources/main/plugin-descriptor.properties'
}
from('build/resources/main/') {
include '**.dict'
include '**.txt'
into ('dic')
}
}