Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Simplify and comment build.gradle

  • Loading branch information...
commit d977d7fe026d64d90f3d9ca120e88ed1c09d5b22 1 parent abe8714
Sean Gilligan authored

Showing 1 changed file with 7 additions and 24 deletions. Show diff stats Hide diff stats

  1. +7 24 sitemesh-examples-gradle-hello/build.gradle
31 sitemesh-examples-gradle-hello/build.gradle
... ... @@ -1,41 +1,24 @@
1 1 /*
  2 + * build.gradle for SiteMesh 3 Hello World Demo
  3 + *
  4 + * SiteMesh 3: http://wiki.sitemesh.org/display/sitemesh3/Home
  5 + * Gradle: http://www.gradle.org/
2 6 */
3 7
4   -import org.apache.ivy.plugins.resolver.URLResolver
5   -
6 8 apply plugin: 'java'
7   -apply plugin: 'groovy'
8   -apply plugin: 'war'
9 9 apply plugin: 'jetty'
10 10
11 11
12   -def compatibilityVersion = 1.5
13   -sourceCompatibility = compatibilityVersion
14   -targetCompatibility = compatibilityVersion
15   -
  12 +// Keep everything simple by making webapp root the project root and the context '' (aka '/')
16 13 jettyRun.contextPath = ''
17 14 jettyRun.webAppSourceDirectory = file("$rootDir")
18 15
19 16 dependencies {
  17 + // scope 'groupID:artifactID:version'
20 18 runtime 'org.sitemesh:sitemesh:3.0-alpha-2'
21 19 }
22 20
23 21 repositories {
  22 + // Use Maven Central Repo to search for Dependencies
24 23 mavenCentral()
25 24 }
26   -
27   -sourceSets {
28   - main {
29   - output.classesDir = file('web-app/WEB-INF/classes')
30   - }
31   -}
32   -
33   -dependencies {
34   - groovy 'org.codehaus.groovy:groovy-all:1.8.4'
35   -
36   - testCompile 'javax.servlet:servlet-api:2.5'
37   -}
38   -
39   -clean.doLast {
40   - delete sourceSets*.output.classesDir
41   -}

0 comments on commit d977d7f

Please sign in to comment.
Something went wrong with that request. Please try again.