Created
March 26, 2015 12:08
-
-
Save bitristan/4bdacf18323c8b982e57 to your computer and use it in GitHub Desktop.
build java project with gradle
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
apply plugin: 'java' | |
apply plugin: 'eclipse' | |
apply plugin: 'application' | |
mainClassName = 'hello.HelloWorld' | |
// tag::repositories[] | |
repositories { | |
mavenCentral() | |
} | |
// end::repositories[] | |
// tag::jar[] | |
jar { | |
baseName = 'gs-gradle' | |
version = '0.1.0' | |
} | |
// end::jar[] | |
// tag::dependencies[] | |
dependencies { | |
compile "joda-time:joda-time:2.2" | |
} | |
// end::dependencies[] | |
// tag::wrapper[] | |
task wrapper(type: Wrapper) { | |
gradleVersion = '2.3' | |
} | |
// end::wrapper[] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment