This repository was archived by the owner on Jan 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
110 lines (89 loc) · 2.64 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
buildscript {
Properties versionProps = new Properties()
versionProps.load((InputStream) project.file("${projectDir}/versions.properties").newDataInputStream())
ext { versions = versionProps }
repositories {
mavenLocal()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:${versionProps.elasticsearch}"
}
}
plugins {
id 'java'
id 'com.github.hierynomus.license' version "0.15.0"
}
apply plugin: 'java'
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute project(':rest-api-spec') with module ("org.elasticsearch:rest-api-spec:${versions.elasticsearch}")
}
}
apply plugin: 'jacoco'
apply plugin: "com.github.hierynomus.license"
apply plugin: 'elasticsearch.esplugin'
group = 'org.elasticsearch.plugin'
description = 'Elasticsearch plugin for keyboard layout suggestions.'
version = "${versions.elasticsearch}"
license {
header = rootProject.file("HEADER.txt")
ext.year = Calendar.getInstance().get(Calendar.YEAR)
ext.developer = 'Nikolay Papakha'
ignoreFailures false
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
excludes([
"**/*.txt",
"**/*.csv",
"**/*.properties",
"**/*.xml",
"**/*.yml"
])
}
esplugin {
name 'keyboard-layout'
description project.description
version project.version
licenseFile project.file('LICENSE.txt')
noticeFile project.file('NOTICE.txt')
classname 'org.elasticsearch.plugin.KeyboardLayoutPlugin'
}
checkstyleTest.enabled = true
dependencyLicenses.enabled = true
thirdPartyAudit.enabled = true
testClusters.integTest {
numberOfNodes = 2
}
dependencyLicenses {
mapping from: /lucene-.*/, to: 'lucene'
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
task codeCoverageReport(type: JacocoReport) {
executionData fileTree(project.rootDir.absolutePath).include("clebuild/jacoco/*.exec")
sourceSets project.sourceSets.main
reports {
xml.enabled true
html.enabled true
csv.enabled false
}
}
codeCoverageReport.dependsOn {
project.test
}
dependencies {
compile "commons-codec:commons-codec:${versions.commonscodec}"
compile "org.apache.lucene:lucene-suggest:${versions.lucene}"
compile "org.apache.lucene:lucene-analyzers-phonetic:${versions.lucene}"
testCompile "junit:junit:4.12"
testCompile "org.hamcrest:hamcrest:2.1"
testCompile "org.assertj:assertj-core:3.10.0"
testCompile "org.elasticsearch.test:framework:${versions.elasticsearch}"
}