-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
42 lines (36 loc) · 1.06 KB
/
build.gradle
File metadata and controls
42 lines (36 loc) · 1.06 KB
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
buildscript {
repositories {
maven {
url = 'https://snapshots.elastic.co/maven/'
}
mavenCentral()
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:${pluginApiVersion}"
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'elasticsearch.esplugin'
// 生成 plugin-descriptor.properties
esplugin {
name 'analysis-hanlp'
description 'HanLP Analyzer for Elasticsearch'
classname 'org.elasticsearch.plugin.analysis.hanlp.AnalysisHanLPPlugin'
}
group 'org.elasticsearch'
version "${pluginApiVersion}"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation "com.hankcs:hanlp:portable-1.8.4"
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
}
assemble {
doLast {
file("build/distributions/analysis-hanlp-${pluginApiVersion}.zip").renameTo(file("build/distributions/elasticsearch-analysis-hanlp-${pluginApiVersion}.zip"))
ant.checksum file: "build/distributions/elasticsearch-analysis-hanlp-${pluginApiVersion}.zip"
}
}