Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplify and comment build.gradle

  • Loading branch information...
commit d977d7fe026d64d90f3d9ca120e88ed1c09d5b22 1 parent abe8714
@msgilligan authored
Showing with 7 additions and 24 deletions.
  1. +7 −24 sitemesh-examples-gradle-hello/build.gradle
View
31 sitemesh-examples-gradle-hello/build.gradle
@@ -1,41 +1,24 @@
/*
+ * build.gradle for SiteMesh 3 Hello World Demo
+ *
+ * SiteMesh 3: http://wiki.sitemesh.org/display/sitemesh3/Home
+ * Gradle: http://www.gradle.org/
*/
-import org.apache.ivy.plugins.resolver.URLResolver
-
apply plugin: 'java'
-apply plugin: 'groovy'
-apply plugin: 'war'
apply plugin: 'jetty'
-def compatibilityVersion = 1.5
-sourceCompatibility = compatibilityVersion
-targetCompatibility = compatibilityVersion
-
+// Keep everything simple by making webapp root the project root and the context '' (aka '/')
jettyRun.contextPath = ''
jettyRun.webAppSourceDirectory = file("$rootDir")
dependencies {
+ // scope 'groupID:artifactID:version'
runtime 'org.sitemesh:sitemesh:3.0-alpha-2'
}
repositories {
+ // Use Maven Central Repo to search for Dependencies
mavenCentral()
}
-
-sourceSets {
- main {
- output.classesDir = file('web-app/WEB-INF/classes')
- }
-}
-
-dependencies {
- groovy 'org.codehaus.groovy:groovy-all:1.8.4'
-
- testCompile 'javax.servlet:servlet-api:2.5'
-}
-
-clean.doLast {
- delete sourceSets*.output.classesDir
-}

0 comments on commit d977d7f

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