-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
59 lines (48 loc) · 1.32 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
buildscript {
ext {
elasticserachVersion = '6.4.2'
hanlpVersion = '1.6.8'
}
repositories {
mavenLocal()
maven { url = 'http://maven.aliyun.com/nexus/content/groups/public/' }
mavenCentral()
jcenter()
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:$elasticserachVersion"
}
}
group = 'io.shike'
version = '6.4.2'
repositories {
mavenCentral()
jcenter()
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'elasticsearch.esplugin'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
licenseFile = rootProject.file('LICENSE.txt')
noticeFile = rootProject.file('NOTICE.txt')
esplugin {
// license of the plugin, may be different than the above license
licenseFile = rootProject.file('LICENSE.txt')
// copyright notices, may be different than the above notice
noticeFile = rootProject.file('NOTICE.txt')
name = 'analysis-hanlp'
description = 'HanLP Analyzer for Elasticserach'
classname = 'org.elasticsearch.plugin.analysis.AnalysisHanLPPlugin'
}
dependencies {
compile files("libs/hanlp-1.6.8.jar")
}
dependencyLicenses {
mapping from: 'licenses/lucene-.*/', to: 'lucene'
}
bundlePlugin {
from('config/hanlp.properties') {
into('config')
}
}