Skip to content

Instantly share code, notes, and snippets.

@li-salvadorlopez
Created January 14, 2015 23:19
Show Gist options
  • Select an option

  • Save li-salvadorlopez/7327876abd76a41640db to your computer and use it in GitHub Desktop.

Select an option

Save li-salvadorlopez/7327876abd76a41640db to your computer and use it in GitHub Desktop.
Gradle custom project layout
apply plugin: "war"
project.webAppDirName = 'WebContent'
repositories {
flatDir { dirs "WebContent/WEB-INF/lib" }
mavenCentral()
}
dependencies {
compile fileTree(dir: "WebContent/WEB-INF/lib", include: '*.jar')
}
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'Resources'
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.2.1'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment