??????????????wrapper???????汾??Gradle?????????wrapper???????????汾??Gradle??????????Gradle Wrapper??????????????????????汾???У???????κ????????????а??Gradle??????????????汾??Gradle????????
??????????????????????1????????????????????????£?
????build
?????????? classes
??????   ?????? main
??????       ?????? hello
??????           ?????? Greeter.class
??????           ?????? HelloWorld.class
?????????? dependency-cache
?????????? libs
??????   ?????? gs-gradle-0.1.0.jar
?????????? tmp
?????????? jar
?????????? MANIFEST.MF
????Jar????а???????????????Gretter??HelloWorld??
????$ jar tvf build/libs/gs-gradle-0.1.0.jar
????0 Fri May 30 16:02:32 CDT 2014 META-INF/
????25 Fri May 30 16:02:32 CDT 2014 META-INF/MANIFEST.MF
????0 Fri May 30 16:02:32 CDT 2014 hello/
????369 Fri May 30 16:02:32 CDT 2014 hello/Greeter.class
????988 Fri May 30 16:02:32 CDT 2014 hello/HelloWorld.class
?????????????????????????joda-time???????????????а???????????????????????JAR?????????????JAR?????
??????????????????У???????????Gradle??application??????????????????build.gradle????С?
????apply plugin: 'application'
????mainClassName = 'hello.HelloWorld'
?????????????app??????????
????$ ./gradlew run
????:compileJava UP-TO-DATE
????:processResources UP-TO-DATE
????:classes UP-TO-DATE
????:run
????The current local time is: 16:16:20.544
????Hello world!
????BUILD SUCCESSFUL
????Total time: 3.798 secs
???????????????????????????????磬??????????????WAR???????????????????????????????????????Gradle??WAR???????????????Spring Boot?????????????????е?JAR???????????????spring-boot-gradle-plugin????????????????У?gradle?????????????????????????????????????????????????????????Gradle???
????????????????????build.gradle?????
apply plugin: 'java'
apply plugin: '<span class="wp_keywordlink"><a href="http://res.importnew.com/eclipse" title="Eclipse ImportNew???" target="_blank">Eclipse</a></span>'
apply plugin: 'application'
mainClassName = 'hello.HelloWorld'
// tag::repositories[]
repositories {
mavenLocal()
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 = '1.11'
}
// end::wrapper[]
?????????????к??start/end??????Щ?????????????????е?????????μ??????????????????в?????????????
???????
???????????????????????????????????Gradle?????????????Java?????