forked from Esri/arcgis-maps-sdk-java-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (43 loc) · 1.26 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
apply plugin: 'application'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'com.esri.arcgisruntime.java'
buildscript {
repositories {
maven {
url 'https://esri.bintray.com/arcgis'
}
}
dependencies {
classpath 'com.esri.arcgisruntime:gradle-arcgis-java-plugin:1.0.0'
}
}
arcgis.version = '100.2.1'
idea.module.downloadJavadoc = true
eclipse.classpath.downloadJavadoc = true
compileJava.options.encoding = 'UTF-8'
dependencies {
compile 'commons-io:commons-io:2.4'
compile 'org.jooq:joox:1.4.0'
}
task downloadData {
description = "Downloads data from AGOL for samples with offline data"
def rootDir = "./"
def dataZip = rootDir + 'data.zip'
def samplesData = rootDir + 'samples-data'
if (!file(samplesData).exists()) {
ant.get(src: 'https://arcgisruntime.maps.arcgis' +
'.com/sharing/rest/content/items/8b10b52320464b1bb728e552cfa6cb50/data', dest: dataZip)
copy {
from zipTree(dataZip)
into(rootDir)
}
delete(dataZip)
}
}
run {
mainClassName = project.hasProperty("mainClass") ? mainClass : 'com.esri.samples.map.display_map.DisplayMapSample'
}
task wrapper(type: Wrapper) {
gradleVersion = '4.3.1'
}