-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
47 lines (43 loc) · 1.83 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
plugins {
id 'idea'
}
allprojects {
version = '0.0.1'
group = 'com.github.zhurlik'
}
subprojects {
if (project.name in ['kibana-server', 'elasticsearch-server']) {
switch (org.gradle.internal.os.OperatingSystem.current()) {
case org.gradle.internal.os.OperatingSystem.LINUX:
// https://artifacts.elastic.co/downloads/kibana/kibana-7.10.1-linux-x86_64.tar.gz
// https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.1-linux-x86_64.tar.gz
project.ext.platform = "linux-x86_64";
project.ext.extension = 'tar.gz'
break;
case org.gradle.internal.os.OperatingSystem.MAC_OS:
// https://artifacts.elastic.co/downloads/kibana/kibana-7.10.1-darwin-x86_64.tar.gz
// https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.1-darwin-x86_64.tar.gz
project.ext.platform = "darwin-x86_64";
project.ext.extension= 'tar.gz'
break;
case org.gradle.internal.os.OperatingSystem.WINDOWS:
// https://artifacts.elastic.co/downloads/kibana/kibana-7.10.1-windows-x86_64.zip
// https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.1-windows-x86_64.zip
project.ext.platform = "windows-x86_64";
project.ext.extension = 'zip'
break;
}
repositories {
ivy {
url "https://artifacts.elastic.co/downloads/"
patternLayout {
artifact "[organisation]/[organisation]-[revision]-[module].[ext]"
}
metadataSources {
artifact()
ignoreGradleMetadataRedirection()
}
}
}
}
}