-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·112 lines (102 loc) · 3.71 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
111
112
plugins {
id 'org.springframework.boot' version '2.7.17'
id 'com.adarshr.test-logger' version '2.1.0'
id 'groovy'
}
apply plugin: 'groovy'
apply plugin: 'io.spring.dependency-management'
group = 'org.cugos'
version = '0.8.0'
sourceCompatibility = '11'
jar {
baseName = 'mbtilesserver'
}
bootRun {
if ( project.hasProperty('args') ) {
args project.args.split('\\s+')
} else {
args "--file=countries.mbtiles"
}
}
sourceSets {
e2e {
groovy.srcDir file('src/e2e/groovy')
resources.srcDir file('src/e2e/resources')
compileClasspath += sourceSets.main.output + configurations.testRuntime
runtimeClasspath += output + compileClasspath + configurations.e2eRuntime
}
}
task e2e(type: Test) {
systemProperty "webdriver.chrome.driver", System.getProperty("webdriver.chrome.driver")
systemProperty "webdriver.gecko.driver", System.getProperty("webdriver.gecko.driver")
testClassesDirs = sourceSets.e2e.output.classesDirs
classpath = sourceSets.e2e.runtimeClasspath
}
repositories {
maven {
url "https://repo.osgeo.org/repository/release"
}
maven {
url "https://repo.osgeo.org/repository/snapshot"
}
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.apache.groovy:groovy'
implementation 'com.twelvemonkeys.imageio:imageio-jpeg:3.10.0'
implementation("org.geoscript:geoscript-groovy:1.21.0") {
exclude module: "gt-shapefile"
exclude module: "gt-jdbc-postgis"
exclude module: "gt-jdbc-h2"
exclude module: "gt-jdbc-mysql"
exclude module: "gt-jdbc-spatialite"
exclude module: "gt-netcdf"
exclude module: "java-vector-tile"
exclude module: "gt-charts"
exclude module: "gt-brewer"
exclude module: "gt-svg"
exclude module: "gt-swing"
exclude module: "gt-css"
exclude module: "gt-geotiff"
exclude module: "gt-image"
exclude module: "gt-imagemosaic"
exclude module: "gt-arcgrid"
exclude module: "gt-grassraster"
exclude module: "gt-gtopo30"
exclude module: "gt-imagepyramid"
exclude module: "gt-imageio-ext-gdal"
exclude module: "gt-wms"
exclude module: "jt-jiffleop"
exclude module: "jt-jiffle-language"
exclude module: "gt-xsd-wfs"
exclude module: "gt-wfs-ng"
exclude module: "gt-property"
exclude module: "gt-geojson"
exclude module: "gt-process"
exclude module: "gt-process-feature"
exclude module: "gt-process-geometry"
exclude module: "gt-process-raster"
exclude module: "gt-xsd-kml"
exclude module: "gt-ysld"
exclude module: "gt-transform"
exclude module: "gt-geopkg"
exclude module: "gt-grid"
exclude module: "gdal"
exclude module: "gt-ogr-jni"
}
implementation "io.springfox:springfox-swagger2:2.9.2"
implementation "io.springfox:springfox-swagger-ui:2.9.2"
testImplementation("junit:junit")
testImplementation 'org.springframework.boot:spring-boot-starter-test'
e2eRuntime configurations.testRuntime
e2eImplementation sourceSets.main.output
e2eImplementation configurations.testImplementation
e2eImplementation sourceSets.test.output
e2eImplementation "org.seleniumhq.selenium:selenium-java"
e2eImplementation "org.seleniumhq.selenium:selenium-chrome-driver"
e2eImplementation "org.seleniumhq.selenium:selenium-firefox-driver"
e2eImplementation "org.seleniumhq.selenium:selenium-support"
e2eImplementation 'com.google.code.gson:gson:2.8.5'
}