-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
40 lines (33 loc) · 1.05 KB
/
Copy pathbuild.gradle
File metadata and controls
40 lines (33 loc) · 1.05 KB
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
plugins {
id 'java'
id 'war'
id 'org.gretty' version '3.0.3'
id 'eclipse'
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
runtimeOnly 'org.slf4j:slf4j-simple:1.7.30'
implementation "org.apache.tapestry:tapestry-core:$tapestryVersion"
if (project.hasProperty("withWebresources")) {
runtimeOnly "org.apache.tapestry:tapestry-webresources:$tapestryVersion"
}
}
import org.akhikhl.gretty.AppStartTask
task('runProd', type: AppStartTask, dependsOn: 'prepareInplaceWebApp') {
systemProperty 'tapestry.production-mode', 'true'
}
task('runProdNoMini', type: AppStartTask, dependsOn: 'prepareInplaceWebApp') {
systemProperty 'tapestry.production-mode', 'true'
systemProperty 'tapestry.enable-minification', 'false'
}
task('runDev', type: AppStartTask, dependsOn: 'prepareInplaceWebApp') {
systemProperty 'tapestry.production-mode', 'false'
}
task('runDevWithMini', type: AppStartTask, dependsOn: 'prepareInplaceWebApp') {
systemProperty 'tapestry.production-mode', 'false'
systemProperty 'tapestry.enable-minification', 'true'
}