-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (60 loc) · 1.94 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
buildscript {
repositories {
maven {
url = 'https://snapshots.elastic.co/maven/'
}
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:${elasticsearchVersion}"
}
}
import org.elasticsearch.gradle.VersionProperties
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'idea'
apply plugin: 'elasticsearch.yaml-rest-test'
apply plugin: 'elasticsearch.esplugin'
esplugin {
name 'analysis-ictclas'
description 'NLPIR-ICTCLAS Analysis Plugin for Elasticsearch'
classname 'com.lingjoin.elasticsearch.index.IctclasAnalysisPlugin'
licenseFile rootProject.file('LICENSE')
noticeFile rootProject.file('NOTICE.txt')
}
group 'com.lingjoin'
version '0.2.6'
java {
withSourcesJar()
withJavadocJar()
sourceCompatibility = 17
targetCompatibility = 17
}
repositories {
maven {
url = 'https://snapshots.elastic.co/maven/'
}
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
testImplementation "org.apache.logging.log4j:log4j-core:${VersionProperties.versions.log4j}"
yamlRestTestRuntimeOnly "org.apache.logging.log4j:log4j-core:${VersionProperties.versions.log4j}"
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
implementation "com.fasterxml.jackson.core:jackson-databind:${VersionProperties.versions.jackson}"
// https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-yaml
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${VersionProperties.versions.jackson}"
}
tasks.named("processTestResources").configure {
from("src/main/packaging") {
into("plugins/${esplugin.name}")
}
}
tasks.findAll { task ->
{
if (task.hasProperty('options.encoding')) {
task.options.encoding = "UTF-8"
}
}
}