|
1 |
| -Properties props = new Properties() |
2 |
| -props.load(project.file('gradle.properties').newDataInputStream()) |
3 |
| -def elasticVersion = props.getProperty('elasticVersion') |
4 |
| -def pluginVersion = props.getProperty('pluginVersion') |
5 |
| - |
6 | 1 | buildscript {
|
7 |
| - Properties props = new Properties() |
8 |
| - props.load(project.file('gradle.properties').newDataInputStream()) |
9 |
| - def elasticVersion = props.getProperty('elasticVersion') |
10 | 2 | repositories {
|
11 | 3 | mavenLocal()
|
12 | 4 | mavenCentral()
|
13 | 5 | jcenter()
|
14 | 6 | }
|
15 | 7 |
|
16 | 8 | dependencies {
|
17 |
| - classpath "org.elasticsearch.gradle:build-tools:${elasticVersion}" |
| 9 | + classpath "org.elasticsearch.gradle:build-tools:${es_version}" |
18 | 10 | }
|
19 | 11 | }
|
20 | 12 |
|
21 | 13 | group = 'org.elasticsearch.plugin'
|
22 |
| -version = pluginVersion |
| 14 | +version = "${plugin_version}" |
23 | 15 |
|
24 | 16 | apply plugin: 'java'
|
25 | 17 | apply plugin: 'idea'
|
26 | 18 | apply plugin: 'elasticsearch.esplugin'
|
27 | 19 |
|
| 20 | +// license of this project |
| 21 | +licenseFile = rootProject.file('LICENSE') |
| 22 | +noticeFile = rootProject.file('README.md') |
| 23 | + |
| 24 | + |
28 | 25 | esplugin {
|
29 | 26 | name 'pathhierarchy-aggregation'
|
30 | 27 | description 'Return a path hierarchy aggregation'
|
31 | 28 | classname 'org.opendatasoft.elasticsearch.plugin.PathHierarchyAggregation'
|
32 | 29 | licenseFile = rootProject.file('LICENSE')
|
| 30 | + noticeFile = rootProject.file('README.md') |
33 | 31 | }
|
34 | 32 |
|
35 | 33 | dependencies {
|
36 |
| - compile "org.elasticsearch:elasticsearch:${elasticVersion}" |
37 |
| - testCompile "org.elasticsearch.test:framework:${elasticVersion}" |
| 34 | + compile "org.elasticsearch:elasticsearch:${es_version}" |
38 | 35 | }
|
39 | 36 |
|
40 |
| -test.enabled = true |
41 |
| - |
42 | 37 | // Skip license headers check
|
43 | 38 | licenseHeaders.enabled = false
|
44 | 39 |
|
45 | 40 | // Use elasticsearch checkstyle rules
|
46 | 41 | checkstyleTest.enabled = true
|
47 | 42 |
|
48 |
| -licenseFile = rootProject.file('LICENSE') |
49 |
| -noticeFile = rootProject.file('README.md') |
50 | 43 | dependencyLicenses.enabled = true
|
51 | 44 |
|
52 | 45 | thirdPartyAudit.enabled = true
|
0 commit comments