forked from o19s/elasticsearch-learning-to-rank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (69 loc) · 2.28 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
buildscript {
repositories {
mavenCentral()
jcenter()
mavenLocal()
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:7.3.1"
}
}
group = 'com.o19s'
version = '1.1.2-es7.3.1'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'elasticsearch.esplugin'
// this is temporal and will be fixed in 6.0
ext.projectSubstitutions = [:]
// license of this project
licenseFile = rootProject.file('LICENSE.txt')
// copyright notices
noticeFile = rootProject.file('NOTICE.txt')
esplugin {
name 'ltr'
description 'Learning to Rank Query w/ RankLib Models'
classname 'com.o19s.es.ltr.LtrQueryParserPlugin'
// license of this project
licenseFile = rootProject.file('LICENSE.txt')
// copyright notices
noticeFile = rootProject.file('NOTICE.txt')
}
// In this section you declare the dependencies for your production and test code
// Note, the two dependencies are not really needed as the buildscript dependency gets them in already
// they are just here as an example
repositories {
mavenCentral()
mavenLocal()
jcenter()
}
dependencies {
compile "org.apache.lucene:lucene-expressions:8.1.0"
compile 'org.antlr:antlr4-runtime:4.5.1-1'
compile 'org.ow2.asm:asm:5.0.4'
compile 'org.ow2.asm:asm-commons:5.0.4'
compile 'org.ow2.asm:asm-tree:5.0.4'
compile 'org.elasticsearch:elasticsearch:7.3.1'
compile 'com.o19s:RankyMcRankFace:0.1.1'
compile "com.github.spullara.mustache.java:compiler:0.9.3"
testCompile 'org.elasticsearch.test:framework:7.3.1'
}
dependencyLicenses {
mapping from: /lucene-.*/, to: 'lucene'
mapping from: /asm-.*/, to: 'asm'
mapping from: /Ranky-.*/, to: 'lucene'
mapping from: /compiler-.*/, to: 'lucene'
}
// https://github.com/elastic/elasticsearch/issues/45891#issuecomment-525399411
configurations.restSpec.withDependencies { dependencies ->
dependencies.clear()
dependencies.add(project.dependencies.create("org.elasticsearch:rest-api-spec:7.3.1"))
}
// Set to false to not use elasticsearch checkstyle rules
checkstyleMain.enabled = true
checkstyleTest.enabled = true
// FIXME dependency license check needs to be enabled
dependencyLicenses.enabled = false
// FIXME thirdparty audit needs to be enabled
thirdPartyAudit.enabled = false
// Uncomment this to skip license header checks
licenseHeaders.enabled = false