build.gradle 19.6 KB
Newer Older
1
2
// Plugin declaration

User expired's avatar
User expired committed
3
4
import org.apache.tools.ant.taskdefs.condition.Os

5
buildscript {
6
7
	apply from: 'https://dbis-owncloud.uibk.ac.at/index.php/s/VOI0J20KJtOrFA9/download?path=%2F&files=changelog.gradle'
	apply from: 'https://dbis-owncloud.uibk.ac.at/index.php/s/VOI0J20KJtOrFA9/download?path=%2F&files=checkstyle.gradle'
8
9
10
}

plugins {
11
	id 'com.github.johnrengelman.shadow' version '2.0.1'
12
	id 'com.kageiit.url-cache' version '1.0.0'
User expired's avatar
User expired committed
13
14
	id 'com.moowork.grunt' version '1.1.1'
	id 'com.moowork.node' version '1.1.1'
15
	id 'de.ploing.scmversion' version '0.6.6'
16
	id 'org.akhikhl.gretty' version '1.4.2'
User expired's avatar
User expired committed
17
	id 'org.asciidoctor.convert' version '1.5.3'
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
}

apply plugin: 'eclipse-wtp'
apply plugin: 'findbugs'
apply plugin: 'jacoco'
apply plugin: 'java'
apply plugin: 'jdepend'
apply plugin: 'maven-publish'
apply plugin: 'war'

// Basic settings

group = 'at.uibk.dbis'
sourceCompatibility=JavaVersion.VERSION_1_8
targetCompatibility=JavaVersion.VERSION_1_8

description = 'PhD project of Nikolaus Krismer (IsoMap WebUI)'

36
37
38
39
scmversion {
	releaseTagPattern = 'v([0-9.]*)'
}

40
ext {
41
42
43
	// The selenium drivers we want to use
	// drivers = ["firefox", "chrome", "phantomJS"]
	// drivers = ["chrome", "phantomJS"]
44
	drivers = ["firefox"]
45

46
	versionALPN = '8+'
47
	versionChromeDriver = '2.31'
48
49
50
51
	versionCommonsJCS = '+'
	versionCommonsMath = '+'
	versionConfigBuilder = '1+'
	versionEqualsverifier = '2+'
52
	versionFindbugs = '+'
53
	versionGeckoDriver = 'v0.18.0'
54
	versionGeoserverManager = '+'
55
	versionGeotools = '+'
56
	versionGhostDriver = '2.1.0'
57
	versionHttpClient = '+'
58
	versionIsochrone = project.version
59
60
61
	versionJAI = '+'
	versionJackson = '2.4+'
	versionJacksonGeojson = '1.5'
62
	versionJacoco = '0.7.9+'
63
	versionJersey = '2.25'
64
	versionJetty = '9+'
65
	versionLog4j = '2+'
66
	versionNpm = '5.3.0'
67
	versionNodeJs = '8.3.0'
68
	versionPhantomJs = '2.1.1'
User expired's avatar
User expired committed
69
	versionSelenium = '3.+'
User expired's avatar
User expired committed
70
	versionServletApi = '3.1.0'
71
72
	versionTestNG = '6+'
	versionTomcatWebsocket = '8+'
73
74
75
	versionWebsocketApi = '1.0'
}

76
77
apply from: "seleniumDriverDownloads.gradle"

78
gradle.taskGraph.whenReady {taskGraph ->
79
	println ((project.version.endsWith('-SNAPSHOT')) ? "Building SNAPSHOT version $version\n" : "Building RELEASE version $version\n");
80
81
}

82
// Repositories, Configurations, Dependencies and SourceSets setup
83
84
85

repositories {
	mavenCentral()
User expired's avatar
User expired committed
86
	jcenter()
87
	maven {
88
89
		// repo for latest version of jai-core (javax.media.jai:com.springsource.javax.media.jai.core:+)
		// also see https://issues.gradle.org/browse/GRADLE-2395
90
91
92
93
94
95
		url 'https://repo.gradle.org/gradle/plugins-releases'
	}
	maven {
		// repo for latest version of geotools
		url 'http://download.osgeo.org/webdav/geotools'
	}
96
97
98
99
	maven {
		// repo for slim jar dependencies (used by geotools)
        url 'http://mvn.slimjars.com'
    }
User expired's avatar
User expired committed
100
101
102
103
    maven {
		// for ghostdriver version >= 2.x
		url 'https://jitpack.io'
	}
104
105
106
107
	maven {
		// repo for geo-manager
		url 'http://maven.geo-solutions.it'
	}
108
109
110
	repositoryGroup.split(',').each{g ->
		// repo(s) for isochrone
		maven { url g.trim() }
111
112
113
	}
}

114
115
116
sourceSets {
	jetty {
		java {
117
118
119
120
			compileClasspath += main.output
			runtimeClasspath += main.output
		}
	}
121
122
	integration {
		java {
123
124
125
126
			compileClasspath += main.output
			runtimeClasspath += main.output
		}
	}
127
128
}

129
130
131
132
configurations {
	jettyCompile.extendsFrom compile
	jettyRuntime.extendsFrom runtime

133
134
	integrationCompile.extendsFrom compile
	integrationRuntime.extendsFrom runtime
135
136
}

137
138
dependencies {
	// use same version of "isochrone" dependency (as for this "isochrone-web" project)
139
	testCompile (group: 'at.uibk.dbis', name: 'isochrone', version: versionIsochrone, changing: true) {
140
141
142
143
144
145
		artifact {
			name = 'isochrone'
			classifier = 'testJar'
			type = 'jar'
		}
	}
146
	compile (group: 'at.uibk.dbis', name: 'isochrone', version: versionIsochrone, changing: true) {
147
148
149
150
151
152
		artifact {
			name = 'isochrone'
			type = 'jar'
		}
	}

153
154
155
156
157
158
159
160
161
162
163
164
165
	compile "de.grundid.opendatalab:geojson-jackson:${versionJacksonGeojson}"
	compile "com.fasterxml.jackson.core:jackson-core:${versionJackson}"
	compile "com.fasterxml.jackson.core:jackson-databind:${versionJackson}"
	compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${versionJackson}"
	compile "com.google.code.findbugs:annotations:${versionFindbugs}"
	compile "com.tngtech.java:config-builder:${versionConfigBuilder}"
	compile ("it.geosolutions:geoserver-manager:${versionGeoserverManager}") { exclude module: 'jcl-over-slf4j' }
	compile "javax.media.jai:com.springsource.javax.media.jai.core:${versionJAI}"
	compile "org.apache.commons:commons-jcs-core:${versionCommonsJCS}"
	compile "org.apache.commons:commons-math3:${versionCommonsMath}"
	compile "org.apache.logging.log4j:log4j-api:${versionLog4j}"
	compile ("org.geotools:gt-api:${versionGeotools}") { exclude module: 'jai_core' }
	compile ("org.geotools:gt-epsg-hsql:${versionGeotools}") { exclude module: 'jai_core' }
166
167
	compile "org.glassfish.jersey.containers:jersey-container-servlet:${versionJersey}"
	compile "org.glassfish.jersey.media:jersey-media-json-jackson:${versionJersey}"
168
169
170

	// provided dependencies (by jetty, tomcat or any other servlet container)

171
172
	providedCompile "javax.servlet:javax.servlet-api:${versionServletApi}"
	providedCompile "javax.websocket:javax.websocket-api:${versionWebsocketApi}"
173
	// adding tomcat-embed-websocket for integration testing (so gretty is able to allow websocket connections)
174
	providedCompile ("org.apache.tomcat.embed:tomcat-embed-websocket:${versionTomcatWebsocket}") { exclude module: 'tomcat-embed-core' }
175
176

	// dependencies for logging
177
178
179
180
181
	runtime "org.apache.logging.log4j:log4j-core:${versionLog4j}"
	runtime "org.apache.logging.log4j:log4j-jcl:${versionLog4j}"
	runtime "org.apache.logging.log4j:log4j-jul:${versionLog4j}"
	runtime "org.apache.logging.log4j:log4j-slf4j-impl:${versionLog4j}"
	runtime "org.apache.logging.log4j:log4j-web:${versionLog4j}"
182

183
	integrationCompile("com.github.detro:ghostdriver:${versionGhostDriver}") {
User expired's avatar
User expired committed
184
185
186
		// phantomjs driver pulls in a different selenium version
		transitive = false
	}
187
188
189
190
191
192
193
194
195
196
197
198
199
200
	integrationCompile "com.google.code.findbugs:annotations:${versionFindbugs}"
	integrationCompile "org.testng:testng:${versionTestNG}"
	integrationCompile "org.seleniumhq.selenium:selenium-chrome-driver:${versionSelenium}"
	integrationCompile "org.seleniumhq.selenium:selenium-firefox-driver:${versionSelenium}"
	integrationCompile "org.seleniumhq.selenium:selenium-support:${versionSelenium}"

	jettyCompile "org.eclipse.jetty.aggregate:jetty-all:${versionJetty}"
	jettyCompile "org.eclipse.jetty:jetty-alpn-server:${versionJetty}"
	//jettyCompile "org.eclipse.jetty.alpn:alpn-api:${versionALPN}"
	jettyCompile "org.mortbay.jetty.alpn:alpn-boot:${versionALPN}"

	testCompile "com.fasterxml.jackson.module:jackson-module-jsonSchema:${versionJackson}"
	testCompile "nl.jqno.equalsverifier:equalsverifier:${versionEqualsverifier}"
	testCompile "org.apache.httpcomponents:httpclient:${versionHttpClient}"
201
//	testCompile 'org.apache.jmeter:ApacheJMeter:2.+'
202
	testCompile "org.glassfish.jersey.core:jersey-client:${versionJersey}"
203
	testCompile "org.testng:testng:${versionTestNG}"
204
205
}

206
207
// Detailled settings (tasks, task configuration, ...)

208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
tasks.withType(JavaCompile) {
	// workaround for http://issues.gradle.org/browse/GRADLE-1230
	doFirst { println '' }

	// adds support for compiler warnings generation
	options.compilerArgs << '-Xlint:all,-processing'
}

asciidoctor {
	backend = 'html5'
	sourceDir = file('doc')
	outputDir = file("$buildDir/docs/asciidoctor")
}

checkstyle {
	ignoreFailures = true
	showViolations = false
}

eclipse {
	classpath {
229
		plusConfigurations += [configurations.jettyCompile, configurations.integrationCompile]
230
231

		file {
232
233
234
235
236
237
238
239
240
			// See: http://gradle.1045684.n5.nabble.com/Gradle-s-Eclipse-DSL-and-resolving-dependencies-to-workspace-projects-td4856525.html
			// See: http://stackoverflow.com/questions/17567312/missing-project-dependencies-in-eclipse
			// See: https://github.com/spring-projects/spring-webflow/blob/master/ide.gradle
			// See: http://issues.gradle.org/browse/GRADLE-1116
//			beforeMerged { cp ->
//				def toBeRemoved = cp.entries.findAll { it instanceof Library && ((Library) it).library.path.contains('at.uibk.dbis') }
//				cp.entries -= toBeRemoved
//			}

241
242
243
			// See: http://forums.gradle.org/gradle/topics/eclipse_wtp_deploys_testcode_to_server_example_provided
			// Sets output folders for compiled classes and resources... otherwise test classes/resources would be deployed to wtp server
			whenMerged { cp ->
244
				cp.entries.findAll { it.path.startsWith('src/jetty/') }*.output = 'bin-jetty'
245
246
				cp.entries.findAll { it.path.startsWith('src/main/') }*.output = 'bin'
				cp.entries.findAll { it.path.startsWith('src/test/') }*.output = 'bin-test'
247
				cp.entries.findAll { it.path.startsWith('src/integration/') }*.output = 'bin-integration'
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
				// Sets JavaSE as jdk version used (instead of version directly)
				cp.entries.findAll { it.path.contains('JRE_CONTAINER') }.each {
					it.path += '/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-' + sourceCompatibility
				}
			}

			// See: http://stackoverflow.com/questions/12836089/why-is-eclipse-not-attaching-3rd-party-libs-source-files-to-a-wtp-faceted-gradle
			// Changes eclipse classpath entries; otherwise no sources for 3rd party jars are shown
			withXml { xml ->
				def node = xml.asNode()
				node.remove( node.find { it.@path == 'org.eclipse.jst.j2ee.internal.web.container' } )
				node.appendNode( 'classpathentry', [ kind: 'con', path: 'org.eclipse.jst.j2ee.internal.web.container', exported: 'true'])
			}
		}
	}

	project {
		buildCommand 'net.sf.eclipsecs.core.CheckstyleBuilder'

		file {
			withXml { xmlProvider ->
				Node project = xmlProvider.asNode()
				Node filteredResources = project.appendNode('filteredResources');

				Node filterGradle = filteredResources.appendNode('filter')
				filterGradle.appendNode('id', 1392635165065)
				filterGradle.appendNode('name', '')
				filterGradle.appendNode('type', 10)
				Node matcherGradle = filterGradle.appendNode('matcher')
				matcherGradle.appendNode('id', 'org.eclipse.ui.ide.multiFilter')
				matcherGradle.appendNode('arguments', '1.0-name-matches-false-false-.gradle')

				Node filterNodeModules = filteredResources.appendNode('filter')
				filterNodeModules.appendNode('id', 1396275587572)
				filterNodeModules.appendNode('name', '')
				filterNodeModules.appendNode('type', 10)
				Node matcherNodeModules = filterNodeModules.appendNode('matcher')
				matcherNodeModules.appendNode('id', 'org.eclipse.ui.ide.multiFilter')
				matcherNodeModules.appendNode('arguments', '1.0-name-matches-false-false-node_modules')
			}
		}
289
290
291
292
293
294
295
296
297
298
299

		natures = [
			'net.sf.eclipsecs.core.CheckstyleNature',
			'org.springsource.ide.eclipse.gradle.core.nature',
			'org.eclipse.jem.workbench.JavaEMFNature',
			'org.eclipse.wst.common.modulecore.ModuleCoreNature',
			'org.eclipse.wst.common.project.facet.core.nature',
			'org.eclipse.jdt.core.javanature',
			'org.eclipse.wst.jsdt.core.jsNature'
		]

User expired's avatar
User expired committed
300
301
302
//		referencedProjects = [
//			'isochrone'
//		] as Set
303
304
305
306
307
308
	}

	wtp {
		component {
			contextPath = '/isochrone'
			deployName = 'isochrone'
User expired's avatar
User expired committed
309
			resource sourcePath: 'src/main/webapp', deployPath: '/'
310
311
312
		}

		facet {
User expired's avatar
User expired committed
313
			facet name: 'jst.web', version: '3.1'
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
			facet name: 'jst.java', version: sourceCompatibility
			facet name: 'wst.jsdt.web', version: '1.0'
		}
	}
}

findbugs {
	effort = 'max'
	ignoreFailures = true
	reportLevel = 'low'
	toolVersion = versionFindbugs
}

gretty {
	httpPort = 8090
	servicePort = 9010
	statusPort = 9011
331

332
	contextPath = '/isochrone'
333
	integrationTestTask = 'testIntegration'
334
335
336
337
338
339
340
	inplaceMode = 'hard'
	scanInterval = 0
	servletContainer = 'tomcat8'

	afterEvaluate {
		tasks.jettyBeforeIntegrationTest.jacoco {
			append = false
341
			destinationFile = new File(project.buildDir, 'jacoco/integrationTest_server.exec')
342
343
344
345
		}
	}
}

User expired's avatar
User expired committed
346
347
348
349
grunt {
	colors = true
}

350
351
352
353
jacoco {
	toolVersion = versionJacoco
}

354
355
356
357
javadoc {
	failOnError = false
}

358
359
node {
	download = true
User expired's avatar
User expired committed
360
361
	version = versionNodeJs
	npmVersion = versionNpm
362
363
}

364
365
366
367
npm_install {
  args = ['--no-optional']
}

368
tasks.withType(NpmTask) {
369
	args += ['--loglevel', 'warn']
370
371
372
373
374
375
}

publishing {
	publications {
		mavenJava(MavenPublication) {
			artifact javadocJar
376
			artifact jettyWar
377
			artifact sourcesJar
378
			artifact shadowJar
379
380
381
382
383
384
385
386
387
388
389
			artifact war
			artifact testWar
		}
	}

	repositories {
		maven {
			credentials {
				username repositoryUsername
				password repositoryPassword
			}
390
391
392
393
394
395

			if (project.version.endsWith('-SNAPSHOT')) {
				url repositorySnapshots
			} else {
				url repositoryReleases
			}
396
397
398
399
		}
	}
}

400
shadowJar {
401
402
	mergeServiceFiles()

403
404
405
	exclude '**/*-test.xml'
}

406
test {
407
	outputs.upToDateWhen { false }
408
409
410
411
	useTestNG {
		useDefaultListeners = true
	}

412
413
414
415
	testLogging {
		events 'started', 'passed', 'skipped', 'failed'
	}

416
417
418
419
420
	systemProperty 'log4j.configurationFile', "file:$projectDir/src/test/resources/log4j2-test.xml"
	ignoreFailures = true
	minHeapSize = '128m'
	maxHeapSize = '1024m'

421
422
	// turn off Gradle's HTML report to avoid replacing the reports generated by TestNG library:
	reports.html.enabled = false
423
	finalizedBy "cleanTestResults"
424
425
426
427
428
429
}

war {
	description = 'Build the war file for release (using the backend available at localhost)'

	rootSpec.exclude '**/*-test.xml'
430

431
	// exclude files that webpack compiles to folder "dist/"
432
	exclude("css")
433
434
435
436
	exclude("images")
	exclude("js")
	exclude("index_devel.html")
	exclude("index_template.html")
437
438
}

439
440
441
442
443
444
// Selenium test tasks

drivers.each { driver ->
	task "testIntegration${driver.capitalize()}"(type: Test) {
		outputs.upToDateWhen { false }

445
446
447
448
449
450
		// Download chromeDriver / phantomJsDriver
		if ("$driver" == "chrome") {
			dependsOn unzipChromeDriver

			def chromedriverFilename = Os.isFamily(Os.FAMILY_WINDOWS) ? "chromedriver.exe" : "chromedriver"
			systemProperty "webdriver.chrome.driver", new File(unzipChromeDriver.outputs.files.singleFile, chromedriverFilename).absolutePath
451
452
453
454
455
		} else if ("$driver" == "firefox") {
			dependsOn unzipGeckoDriver

			def geckodriverFilename = Os.isFamily(Os.FAMILY_WINDOWS) ? "geckodriver.exe" : "geckodriver"
			systemProperty "webdriver.gecko.driver", new File(unzipGeckoDriver.outputs.files.singleFile, geckodriverFilename).absolutePath
456
457
458
459
460
461
462
		} else if ("$driver" == "phantomJS") {
			dependsOn unzipPhantomJS

			def phantomJsFilename = Os.isFamily(Os.FAMILY_WINDOWS) ? "phantomjs.exe" : "bin/phantomjs"
			systemProperty "phantomjs.binary.path", new File(unzipPhantomJS.outputs.files.singleFile, phantomJsFilename).absolutePath
		}

463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
		useTestNG {
			useDefaultListeners = true
			outputDirectory = file("$buildDir/reports/integration/${driver}")
		}

		testLogging {
			events 'started', 'passed', 'skipped', 'failed'
		}

		jacoco {
			append = false
			destinationFile = new File(project.buildDir, "jacoco/integrationTest_client_${driver}.exec")
		}

		classpath = sourceSets.integration.runtimeClasspath
User expired's avatar
User expired committed
478
		testClassesDirs = sourceSets.integration.output.classesDirs
479
480
481
482
483

		ignoreFailures = true
		minHeapSize = '128m'
		maxHeapSize = '1024m'
		systemProperty "selenium.driver", driver
484
485
486

		// turn off Gradle's HTML report to avoid replacing the reports generated by TestNG library:
		reports.html.enabled = false
487
488
489
	}
}

490
491
492
493
// Custom task definitions

task checkJavascript(dependsOn: grunt_check)

494
task cleanGeneratedBuildFiles(type: Delete) {
495
	delete "$buildDir/dependency-cache"
496
497
498
499
500
	delete "$buildDir/tmp"
	delete "$buildDir/webapp"
	delete '.gradle'
}

501
task cleanJavascript(type: Delete) {
502
503
504
505
	delete 'src/main/webapp/dist'
	delete 'src/main/webapp/index.html'
	delete 'src/main/webapp/index_devel.html'
	delete 'src/main/webapp/index_noMin.html'
User expired's avatar
User expired committed
506
507
}

508
509
510
511
task cleanNodeModules(type: Delete) {
	delete files('node_modules')
}

512
513
514
515
516
task cleanTestResults(type: Delete) {
	// We only need the test reports... not the binary results
	delete project.testResultsDir
}

517
task compileJavascript(type: GruntTask, dependsOn: [installGrunt, grunt_webpackDist, grunt_webpackNoMin, grunt_webpackSelenium]) {
518
	outputs.upToDateWhen { false }
519
	args = ["replaceVersionAndCompress:$versionIsochrone"]
520
521
522
523
}

task docJavascript(dependsOn: grunt_doc)

524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
task javadocJar(type: Jar, dependsOn: javadoc) {
	description = 'Builds a jar file including javadoc'
	from javadoc.destinationDir

	classifier 'javadoc'
}

task javascriptServerKarma(type: GruntTask) {
	outputs.upToDateWhen { false }
	args = ["testServer"]
}

task javascriptServerWebpack(type: GruntTask, dependsOn: [grunt_webpackDevelopment]) {
	outputs.upToDateWhen { false }
	args = ["webpackDevServer"]
}

541
task jettyWar(type: War) {
542
543
544
545
546
547
548
549
550
	from sourceSets.main.output
	from sourceSets.jetty.output
	from { configurations.jettyCompile.collect { it.isDirectory() ? it : zipTree(it) } }

	classifier = 'executable'
	exclude('**/META-INF/*.SF', '**/META-INF/*.RSA', '**/META-INF/*.DSA')
	manifest {
		attributes 'Main-Class': 'at.uibk.dbis.isomap.web.JettyServer'
	}
551
552

	// exclude files that webpack compiles to folder "dist/"
553
	exclude("css")
554
555
556
557
	exclude("images")
	exclude("js")
	exclude("index_devel.html")
	exclude("index_template.html")
558
}
559

560
task runEmbeddedJetty(type: JavaExec) {
User expired's avatar
User expired committed
561
562
563
564
565
566
567
568
569
570
571
572
	doFirst {
		// find alpn-boot jar file path
		def alpnBootJar
		sourceSets.jetty.runtimeClasspath.each { jar ->
			if (jar.path.contains("alpn-boot")) {
				alpnBootJar = jar
			}
		}

		jvmArgs = ['-Xbootclasspath/p:' + alpnBootJar]
	}

573
574
575
576
	classpath = sourceSets.jetty.runtimeClasspath
	main = 'at.uibk.dbis.isomap.web.JettyServer'
}

577
578
579
580
581
582
583
task sourcesJar(type: Jar, dependsOn: classes) {
	description = 'Builds a jar file including sources'
	from sourceSets.main.allSource

	classifier 'sources'
}

584
585
586
587
task testIntegration(type: Test) {
	dependsOn drivers.collect { tasks["testIntegration${it.capitalize()}"] }
}

588
589
task testJavascript(type: GruntTask) {
	outputs.upToDateWhen { false }
590
	args = ["test", "--force"]
591
}
592

593
task testWar(type: War, dependsOn: classes) {
594
	description = 'Builds the war file for testing'
595

596
	classpath = sourceSets.main.output + sourceSets.test.resources + project.configurations.runtime - project.configurations.providedRuntime
597
598
	classifier = 'test'

599
	// exclude files that webpack compiles to folder "dist/"
600
	exclude("css")
601
602
603
604
	exclude("images")
	exclude("js")
	exclude("index_devel.html")
	exclude("index_template.html")
605
606
607
608
}

// CI tasks

609
task jarAll(dependsOn: [jar, javadocJar, sourcesJar, shadowJar])
610
task warAll(dependsOn: [jettyWar, war, testWar])
611
task buildAll(dependsOn: [jarAll, warAll, build])
612
task daily(dependsOn: [asciidoctor, commitChangelog, check, javadoc, docJavascript, jarAll, warAll])
613
614
615
616

// task dependencies

tasks.check.dependsOn checkJavascript
617
tasks.check.dependsOn testIntegration
618
tasks.check.dependsOn testJavascript
619
tasks.clean.dependsOn cleanJavascript
620
621
tasks.cleanGeneratedBuildFiles.dependsOn cleanNodeModules
tasks.cleanJavascript.dependsOn cleanGeneratedBuildFiles
622
623
tasks.compileJava.dependsOn compileJavascript
tasks.daily.mustRunAfter clean
User expired's avatar
User expired committed
624
tasks.grunt_check.args = ["check", "--force"]
625
626
627
tasks.grunt_check.dependsOn installGrunt
tasks.grunt_compile.dependsOn installGrunt
tasks.grunt_doc.dependsOn installGrunt
628
629
630
631
632
633
634
635
tasks.grunt_test.dependsOn installGrunt
tasks.grunt_testServer.dependsOn installGrunt
tasks.grunt_webpackSelenium.dependsOn installGrunt
tasks.grunt_webpackDevelopment.dependsOn installGrunt
tasks.grunt_webpackDist.dependsOn installGrunt
tasks.grunt_webpackNoMin.dependsOn installGrunt
tasks.grunt_webpackDevServer.dependsOn installGrunt
tasks.grunt_webpackDevServer.mustRunAfter grunt_webpackDevelopment
636
tasks.installGrunt.dependsOn npmInstall
637
tasks.testJavascript.dependsOn installGrunt