Skip to content
Newer
Older
100644 58 lines (48 sloc) 1.26 KB
7c3af2d @tomhermann Filled out controller for create/list
tomhermann authored Nov 25, 2011
1 apply plugin: 'war'
0d055ce @jamescarr first working example
authored Nov 25, 2011
2 apply plugin: 'jetty'
3 apply plugin: 'eclipse'
4 apply plugin: 'idea'
5
6 repositories {
7 mavenCentral()
8 }
9
c5013a0 @jamescarr changed artifact versions to use variables
authored Nov 26, 2011
10
0d055ce @jamescarr first working example
authored Nov 25, 2011
11 dependencies {
12 // dependencies for spring mvc
c5013a0 @jamescarr changed artifact versions to use variables
authored Nov 26, 2011
13 compile "org.springframework:spring-webmvc:$springVersion"
14 compile "org.springframework:spring-jdbc:$springVersion"
0d055ce @jamescarr first working example
authored Nov 25, 2011
15 compile 'cglib:cglib:2.2.2'
7c3af2d @tomhermann Filled out controller for create/list
tomhermann authored Nov 26, 2011
16
f6abfea @tomhermann Formatting, removed validation for simplicity
tomhermann authored Nov 25, 2011
17 // json support
7c3af2d @tomhermann Filled out controller for create/list
tomhermann authored Nov 26, 2011
18 compile 'org.codehaus.jackson:jackson-mapper-asl:1.8.3'
0d055ce @jamescarr first working example
authored Nov 25, 2011
19
20 // slf4j so we can have some awesome logging
21 compile "org.slf4j:jcl-over-slf4j:$slf4jVersion"
22 compile "org.slf4j:slf4j-log4j12:$slf4jVersion"
c5013a0 @jamescarr changed artifact versions to use variables
authored Nov 26, 2011
23 runtime "log4j:log4j:$log4jVersion"
7c3af2d @tomhermann Filled out controller for create/list
tomhermann authored Nov 26, 2011
24
0d055ce @jamescarr first working example
authored Nov 25, 2011
25 // runtime dependency on h2 so jetty can load it into jndi
c5013a0 @jamescarr changed artifact versions to use variables
authored Nov 26, 2011
26 providedRuntime "com.h2database:h2:$h2Version"
0d055ce @jamescarr first working example
authored Nov 25, 2011
27 providedRuntime 'commons-dbcp:commons-dbcp:1.4'
28 }
29
30 /**
31 * Build script depedency on h2 so that
32 * we can initialize the H2 server on startup
33 */
34 buildscript {
35 repositories {
36 mavenCentral()
37 }
38 dependencies {
c5013a0 @jamescarr changed artifact versions to use variables
authored Nov 26, 2011
39 classpath "com.h2database:h2:$h2Version"
0d055ce @jamescarr first working example
authored Nov 25, 2011
40 }
41 }
42
43 /**
44 * Configure jettyRun, jettyRunWar and jettyStop tasks.
45 */
46 [jettyRun, jettyRunWar,jettyStop]*.with {
47 jettyEnvXml = file('src/test/resources/jetty-env.xml')
48 httpPort = 8222
49 stopPort = 19742
50 }
51
52 /**
53 * Run the h2 server before jetty starts up
54 */
55 [jettyRun, jettyRunWar]*.doFirst {
56 org.h2.tools.Server.main()
57 }
Something went wrong with that request. Please try again.