-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
73 lines (63 loc) · 1.64 KB
/
build.gradle
File metadata and controls
73 lines (63 loc) · 1.64 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
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
buildscript {
ext {
elasticVersion = '9.2.4'
luceneVersion = '10.2.2'
log4jVersion = '2.25.1'
}
repositories {
mavenCentral()
maven { url 'https://artifacts.elastic.co/maven' }
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:${elasticVersion}"
}
}
apply plugin: 'java-library'
apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.yaml-rest-test'
group = 'org.es'
version = '1.0.0'
allprojects {
group = rootProject.group
version = rootProject.version
repositories {
mavenCentral()
maven { url 'https://artifacts.elastic.co/maven' }
}
}
esplugin {
name = 'es_tok'
description = 'ES-TOK plugin'
classname = 'org.es.tok.EsTokPlugin'
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/main/resources']
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources', 'testing']
}
}
}
dependencies {
implementation project(':core')
testImplementation("junit:junit:4.13.2") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testImplementation "org.apache.lucene:lucene-test-framework:${luceneVersion}"
testImplementation "org.apache.lucene:lucene-analysis-common:${luceneVersion}"
yamlRestTestRuntimeOnly "org.apache.logging.log4j:log4j-core:${log4jVersion}"
}
task testRunner(type: JavaExec) {
classpath = sourceSets.test.runtimeClasspath
mainClass = 'org.es.tok.TestRunner'
}