Created
May 11, 2016 14:39
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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