-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
55 lines (45 loc) · 1.34 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
buildscript {
repositories {
mavenCentral()
maven {
name 'sonatype-snapshots'
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
jcenter()
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:${elasticsearch_version}"
}
}
group 'org.elasticsearch.plugin'
version '1.0'
apply plugin: 'elasticsearch.esplugin'
apply plugin: 'idea'
esplugin {
description 'Example plugin with fixture'
classname 'org.elasticsearch.plugin.example.ExamplePlugin'
// does not work as expected
// licenseFile rootProject.file('LICENSE')
// noticeFile rootProject.file('NOTICE')
}
// required for Elasticsearch 5.6+
project.licenseFile = project.rootProject.file('LICENSE')
project.noticeFile = project.rootProject.file('NOTICE')
test.enabled = false
licenseHeaders.enabled = false
configurations {
exampleFixture
}
dependencies {
exampleFixture project(':test:fixtures:example-fixture')
}
task exampleFixture(type: org.elasticsearch.gradle.test.AntFixture) {
dependsOn project.configurations.exampleFixture
executable = new File(project.javaHome, 'bin/java')
args '-cp', "${ -> project.configurations.exampleFixture.asPath }",
'example.ExampleFixture',
baseDir
}
integTestCluster {
dependsOn exampleFixture
}