Skip to content

Instantly share code, notes, and snippets.

@ricston-git
Created May 11, 2016 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricston-git/6eefbafd14d7f2be36e2c9c592faf5d1 to your computer and use it in GitHub Desktop.
Save ricston-git/6eefbafd14d7f2be36e2c9c592faf5d1 to your computer and use it in GitHub Desktop.
Gist for "Java Build Tools, JavaScript Package Managers and Task Runners (Part 1)" blog-post.
/* The plugins that our project will use */
apply plugin: 'java'
apply plugin: 'findbugs'
apply plugin: 'pmd'
version = '1.0'
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.13'
}
/* Note that certain default configuration will be applied since we did not specify any properties. For example,
the "classesDir" (The directory to assemble the compiled classes into) has a default location with the "java" plugin:
"${project.buildDir}/classes/${sourceSet.name}"; where "buildDir" refers to the "/build" directory inside our project. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment