-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgretty.gradle
50 lines (40 loc) · 1.54 KB
/
gretty.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
// Gretty uses jetty7 as it only needs jdk1.6 but JDK8/9 may need jetty8 or jetty9 in line 41
// This gradle script allows us to test the website b4 we bother to upload to PaaS; browser address will be: localhost:8080
// cd /Users/jim/Dropbox/Project/Toolkit/build/libs
// gradlew -b gretty.gradle appRun
apply plugin: 'war'
apply plugin: 'org.akhikhl.gretty'
defaultTasks 'appRunWar' // or 'appRun'
buildscript {
repositories {
mavenLocal()
jcenter()
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' }
}
dependencies {
classpath "org.akhikhl.gretty:gretty:1.2.4"
}
}
repositories {
mavenLocal()
jcenter()
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' }
}
dependencies {
compile "org.codehaus.groovy:groovy-all:2.4.8"
runtime "org.jruby:jruby-complete:1.7.21"
runtime "com.beust:jcommander:1.48"
runtime "org.asciidoctor:asciidoctorj:1.5.4.1"
//runtime "redis.clients:jedis:2.7.2" // runtime failure if not included
}
gretty {
// Possible servletContainer values are 'jetty7', 'jetty8', 'jetty9', 'tomcat7', 'tomcat8'. Default is 'jetty9'.
servletContainer = 'jetty7' // using jetty7 cos i only have JDK1.6+ and cannot upgrade to 1.7; if you have 1.7 you can try tomcat7
scanInterval = 4 // gretty reviews all files within this project folder every xx sec.s e.g. 18 sec.s
contextPath = '/' // root path for the container
// httpsEnabled = true // not used yet
}
war {
archiveName 'Toolkit.war'
from 'src/main/resources' // adds a file-set to the root of the archive
}