-
Notifications
You must be signed in to change notification settings - Fork 369
/
build.gradle
89 lines (76 loc) · 2.38 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:${elasticsearchVersion}"
}
}
allprojects {
group = 'com.o19s'
version = "${ltrVersion}-es${elasticsearchVersion}"
apply plugin: 'java'
repositories {
mavenCentral()
jcenter()
mavenLocal()
gradlePluginPortal()
}
dependencies {
implementation "org.apache.lucene:lucene-expressions:${luceneVersion}"
implementation "org.antlr:antlr4-runtime:${antlrVersion}"
implementation "org.ow2.asm:asm:${ow2Version}"
implementation "org.ow2.asm:asm-commons:${ow2Version}"
implementation "org.ow2.asm:asm-tree:${ow2Version}"
implementation 'com.o19s:RankyMcRankFace:0.1.1'
implementation "com.github.spullara.mustache.java:compiler:0.9.3"
runtimeOnly 'org.locationtech.spatial4j:spatial4j:0.7'
runtimeOnly 'org.locationtech.jts:jts-core:1.15.0'
}
}
apply plugin: 'checkstyle'
apply plugin: 'idea'
apply plugin: 'elasticsearch.esplugin'
apply plugin: 'elasticsearch.java-rest-test'
apply plugin: 'elasticsearch.yaml-rest-test'
checkstyle {
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
}
sourceSets {
javaRestTest {
compileClasspath += sourceSets["main"].output + sourceSets["test"].output + configurations["testRuntimeClasspath"]
runtimeClasspath += output + compileClasspath
}
yamlRestTest {
compileClasspath += sourceSets["main"].output + sourceSets["test"].output + configurations["testRuntimeClasspath"]
runtimeClasspath += output + compileClasspath
}
}
esplugin {
name 'ltr'
description 'Learning to Rank Query w/ RankLib Models'
classname 'com.o19s.es.ltr.LtrQueryParserPlugin'
// 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')
}
// In this section you declare the dependencies for your production and test code
// Elasticsearch dependency is included due to the build-tools, test-framework as well
repositories {
mavenCentral()
mavenLocal()
jcenter {
url "https://jcenter.bintray.com/"
metadataSources{
artifact()
}
}
}
java {
withJavadocJar()
withSourcesJar()
}
// Set to false to not use elasticsearch checkstyle rules
checkstyleMain.enabled = true
checkstyleTest.enabled = true