???Gradle????Java???
???????????? ???????[ 2015/5/7 13:46:41 ] ????????????????
????Gradle??????Щ?????
????Gradle?????????????????????????????????????????????build.gradle?????????????????????Gradle??????Щ?????????Tasks????
????gradle tasks
??????????????????????Tasks?????б???????????Gradle??????????build.gradle??????????????Щ????????????????????
????:tasks
????== All tasks runnable from root project
????== Build Setup tasks
????setupBuild - Initializes a new Gradle build. [incubating]
????wrapper - Generates Gradle wrapper files. [incubating]
????== Help tasks
????dependencies - Displays all dependencies declared in root project 'gs-gradle'.
????dependencyInsight - Displays the insight into a specific dependency in root project 'gs-gradle'.
????help - Displays a help message
????projects - Displays the sub-projects of root project 'gs-gradle'.
????properties - Displays the properties of root project 'gs-gradle'.
????tasks - Displays the tasks runnable from root project 'gs-gradle'.
????To see all tasks and more detail?? run with --all.
????BUILD SUCCESSFUL
????Total time: 3.077 secs
??????????????г??????????????????????????????????????????????????????????????????build.gradle???Щ??????÷?????á?
?????????build.gradle??????????(plugins)??????????б????????????????ò???????gradle task??????Щ???????????
????????????ò??????????????????????????????????Java?????????
????????Java????
??????????????????????????????е?build.gradle?????
????apply plugin: 'java'
?????????????????????????????????????????????gradle task?????????????????б??????????Щ????????磺????????java?????????????????JavaDoc????????????е???????????
?????????????????????gradle build???????????????2???????????е??????????Jar?????
????gradle build
?????????????????”BUILD SUCCESSFUL”?????????????????????
?????????”build”???в????????????????????????????????????????????????????????????
????classes: ???汻??????.class???
????reports: ???????棨?磺??????棩
????lib: ???????????????????.jar????.war?????
????classes???????????????????.class?????????????????????????????????”HelloWorld.class”??”Greeter.class”??
?????????????????????????????κ???????????”debendency_cache”???????
????“reports”???????????????????????棬?????????????δ??д?κε????????????????????
????“lib”????????????jar??war???????????????????????????ζ???JAR???????汾???
????????????
?????????Hello World??????????????????κε?????????????????ó????????????????????????????????
???????磺?????????????????”Hello World!”???????????ó??????????????????????????????????Java???????????????????????????????”Joda Time”???????????????
???????????HelloWorld.jara????????????????
????package hello;
????import org.joda.time.LocalTime;
????public class HelloWorld {
????public static void main(String[] args) {
????LocalTime currentTime = new LocalTime();
????System.out.println("The current local time is: " + currentTime);
????Greeter greeter = new Greeter();
????System.out.println(greeter.sayHello());
????}
????}
?????????????HelloWorld???”Joda Time”??LocalTime??????????????????
??????????????????gradle build??????????????????????????????????δ??”Joda Time”??????????????????
????????????????????Щ???????????????????????
????repositories {
????mavenLocal()
????mavenCentral()
????}
?????????repositories???壬????????????Maven???????????????????????????Gradle????????????Maven????????????????????????????????Maven?????????????????????
??????????????????????????????????????壺
????dependencies {
????compile "joda-time:joda-time:2.2"
????}
???????dependencies?飬????????????Joda Time????????????????????joda-time?????汾?2.2??joda-time??
?????????????????????????????????????????????compile??Χ??????????????????????????????????????????????WAR???????????????/WEB-INF/libs???£???????????????????????????
????providedCompile?????????????????????????????????????????????????????????磺Java Servlet API??
????testCompile???????????????????в???????????????????????????????????
??????????????????????????Jar??????????
????jar {
????baseName = 'gs-gradle'
????version = '0.1.0'
????}
????jar?鶨?????????JAR?????????????????У??????JAR????????????gs-gradle-0.1.0.jar??
???????????????????gradle build??Gradle???Щ????Maven?????????Joda Time?????????????????????????????
???????Gradle Wrapper?????????
????Gradle Wrapper???????Gradle??????????????????windows?????????OS X??Linux??Shell???????Щ???????????????а??Gradle?????????Gradle????????????????????????????????build.gradle????????????′???
????task wrapper(type: Wrapper) {
????gradleVersion = '1.11'
????}
?????????????????????????wrapper???:
????gradle wrapper
???????????????????????????????Щ??????????????????????£?wapper??jar?????properties???????????gradle/wrapper?????
?????????? initial
?????????? gradlew
?????????? gradlew.bat
?????????? gradle
?????????? wrapper
?????????? gradle-wrapper.jar
?????????? gradle-wrapper.properties
????????Gradle Wrapper????????????????????????Щ?????????汾???????У???????κ?????κε?????????Щ?????????????????????????? Wrapper??Gradle?汾??£?????????????wrapper???????????????????????????????
????./gradlew build
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????