├── .gitignore ├── README.md ├── ant-antbuilder ├── build.gradle ├── run-example.bsh └── samples │ ├── one.txt │ ├── three.txt │ └── two.txt ├── ant-antdependsongradle ├── build.gradle ├── build.xml └── run-example.bsh ├── ant-classpathanttogradle ├── antlibs │ └── commons-beanutils-core-1.8.3.jar ├── build.gradle ├── build.xml └── run-example.bsh ├── ant-classpathgradletoant ├── build.gradle ├── build.xml ├── gradlelibs │ └── commons-logging-1.1.1.jar └── run-example.bsh ├── ant-closuresforantbuilder ├── .gitignore ├── build.gradle ├── build.xml ├── run-example.bsh └── samples │ ├── one.txt │ ├── three.txt │ └── two.txt ├── ant-customtaskuse ├── EXAMPLEFROMJAR_checkstyletask.properties ├── build.gradle ├── lib │ └── checkstyle │ │ ├── antlr-2.7.7.jar │ │ ├── checkstyle-5.3-all.jar │ │ ├── checkstyle-5.3.jar │ │ ├── commons-beanutils-core-1.8.3.jar │ │ ├── commons-cli-1.2.jar │ │ ├── commons-logging-1.1.1.jar │ │ └── google-collections-1.0.jar ├── run-example.bsh └── src │ ├── main │ └── java │ │ └── org │ │ └── gradle │ │ └── example │ │ └── simple │ │ └── HelloWorld.java │ └── tools │ ├── checkstyle-sun-checks.xml │ └── pmd-basic-rules.xml ├── ant-define-property ├── build.gradle ├── build.xml └── run-example.bsh ├── ant-dolast ├── build.xml ├── build1.gradle ├── build2.gradle ├── build3.gradle ├── build4.gradle ├── build4.xml ├── gradlelibs │ └── commons-logging-1.1.1.jar └── run-example.bsh ├── ant-groovypower ├── build.gradle └── run-example.bsh ├── ant-import-to-gradle ├── build.gradle ├── build.xml └── run-example.bsh ├── ant-simple-echo ├── build.gradle └── run-example.bsh ├── buildscript-markdown ├── build.gradle └── src │ └── markdown │ └── raven.md ├── complex-file-copy ├── build.gradle ├── config │ ├── DevelopmentConfig.groovy │ └── ProductionConfig.groovy ├── i18n │ ├── messages.properties │ └── messages_de.properties ├── multiple-from.gradle ├── multiple-into.gradle ├── run-example.bsh └── src │ └── main │ └── templates │ ├── main.gtpl │ ├── popup.gtpl │ └── style_guide.md ├── custom-task ├── build.gradle └── run-example.bsh ├── file-collection-lab ├── build.gradle └── src │ └── main │ ├── java │ └── org │ │ └── gradle │ │ └── example │ │ ├── ConsoleContentSink.java │ │ ├── Content.java │ │ ├── ContentFactory.java │ │ ├── ContentRegistry.java │ │ ├── ContentSink.java │ │ ├── DefaultContentFactory.java │ │ ├── DonneContent.java │ │ ├── PoetryEmitter.java │ │ └── ShakespeareContent.java │ └── resources │ ├── application-context.xml │ ├── chesterton.txt │ ├── henley.txt │ ├── shakespeare.txt │ └── shelley.txt ├── file-operations-lab ├── .gradletasknamecache ├── copy-exclude.gradle ├── copy-include.gradle ├── file-collection-helpful.gradle ├── file-collection-not-helpful.gradle ├── run-example.bsh ├── text-files │ ├── chesterton.txt │ ├── henley.txt │ ├── shakespeare.txt │ └── shelley.txt └── trivial-copy.gradle ├── filtering ├── copy-and-hash.gradle ├── expand.gradle ├── filter-class.gradle ├── filter-closure.gradle └── source │ ├── config.properties │ ├── ozymandius.txt │ └── todo.md ├── hello-minimal-build-file ├── build.gradle └── run-example.bsh ├── hello-minimal-java-build-file ├── build.gradle ├── run-example.bsh └── src │ └── main │ └── java │ └── org │ └── gradle │ └── example │ └── simple │ └── HelloWorld.java ├── hello-nativeexecute ├── build.gradle └── run-example.bsh ├── hello-smart-exclusions ├── build.gradle └── run-example.bsh ├── hello-two-task-build-file ├── build.gradle └── run-example.bsh ├── hooks-addrule ├── build.gradle ├── run-example.bsh └── src │ ├── main │ └── java │ │ └── HelloWorld.java │ └── test │ └── java │ ├── HelloWorldTest1.java │ └── HelloWorldTest2.java ├── hooks-afterevaluate ├── build.gradle └── run-example.bsh ├── hooks-afterevaluateonsubproject ├── build.gradle ├── run-example.bsh ├── settings.gradle ├── subprojecta │ └── build.gradle └── subprojectb │ └── build.gradle ├── hooks-lab ├── before-evaluate │ ├── build.gradle │ ├── settings.gradle │ ├── subproject1 │ │ └── build.gradle │ └── subproject2 │ │ └── build.gradle ├── build-finished │ └── build.gradle └── projects-loaded │ ├── build.gradle │ ├── settings.gradle │ ├── setup-project │ └── build.gradle │ └── utils-project │ └── build.gradle ├── hooks-rule-class ├── build.gradle ├── buildSrc │ └── src │ │ ├── main │ │ └── groovy │ │ │ └── org │ │ │ └── gradle │ │ │ └── examples │ │ │ └── rules │ │ │ └── HttpPingRule.groovy │ │ └── test │ │ └── groovy │ │ └── org │ │ └── gradle │ │ └── examples │ │ └── rules │ │ └── HttpPingRuleTests.groovy └── run-example.bsh ├── java-build-with-resources ├── build.gradle └── src │ └── main │ ├── java │ └── org │ │ └── gradle │ │ └── poetry │ │ └── PoetryEmitter.java │ └── resources │ ├── chesterton.txt │ ├── henley.txt │ ├── shakespeare.txt │ └── shelley.txt ├── maven-default-task ├── .gitignore ├── pom.xml └── run-example.bsh ├── maven-gradle-comparison-configinstall ├── build.gradle ├── run-example.bsh └── src │ └── main │ └── java │ └── Main.java ├── maven-gradle-comparison-defaulttasks ├── build.gradle ├── run-example.bsh └── src │ └── main │ └── java │ └── Main.java ├── maven-gradle-comparison-dependency-fields ├── build.gradle ├── run-example.bsh └── src │ ├── main │ └── java │ │ └── Main.java │ └── test │ └── java │ └── TestMain.java ├── maven-gradle-comparison-dependency-groovy ├── build.gradle ├── run-example.bsh └── src │ ├── main │ └── java │ │ └── Main.java │ └── test │ └── java │ └── TestMain.java ├── maven-gradle-comparison-dependency-iterateprint ├── build.gradle ├── run-example.bsh └── src │ ├── main │ └── java │ │ └── Main.java │ └── test │ └── java │ └── TestMain.java ├── maven-gradle-comparison-dependency-simplest ├── build.gradle ├── run-example.bsh └── src │ ├── main │ └── java │ │ └── Main.java │ └── test │ └── java │ └── TestMain.java ├── maven-gradle-comparison-simple ├── build.gradle ├── run-example.bsh └── src │ └── main │ └── java │ └── Main.java ├── maven-gradle-comparison-tests ├── build.gradle ├── run-example.bsh └── src │ ├── main │ └── java │ │ └── Main.java │ └── test │ └── java │ └── TestMain.java ├── maven-gradle-comparison-withallattrs ├── build.gradle ├── run-example.bsh └── src │ └── main │ └── java │ └── Main.java ├── maven-gradle-comparison-withattrs ├── build.gradle ├── run-example.bsh └── src │ └── main │ └── java │ └── Main.java ├── maven-m2metadataplugin ├── build.gradle ├── pom.xml ├── run-example.bsh └── src │ ├── main │ └── java │ │ └── Main.java │ └── test │ └── java │ └── TestMain.java ├── maven-multiplesourcedirs ├── build.gradle ├── run-example.bsh ├── src │ └── main │ │ └── java │ │ └── Main.java ├── srcAdditional │ └── main │ │ └── java │ │ └── MainAdditional.java └── srcBonus │ └── main │ └── java │ └── MainBonus.java ├── maven-properties-comparison ├── properties-basic.txt ├── properties-basic.txt, properties-javaplugin.txt (Untitled 2).textcomparison ├── properties-basictojava-diff.txt ├── properties-basictojava.diff └── properties-javaplugin.txt ├── maven-smallest-maven-pom ├── build.gradle ├── pom.xml ├── run-example.bsh └── settings.gradle ├── maven-uploadlocal ├── build.gradle ├── run-example.bsh └── src │ └── main │ └── java │ └── Main.java ├── maven-uploadwebdav ├── build.gradle ├── run-example.bsh └── src │ └── main │ └── java │ └── Main.java ├── multiproject-eclipse-plugin ├── .gitignore ├── build.gradle ├── codec │ ├── .classpath │ ├── .project │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── gradle │ │ └── example │ │ └── codec │ │ └── Encoder.java ├── content │ ├── .classpath │ ├── .project │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── gradle │ │ └── example │ │ └── content │ │ ├── ChestertonContent.java │ │ ├── Content.java │ │ ├── ContentFactory.java │ │ ├── ShakespeareContent.java │ │ ├── ShelleyContent.java │ │ └── WilliamCarlosWilliamsContent.java ├── run-example.bsh ├── settings.gradle └── src │ └── main │ └── java │ └── org │ └── gradle │ └── example │ └── codedpoet │ └── CommandLine.java ├── multiproject-hybrid ├── .gitignore ├── build.gradle ├── codec │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── gradle │ │ └── example │ │ └── codec │ │ └── Encoder.java ├── content │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── gradle │ │ └── example │ │ └── content │ │ ├── ChestertonContent.java │ │ ├── Content.java │ │ ├── ContentFactory.java │ │ ├── ShakespeareContent.java │ │ ├── ShelleyContent.java │ │ └── WilliamCarlosWilliamsContent.java ├── run-example.bsh ├── settings.gradle └── src │ └── main │ └── java │ └── org │ └── gradle │ └── example │ └── codedpoet │ └── CommandLine.java ├── multiproject-individual ├── .gitignore ├── build.gradle ├── codec │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── gradle │ │ └── example │ │ └── codec │ │ └── Encoder.java ├── content │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── gradle │ │ └── example │ │ └── content │ │ ├── ChestertonContent.java │ │ ├── Content.java │ │ ├── ContentFactory.java │ │ ├── ShakespeareContent.java │ │ ├── ShelleyContent.java │ │ └── WilliamCarlosWilliamsContent.java ├── run-example.bsh ├── settings.gradle └── src │ └── main │ └── java │ └── org │ └── gradle │ └── example │ └── codedpoet │ └── CommandLine.java ├── multiproject-unified ├── .gitignore ├── build.gradle ├── codec │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── gradle │ │ └── example │ │ └── codec │ │ └── Encoder.java ├── content │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── gradle │ │ └── example │ │ └── content │ │ ├── ChestertonContent.java │ │ ├── Content.java │ │ ├── ContentFactory.java │ │ ├── ShakespeareContent.java │ │ ├── ShelleyContent.java │ │ └── WilliamCarlosWilliamsContent.java ├── run-example.bsh ├── settings.gradle └── src │ └── main │ └── java │ └── org │ └── gradle │ └── example │ └── codedpoet │ └── CommandLine.java ├── other-clarifying-confusing-syntax ├── build.gradle └── run-example.bsh ├── other-printalldependencies ├── build.gradle ├── run-example.bsh └── simplerprint.gradle ├── other-sonar-java-build-file ├── build.gradle ├── run-example.bsh └── src │ ├── main │ └── java │ │ ├── Another.java │ │ └── Main.java │ └── test │ └── java │ └── TestMain.java ├── other-weld ├── README └── build.gradle ├── plugins ├── buildfile │ ├── build.gradle │ └── liquibase.gradle └── database-setup │ ├── create-schema.sql │ ├── database.gradle │ ├── db │ └── liquibase_workshop.h2.db │ └── starth2 ├── rename ├── .gitignore ├── closure.gradle ├── regex.gradle └── source │ ├── file-template-01.txt │ ├── file-template-02.txt │ └── file-template-03.txt ├── tasks-copy-task ├── .gitignore ├── build.gradle ├── resources │ ├── data.xml │ ├── ignored.dat │ ├── message.txt │ └── settings.properties └── run-example.bsh ├── tasks-copyfunction ├── after │ └── .gitignore ├── before │ └── hello.txt ├── build.gradle ├── run-example.bsh └── src │ └── main │ └── java │ └── org │ └── gradle │ └── example │ └── simple │ └── HelloWorld.java ├── tasks-custom-task-buildsrc ├── build.gradle ├── buildSrc │ └── src │ │ └── main │ │ └── groovy │ │ └── org │ │ └── gradle │ │ └── example │ │ └── task │ │ └── MySqlTask.groovy └── run-example.bsh ├── tasks-custom-task ├── build.gradle └── run-example.bsh ├── tasks-dag-diagram ├── Gradle Build Diagram.graffle └── Gradle-DAG-Sample.dot ├── tasks-jar-task ├── build.gradle ├── run-example.bsh └── src │ └── main │ ├── java │ └── org │ │ └── gradle │ │ └── example │ │ └── simple │ │ └── HelloWorld.java │ └── resources │ └── settings.properties ├── tasks-javaexec-task ├── build.gradle ├── run-example.bsh └── src │ └── main │ └── java │ └── org │ └── gradle │ └── example │ └── commandline │ └── MetaphoneEncoder.java ├── tasks-task-lab ├── description-all-in-one.gradle ├── description-separately.gradle ├── didWork.gradle ├── dynamic.gradle ├── enabled.gradle ├── logging.gradle ├── onlyIf.gradle ├── path.gradle ├── run-example.bsh └── src │ └── main │ └── java │ └── org │ └── gradle │ └── example │ └── simple │ └── HelloWorld.java ├── test-all-builds.bsh ├── testing-geb ├── build.gradle ├── run-example.bsh └── src │ └── test │ └── stories │ └── google.story ├── testing-integration ├── build.gradle ├── run-example.bsh └── src │ ├── main │ └── java │ │ └── org │ │ └── gradle │ │ └── example │ │ └── simple │ │ └── Person.java │ └── test │ └── java │ └── org │ └── gradle │ └── example │ └── simple │ ├── IntegrationTestPerson.java │ └── TestPerson.java ├── testing-junit ├── build.gradle ├── run-example.bsh └── src │ ├── main │ └── java │ │ └── org │ │ └── gradle │ │ └── example │ │ └── simple │ │ └── Person.java │ └── test │ └── java │ └── org │ └── gradle │ └── example │ └── simple │ └── TestPerson.java ├── testing-junitforkedthreads ├── build.gradle ├── generatetests.gradle ├── run-example.bsh └── src │ ├── main │ └── java │ │ └── org │ │ └── gradle │ │ └── example │ │ └── simple │ │ └── Person.java │ ├── template │ └── java │ │ └── org │ │ └── gradle │ │ └── example │ │ └── simple │ │ └── TestPerson.java │ └── test │ └── java │ └── org │ └── gradle │ └── example │ └── simple │ ├── TestPerson0.java │ ├── TestPerson1.java │ ├── TestPerson10.java │ ├── TestPerson100.java │ ├── TestPerson1000.java │ ├── TestPerson101.java │ ├── TestPerson102.java │ ├── TestPerson103.java │ ├── TestPerson104.java │ ├── TestPerson105.java │ ├── TestPerson106.java │ ├── TestPerson107.java │ ├── TestPerson108.java │ ├── TestPerson109.java │ ├── TestPerson11.java │ ├── TestPerson110.java │ ├── TestPerson111.java │ ├── TestPerson112.java │ ├── TestPerson113.java │ ├── TestPerson114.java │ ├── TestPerson115.java │ ├── TestPerson116.java │ ├── TestPerson117.java │ ├── TestPerson118.java │ ├── TestPerson119.java │ ├── TestPerson12.java │ ├── TestPerson120.java │ ├── TestPerson121.java │ ├── TestPerson122.java │ ├── TestPerson123.java │ ├── TestPerson124.java │ ├── TestPerson125.java │ ├── TestPerson126.java │ ├── TestPerson127.java │ ├── TestPerson128.java │ ├── TestPerson129.java │ ├── TestPerson13.java │ ├── TestPerson130.java │ ├── TestPerson131.java │ ├── TestPerson132.java │ ├── TestPerson133.java │ ├── TestPerson134.java │ ├── TestPerson135.java │ ├── TestPerson136.java │ ├── TestPerson137.java │ ├── TestPerson138.java │ ├── TestPerson139.java │ ├── TestPerson14.java │ ├── TestPerson140.java │ ├── TestPerson141.java │ ├── TestPerson142.java │ ├── TestPerson143.java │ ├── TestPerson144.java │ ├── TestPerson145.java │ ├── TestPerson146.java │ ├── TestPerson147.java │ ├── TestPerson148.java │ ├── TestPerson149.java │ ├── TestPerson15.java │ ├── TestPerson150.java │ ├── TestPerson151.java │ ├── TestPerson152.java │ ├── TestPerson153.java │ ├── TestPerson154.java │ ├── TestPerson155.java │ ├── TestPerson156.java │ ├── TestPerson157.java │ ├── TestPerson158.java │ ├── TestPerson159.java │ ├── TestPerson16.java │ ├── TestPerson160.java │ ├── TestPerson161.java │ ├── TestPerson162.java │ ├── TestPerson163.java │ ├── TestPerson164.java │ ├── TestPerson165.java │ ├── TestPerson166.java │ ├── TestPerson167.java │ ├── TestPerson168.java │ ├── TestPerson169.java │ ├── TestPerson17.java │ ├── TestPerson170.java │ ├── TestPerson171.java │ ├── TestPerson172.java │ ├── TestPerson173.java │ ├── TestPerson174.java │ ├── TestPerson175.java │ ├── TestPerson176.java │ ├── TestPerson177.java │ ├── TestPerson178.java │ ├── TestPerson179.java │ ├── TestPerson18.java │ ├── TestPerson180.java │ ├── TestPerson181.java │ ├── TestPerson182.java │ ├── TestPerson183.java │ ├── TestPerson184.java │ ├── TestPerson185.java │ ├── TestPerson186.java │ ├── TestPerson187.java │ ├── TestPerson188.java │ ├── TestPerson189.java │ ├── TestPerson19.java │ ├── TestPerson190.java │ ├── TestPerson191.java │ ├── TestPerson192.java │ ├── TestPerson193.java │ ├── TestPerson194.java │ ├── TestPerson195.java │ ├── TestPerson196.java │ ├── TestPerson197.java │ ├── TestPerson198.java │ ├── TestPerson199.java │ ├── TestPerson2.java │ ├── TestPerson20.java │ ├── TestPerson200.java │ ├── TestPerson201.java │ ├── TestPerson202.java │ ├── TestPerson203.java │ ├── TestPerson204.java │ ├── TestPerson205.java │ ├── TestPerson206.java │ ├── TestPerson207.java │ ├── TestPerson208.java │ ├── TestPerson209.java │ ├── TestPerson21.java │ ├── TestPerson210.java │ ├── TestPerson211.java │ ├── TestPerson212.java │ ├── TestPerson213.java │ ├── TestPerson214.java │ ├── TestPerson215.java │ ├── TestPerson216.java │ ├── TestPerson217.java │ ├── TestPerson218.java │ ├── TestPerson219.java │ ├── TestPerson22.java │ ├── TestPerson220.java │ ├── TestPerson221.java │ ├── TestPerson222.java │ ├── TestPerson223.java │ ├── TestPerson224.java │ ├── TestPerson225.java │ ├── TestPerson226.java │ ├── TestPerson227.java │ ├── TestPerson228.java │ ├── TestPerson229.java │ ├── TestPerson23.java │ ├── TestPerson230.java │ ├── TestPerson231.java │ ├── TestPerson232.java │ ├── TestPerson233.java │ ├── TestPerson234.java │ ├── TestPerson235.java │ ├── TestPerson236.java │ ├── TestPerson237.java │ ├── TestPerson238.java │ ├── TestPerson239.java │ ├── TestPerson24.java │ ├── TestPerson240.java │ ├── TestPerson241.java │ ├── TestPerson242.java │ ├── TestPerson243.java │ ├── TestPerson244.java │ ├── TestPerson245.java │ ├── TestPerson246.java │ ├── TestPerson247.java │ ├── TestPerson248.java │ ├── TestPerson249.java │ ├── TestPerson25.java │ ├── TestPerson250.java │ ├── TestPerson251.java │ ├── TestPerson252.java │ ├── TestPerson253.java │ ├── TestPerson254.java │ ├── TestPerson255.java │ ├── TestPerson256.java │ ├── TestPerson257.java │ ├── TestPerson258.java │ ├── TestPerson259.java │ ├── TestPerson26.java │ ├── TestPerson260.java │ ├── TestPerson261.java │ ├── TestPerson262.java │ ├── TestPerson263.java │ ├── TestPerson264.java │ ├── TestPerson265.java │ ├── TestPerson266.java │ ├── TestPerson267.java │ ├── TestPerson268.java │ ├── TestPerson269.java │ ├── TestPerson27.java │ ├── TestPerson270.java │ ├── TestPerson271.java │ ├── TestPerson272.java │ ├── TestPerson273.java │ ├── TestPerson274.java │ ├── TestPerson275.java │ ├── TestPerson276.java │ ├── TestPerson277.java │ ├── TestPerson278.java │ ├── TestPerson279.java │ ├── TestPerson28.java │ ├── TestPerson280.java │ ├── TestPerson281.java │ ├── TestPerson282.java │ ├── TestPerson283.java │ ├── TestPerson284.java │ ├── TestPerson285.java │ ├── TestPerson286.java │ ├── TestPerson287.java │ ├── TestPerson288.java │ ├── TestPerson289.java │ ├── TestPerson29.java │ ├── TestPerson290.java │ ├── TestPerson291.java │ ├── TestPerson292.java │ ├── TestPerson293.java │ ├── TestPerson294.java │ ├── TestPerson295.java │ ├── TestPerson296.java │ ├── TestPerson297.java │ ├── TestPerson298.java │ ├── TestPerson299.java │ ├── TestPerson3.java │ ├── TestPerson30.java │ ├── TestPerson300.java │ ├── TestPerson301.java │ ├── TestPerson302.java │ ├── TestPerson303.java │ ├── TestPerson304.java │ ├── TestPerson305.java │ ├── TestPerson306.java │ ├── TestPerson307.java │ ├── TestPerson308.java │ ├── TestPerson309.java │ ├── TestPerson31.java │ ├── TestPerson310.java │ ├── TestPerson311.java │ ├── TestPerson312.java │ ├── TestPerson313.java │ ├── TestPerson314.java │ ├── TestPerson315.java │ ├── TestPerson316.java │ ├── TestPerson317.java │ ├── TestPerson318.java │ ├── TestPerson319.java │ ├── TestPerson32.java │ ├── TestPerson320.java │ ├── TestPerson321.java │ ├── TestPerson322.java │ ├── TestPerson323.java │ ├── TestPerson324.java │ ├── TestPerson325.java │ ├── TestPerson326.java │ ├── TestPerson327.java │ ├── TestPerson328.java │ ├── TestPerson329.java │ ├── TestPerson33.java │ ├── TestPerson330.java │ ├── TestPerson331.java │ ├── TestPerson332.java │ ├── TestPerson333.java │ ├── TestPerson334.java │ ├── TestPerson335.java │ ├── TestPerson336.java │ ├── TestPerson337.java │ ├── TestPerson338.java │ ├── TestPerson339.java │ ├── TestPerson34.java │ ├── TestPerson340.java │ ├── TestPerson341.java │ ├── TestPerson342.java │ ├── TestPerson343.java │ ├── TestPerson344.java │ ├── TestPerson345.java │ ├── TestPerson346.java │ ├── TestPerson347.java │ ├── TestPerson348.java │ ├── TestPerson349.java │ ├── TestPerson35.java │ ├── TestPerson350.java │ ├── TestPerson351.java │ ├── TestPerson352.java │ ├── TestPerson353.java │ ├── TestPerson354.java │ ├── TestPerson355.java │ ├── TestPerson356.java │ ├── TestPerson357.java │ ├── TestPerson358.java │ ├── TestPerson359.java │ ├── TestPerson36.java │ ├── TestPerson360.java │ ├── TestPerson361.java │ ├── TestPerson362.java │ ├── TestPerson363.java │ ├── TestPerson364.java │ ├── TestPerson365.java │ ├── TestPerson366.java │ ├── TestPerson367.java │ ├── TestPerson368.java │ ├── TestPerson369.java │ ├── TestPerson37.java │ ├── TestPerson370.java │ ├── TestPerson371.java │ ├── TestPerson372.java │ ├── TestPerson373.java │ ├── TestPerson374.java │ ├── TestPerson375.java │ ├── TestPerson376.java │ ├── TestPerson377.java │ ├── TestPerson378.java │ ├── TestPerson379.java │ ├── TestPerson38.java │ ├── TestPerson380.java │ ├── TestPerson381.java │ ├── TestPerson382.java │ ├── TestPerson383.java │ ├── TestPerson384.java │ ├── TestPerson385.java │ ├── TestPerson386.java │ ├── TestPerson387.java │ ├── TestPerson388.java │ ├── TestPerson389.java │ ├── TestPerson39.java │ ├── TestPerson390.java │ ├── TestPerson391.java │ ├── TestPerson392.java │ ├── TestPerson393.java │ ├── TestPerson394.java │ ├── TestPerson395.java │ ├── TestPerson396.java │ ├── TestPerson397.java │ ├── TestPerson398.java │ ├── TestPerson399.java │ ├── TestPerson4.java │ ├── TestPerson40.java │ ├── TestPerson400.java │ ├── TestPerson401.java │ ├── TestPerson402.java │ ├── TestPerson403.java │ ├── TestPerson404.java │ ├── TestPerson405.java │ ├── TestPerson406.java │ ├── TestPerson407.java │ ├── TestPerson408.java │ ├── TestPerson409.java │ ├── TestPerson41.java │ ├── TestPerson410.java │ ├── TestPerson411.java │ ├── TestPerson412.java │ ├── TestPerson413.java │ ├── TestPerson414.java │ ├── TestPerson415.java │ ├── TestPerson416.java │ ├── TestPerson417.java │ ├── TestPerson418.java │ ├── TestPerson419.java │ ├── TestPerson42.java │ ├── TestPerson420.java │ ├── TestPerson421.java │ ├── TestPerson422.java │ ├── TestPerson423.java │ ├── TestPerson424.java │ ├── TestPerson425.java │ ├── TestPerson426.java │ ├── TestPerson427.java │ ├── TestPerson428.java │ ├── TestPerson429.java │ ├── TestPerson43.java │ ├── TestPerson430.java │ ├── TestPerson431.java │ ├── TestPerson432.java │ ├── TestPerson433.java │ ├── TestPerson434.java │ ├── TestPerson435.java │ ├── TestPerson436.java │ ├── TestPerson437.java │ ├── TestPerson438.java │ ├── TestPerson439.java │ ├── TestPerson44.java │ ├── TestPerson440.java │ ├── TestPerson441.java │ ├── TestPerson442.java │ ├── TestPerson443.java │ ├── TestPerson444.java │ ├── TestPerson445.java │ ├── TestPerson446.java │ ├── TestPerson447.java │ ├── TestPerson448.java │ ├── TestPerson449.java │ ├── TestPerson45.java │ ├── TestPerson450.java │ ├── TestPerson451.java │ ├── TestPerson452.java │ ├── TestPerson453.java │ ├── TestPerson454.java │ ├── TestPerson455.java │ ├── TestPerson456.java │ ├── TestPerson457.java │ ├── TestPerson458.java │ ├── TestPerson459.java │ ├── TestPerson46.java │ ├── TestPerson460.java │ ├── TestPerson461.java │ ├── TestPerson462.java │ ├── TestPerson463.java │ ├── TestPerson464.java │ ├── TestPerson465.java │ ├── TestPerson466.java │ ├── TestPerson467.java │ ├── TestPerson468.java │ ├── TestPerson469.java │ ├── TestPerson47.java │ ├── TestPerson470.java │ ├── TestPerson471.java │ ├── TestPerson472.java │ ├── TestPerson473.java │ ├── TestPerson474.java │ ├── TestPerson475.java │ ├── TestPerson476.java │ ├── TestPerson477.java │ ├── TestPerson478.java │ ├── TestPerson479.java │ ├── TestPerson48.java │ ├── TestPerson480.java │ ├── TestPerson481.java │ ├── TestPerson482.java │ ├── TestPerson483.java │ ├── TestPerson484.java │ ├── TestPerson485.java │ ├── TestPerson486.java │ ├── TestPerson487.java │ ├── TestPerson488.java │ ├── TestPerson489.java │ ├── TestPerson49.java │ ├── TestPerson490.java │ ├── TestPerson491.java │ ├── TestPerson492.java │ ├── TestPerson493.java │ ├── TestPerson494.java │ ├── TestPerson495.java │ ├── TestPerson496.java │ ├── TestPerson497.java │ ├── TestPerson498.java │ ├── TestPerson499.java │ ├── TestPerson5.java │ ├── TestPerson50.java │ ├── TestPerson500.java │ ├── TestPerson501.java │ ├── TestPerson502.java │ ├── TestPerson503.java │ ├── TestPerson504.java │ ├── TestPerson505.java │ ├── TestPerson506.java │ ├── TestPerson507.java │ ├── TestPerson508.java │ ├── TestPerson509.java │ ├── TestPerson51.java │ ├── TestPerson510.java │ ├── TestPerson511.java │ ├── TestPerson512.java │ ├── TestPerson513.java │ ├── TestPerson514.java │ ├── TestPerson515.java │ ├── TestPerson516.java │ ├── TestPerson517.java │ ├── TestPerson518.java │ ├── TestPerson519.java │ ├── TestPerson52.java │ ├── TestPerson520.java │ ├── TestPerson521.java │ ├── TestPerson522.java │ ├── TestPerson523.java │ ├── TestPerson524.java │ ├── TestPerson525.java │ ├── TestPerson526.java │ ├── TestPerson527.java │ ├── TestPerson528.java │ ├── TestPerson529.java │ ├── TestPerson53.java │ ├── TestPerson530.java │ ├── TestPerson531.java │ ├── TestPerson532.java │ ├── TestPerson533.java │ ├── TestPerson534.java │ ├── TestPerson535.java │ ├── TestPerson536.java │ ├── TestPerson537.java │ ├── TestPerson538.java │ ├── TestPerson539.java │ ├── TestPerson54.java │ ├── TestPerson540.java │ ├── TestPerson541.java │ ├── TestPerson542.java │ ├── TestPerson543.java │ ├── TestPerson544.java │ ├── TestPerson545.java │ ├── TestPerson546.java │ ├── TestPerson547.java │ ├── TestPerson548.java │ ├── TestPerson549.java │ ├── TestPerson55.java │ ├── TestPerson550.java │ ├── TestPerson551.java │ ├── TestPerson552.java │ ├── TestPerson553.java │ ├── TestPerson554.java │ ├── TestPerson555.java │ ├── TestPerson556.java │ ├── TestPerson557.java │ ├── TestPerson558.java │ ├── TestPerson559.java │ ├── TestPerson56.java │ ├── TestPerson560.java │ ├── TestPerson561.java │ ├── TestPerson562.java │ ├── TestPerson563.java │ ├── TestPerson564.java │ ├── TestPerson565.java │ ├── TestPerson566.java │ ├── TestPerson567.java │ ├── TestPerson568.java │ ├── TestPerson569.java │ ├── TestPerson57.java │ ├── TestPerson570.java │ ├── TestPerson571.java │ ├── TestPerson572.java │ ├── TestPerson573.java │ ├── TestPerson574.java │ ├── TestPerson575.java │ ├── TestPerson576.java │ ├── TestPerson577.java │ ├── TestPerson578.java │ ├── TestPerson579.java │ ├── TestPerson58.java │ ├── TestPerson580.java │ ├── TestPerson581.java │ ├── TestPerson582.java │ ├── TestPerson583.java │ ├── TestPerson584.java │ ├── TestPerson585.java │ ├── TestPerson586.java │ ├── TestPerson587.java │ ├── TestPerson588.java │ ├── TestPerson589.java │ ├── TestPerson59.java │ ├── TestPerson590.java │ ├── TestPerson591.java │ ├── TestPerson592.java │ ├── TestPerson593.java │ ├── TestPerson594.java │ ├── TestPerson595.java │ ├── TestPerson596.java │ ├── TestPerson597.java │ ├── TestPerson598.java │ ├── TestPerson599.java │ ├── TestPerson6.java │ ├── TestPerson60.java │ ├── TestPerson600.java │ ├── TestPerson601.java │ ├── TestPerson602.java │ ├── TestPerson603.java │ ├── TestPerson604.java │ ├── TestPerson605.java │ ├── TestPerson606.java │ ├── TestPerson607.java │ ├── TestPerson608.java │ ├── TestPerson609.java │ ├── TestPerson61.java │ ├── TestPerson610.java │ ├── TestPerson611.java │ ├── TestPerson612.java │ ├── TestPerson613.java │ ├── TestPerson614.java │ ├── TestPerson615.java │ ├── TestPerson616.java │ ├── TestPerson617.java │ ├── TestPerson618.java │ ├── TestPerson619.java │ ├── TestPerson62.java │ ├── TestPerson620.java │ ├── TestPerson621.java │ ├── TestPerson622.java │ ├── TestPerson623.java │ ├── TestPerson624.java │ ├── TestPerson625.java │ ├── TestPerson626.java │ ├── TestPerson627.java │ ├── TestPerson628.java │ ├── TestPerson629.java │ ├── TestPerson63.java │ ├── TestPerson630.java │ ├── TestPerson631.java │ ├── TestPerson632.java │ ├── TestPerson633.java │ ├── TestPerson634.java │ ├── TestPerson635.java │ ├── TestPerson636.java │ ├── TestPerson637.java │ ├── TestPerson638.java │ ├── TestPerson639.java │ ├── TestPerson64.java │ ├── TestPerson640.java │ ├── TestPerson641.java │ ├── TestPerson642.java │ ├── TestPerson643.java │ ├── TestPerson644.java │ ├── TestPerson645.java │ ├── TestPerson646.java │ ├── TestPerson647.java │ ├── TestPerson648.java │ ├── TestPerson649.java │ ├── TestPerson65.java │ ├── TestPerson650.java │ ├── TestPerson651.java │ ├── TestPerson652.java │ ├── TestPerson653.java │ ├── TestPerson654.java │ ├── TestPerson655.java │ ├── TestPerson656.java │ ├── TestPerson657.java │ ├── TestPerson658.java │ ├── TestPerson659.java │ ├── TestPerson66.java │ ├── TestPerson660.java │ ├── TestPerson661.java │ ├── TestPerson662.java │ ├── TestPerson663.java │ ├── TestPerson664.java │ ├── TestPerson665.java │ ├── TestPerson666.java │ ├── TestPerson667.java │ ├── TestPerson668.java │ ├── TestPerson669.java │ ├── TestPerson67.java │ ├── TestPerson670.java │ ├── TestPerson671.java │ ├── TestPerson672.java │ ├── TestPerson673.java │ ├── TestPerson674.java │ ├── TestPerson675.java │ ├── TestPerson676.java │ ├── TestPerson677.java │ ├── TestPerson678.java │ ├── TestPerson679.java │ ├── TestPerson68.java │ ├── TestPerson680.java │ ├── TestPerson681.java │ ├── TestPerson682.java │ ├── TestPerson683.java │ ├── TestPerson684.java │ ├── TestPerson685.java │ ├── TestPerson686.java │ ├── TestPerson687.java │ ├── TestPerson688.java │ ├── TestPerson689.java │ ├── TestPerson69.java │ ├── TestPerson690.java │ ├── TestPerson691.java │ ├── TestPerson692.java │ ├── TestPerson693.java │ ├── TestPerson694.java │ ├── TestPerson695.java │ ├── TestPerson696.java │ ├── TestPerson697.java │ ├── TestPerson698.java │ ├── TestPerson699.java │ ├── TestPerson7.java │ ├── TestPerson70.java │ ├── TestPerson700.java │ ├── TestPerson701.java │ ├── TestPerson702.java │ ├── TestPerson703.java │ ├── TestPerson704.java │ ├── TestPerson705.java │ ├── TestPerson706.java │ ├── TestPerson707.java │ ├── TestPerson708.java │ ├── TestPerson709.java │ ├── TestPerson71.java │ ├── TestPerson710.java │ ├── TestPerson711.java │ ├── TestPerson712.java │ ├── TestPerson713.java │ ├── TestPerson714.java │ ├── TestPerson715.java │ ├── TestPerson716.java │ ├── TestPerson717.java │ ├── TestPerson718.java │ ├── TestPerson719.java │ ├── TestPerson72.java │ ├── TestPerson720.java │ ├── TestPerson721.java │ ├── TestPerson722.java │ ├── TestPerson723.java │ ├── TestPerson724.java │ ├── TestPerson725.java │ ├── TestPerson726.java │ ├── TestPerson727.java │ ├── TestPerson728.java │ ├── TestPerson729.java │ ├── TestPerson73.java │ ├── TestPerson730.java │ ├── TestPerson731.java │ ├── TestPerson732.java │ ├── TestPerson733.java │ ├── TestPerson734.java │ ├── TestPerson735.java │ ├── TestPerson736.java │ ├── TestPerson737.java │ ├── TestPerson738.java │ ├── TestPerson739.java │ ├── TestPerson74.java │ ├── TestPerson740.java │ ├── TestPerson741.java │ ├── TestPerson742.java │ ├── TestPerson743.java │ ├── TestPerson744.java │ ├── TestPerson745.java │ ├── TestPerson746.java │ ├── TestPerson747.java │ ├── TestPerson748.java │ ├── TestPerson749.java │ ├── TestPerson75.java │ ├── TestPerson750.java │ ├── TestPerson751.java │ ├── TestPerson752.java │ ├── TestPerson753.java │ ├── TestPerson754.java │ ├── TestPerson755.java │ ├── TestPerson756.java │ ├── TestPerson757.java │ ├── TestPerson758.java │ ├── TestPerson759.java │ ├── TestPerson76.java │ ├── TestPerson760.java │ ├── TestPerson761.java │ ├── TestPerson762.java │ ├── TestPerson763.java │ ├── TestPerson764.java │ ├── TestPerson765.java │ ├── TestPerson766.java │ ├── TestPerson767.java │ ├── TestPerson768.java │ ├── TestPerson769.java │ ├── TestPerson77.java │ ├── TestPerson770.java │ ├── TestPerson771.java │ ├── TestPerson772.java │ ├── TestPerson773.java │ ├── TestPerson774.java │ ├── TestPerson775.java │ ├── TestPerson776.java │ ├── TestPerson777.java │ ├── TestPerson778.java │ ├── TestPerson779.java │ ├── TestPerson78.java │ ├── TestPerson780.java │ ├── TestPerson781.java │ ├── TestPerson782.java │ ├── TestPerson783.java │ ├── TestPerson784.java │ ├── TestPerson785.java │ ├── TestPerson786.java │ ├── TestPerson787.java │ ├── TestPerson788.java │ ├── TestPerson789.java │ ├── TestPerson79.java │ ├── TestPerson790.java │ ├── TestPerson791.java │ ├── TestPerson792.java │ ├── TestPerson793.java │ ├── TestPerson794.java │ ├── TestPerson795.java │ ├── TestPerson796.java │ ├── TestPerson797.java │ ├── TestPerson798.java │ ├── TestPerson799.java │ ├── TestPerson8.java │ ├── TestPerson80.java │ ├── TestPerson800.java │ ├── TestPerson801.java │ ├── TestPerson802.java │ ├── TestPerson803.java │ ├── TestPerson804.java │ ├── TestPerson805.java │ ├── TestPerson806.java │ ├── TestPerson807.java │ ├── TestPerson808.java │ ├── TestPerson809.java │ ├── TestPerson81.java │ ├── TestPerson810.java │ ├── TestPerson811.java │ ├── TestPerson812.java │ ├── TestPerson813.java │ ├── TestPerson814.java │ ├── TestPerson815.java │ ├── TestPerson816.java │ ├── TestPerson817.java │ ├── TestPerson818.java │ ├── TestPerson819.java │ ├── TestPerson82.java │ ├── TestPerson820.java │ ├── TestPerson821.java │ ├── TestPerson822.java │ ├── TestPerson823.java │ ├── TestPerson824.java │ ├── TestPerson825.java │ ├── TestPerson826.java │ ├── TestPerson827.java │ ├── TestPerson828.java │ ├── TestPerson829.java │ ├── TestPerson83.java │ ├── TestPerson830.java │ ├── TestPerson831.java │ ├── TestPerson832.java │ ├── TestPerson833.java │ ├── TestPerson834.java │ ├── TestPerson835.java │ ├── TestPerson836.java │ ├── TestPerson837.java │ ├── TestPerson838.java │ ├── TestPerson839.java │ ├── TestPerson84.java │ ├── TestPerson840.java │ ├── TestPerson841.java │ ├── TestPerson842.java │ ├── TestPerson843.java │ ├── TestPerson844.java │ ├── TestPerson845.java │ ├── TestPerson846.java │ ├── TestPerson847.java │ ├── TestPerson848.java │ ├── TestPerson849.java │ ├── TestPerson85.java │ ├── TestPerson850.java │ ├── TestPerson851.java │ ├── TestPerson852.java │ ├── TestPerson853.java │ ├── TestPerson854.java │ ├── TestPerson855.java │ ├── TestPerson856.java │ ├── TestPerson857.java │ ├── TestPerson858.java │ ├── TestPerson859.java │ ├── TestPerson86.java │ ├── TestPerson860.java │ ├── TestPerson861.java │ ├── TestPerson862.java │ ├── TestPerson863.java │ ├── TestPerson864.java │ ├── TestPerson865.java │ ├── TestPerson866.java │ ├── TestPerson867.java │ ├── TestPerson868.java │ ├── TestPerson869.java │ ├── TestPerson87.java │ ├── TestPerson870.java │ ├── TestPerson871.java │ ├── TestPerson872.java │ ├── TestPerson873.java │ ├── TestPerson874.java │ ├── TestPerson875.java │ ├── TestPerson876.java │ ├── TestPerson877.java │ ├── TestPerson878.java │ ├── TestPerson879.java │ ├── TestPerson88.java │ ├── TestPerson880.java │ ├── TestPerson881.java │ ├── TestPerson882.java │ ├── TestPerson883.java │ ├── TestPerson884.java │ ├── TestPerson885.java │ ├── TestPerson886.java │ ├── TestPerson887.java │ ├── TestPerson888.java │ ├── TestPerson889.java │ ├── TestPerson89.java │ ├── TestPerson890.java │ ├── TestPerson891.java │ ├── TestPerson892.java │ ├── TestPerson893.java │ ├── TestPerson894.java │ ├── TestPerson895.java │ ├── TestPerson896.java │ ├── TestPerson897.java │ ├── TestPerson898.java │ ├── TestPerson899.java │ ├── TestPerson9.java │ ├── TestPerson90.java │ ├── TestPerson900.java │ ├── TestPerson901.java │ ├── TestPerson902.java │ ├── TestPerson903.java │ ├── TestPerson904.java │ ├── TestPerson905.java │ ├── TestPerson906.java │ ├── TestPerson907.java │ ├── TestPerson908.java │ ├── TestPerson909.java │ ├── TestPerson91.java │ ├── TestPerson910.java │ ├── TestPerson911.java │ ├── TestPerson912.java │ ├── TestPerson913.java │ ├── TestPerson914.java │ ├── TestPerson915.java │ ├── TestPerson916.java │ ├── TestPerson917.java │ ├── TestPerson918.java │ ├── TestPerson919.java │ ├── TestPerson92.java │ ├── TestPerson920.java │ ├── TestPerson921.java │ ├── TestPerson922.java │ ├── TestPerson923.java │ ├── TestPerson924.java │ ├── TestPerson925.java │ ├── TestPerson926.java │ ├── TestPerson927.java │ ├── TestPerson928.java │ ├── TestPerson929.java │ ├── TestPerson93.java │ ├── TestPerson930.java │ ├── TestPerson931.java │ ├── TestPerson932.java │ ├── TestPerson933.java │ ├── TestPerson934.java │ ├── TestPerson935.java │ ├── TestPerson936.java │ ├── TestPerson937.java │ ├── TestPerson938.java │ ├── TestPerson939.java │ ├── TestPerson94.java │ ├── TestPerson940.java │ ├── TestPerson941.java │ ├── TestPerson942.java │ ├── TestPerson943.java │ ├── TestPerson944.java │ ├── TestPerson945.java │ ├── TestPerson946.java │ ├── TestPerson947.java │ ├── TestPerson948.java │ ├── TestPerson949.java │ ├── TestPerson95.java │ ├── TestPerson950.java │ ├── TestPerson951.java │ ├── TestPerson952.java │ ├── TestPerson953.java │ ├── TestPerson954.java │ ├── TestPerson955.java │ ├── TestPerson956.java │ ├── TestPerson957.java │ ├── TestPerson958.java │ ├── TestPerson959.java │ ├── TestPerson96.java │ ├── TestPerson960.java │ ├── TestPerson961.java │ ├── TestPerson962.java │ ├── TestPerson963.java │ ├── TestPerson964.java │ ├── TestPerson965.java │ ├── TestPerson966.java │ ├── TestPerson967.java │ ├── TestPerson968.java │ ├── TestPerson969.java │ ├── TestPerson97.java │ ├── TestPerson970.java │ ├── TestPerson971.java │ ├── TestPerson972.java │ ├── TestPerson973.java │ ├── TestPerson974.java │ ├── TestPerson975.java │ ├── TestPerson976.java │ ├── TestPerson977.java │ ├── TestPerson978.java │ ├── TestPerson979.java │ ├── TestPerson98.java │ ├── TestPerson980.java │ ├── TestPerson981.java │ ├── TestPerson982.java │ ├── TestPerson983.java │ ├── TestPerson984.java │ ├── TestPerson985.java │ ├── TestPerson986.java │ ├── TestPerson987.java │ ├── TestPerson988.java │ ├── TestPerson989.java │ ├── TestPerson99.java │ ├── TestPerson990.java │ ├── TestPerson991.java │ ├── TestPerson992.java │ ├── TestPerson993.java │ ├── TestPerson994.java │ ├── TestPerson995.java │ ├── TestPerson996.java │ ├── TestPerson997.java │ ├── TestPerson998.java │ └── TestPerson999.java ├── testing-spock ├── README.txt ├── build.gradle ├── run-example.bsh └── src │ └── test │ ├── groovy │ ├── DataDriven.groovy │ ├── DatabaseDriven.groovy │ ├── HamcrestMatchers.groovy │ ├── HelloSpock.groovy │ ├── IncludeExcludeExtension.groovy │ ├── OrderedInteractions.groovy │ ├── PublisherSubscriber.groovy │ ├── SpecInheritance.groovy │ ├── Stacks.groovy │ ├── StepwiseExtension.groovy │ └── UsingJUnitRules.groovy │ └── resources │ ├── ExcludeSlowConfig.groovy │ └── IncludeFastConfig.groovy ├── testing-testng ├── .gitignore ├── build.gradle ├── run-example.bsh └── src │ ├── main │ └── java │ │ └── org │ │ └── gradle │ │ └── example │ │ └── simple │ │ └── Person.java │ └── test │ └── java │ └── org │ └── gradle │ └── example │ └── simple │ └── TestPerson.java ├── web-hello-world ├── build.gradle └── src │ └── main │ ├── java │ └── org │ │ └── gradle │ │ └── examples │ │ └── web │ │ └── Servlet.java │ └── webapp │ └── web.xml └── wrapper-minimal ├── build.gradle ├── gradlew ├── gradlew.bat └── run-example.bsh /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | .gradle 3 | output 4 | bin 5 | out 6 | *.log 7 | *.iws 8 | *.ipr 9 | *.iml 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This is the set of sample projects for the O'Reilly Gradle Book series. 2 | 3 | Please feel free to send pull requests that make the use of Gradle or Groovy more idiomatic. Additional samples are also welcomed. 4 | 5 | Each project should have a README.md and a run-example.bsh script. The script allows for executions user would type at the command line to showcase that particular example in action. 6 | 7 | Thanks, 8 | Matthew McCullough & Tim Berglund, Authors -------------------------------------------------------------------------------- /ant-antbuilder/build.gradle: -------------------------------------------------------------------------------- 1 | task echoDirListViaAntBuilder() { 2 | description = 'Uses the built-in AntBuilder instance to echo and list files' 3 | //Docs: http://ant.apache.org/manual/Types/fileset.html 4 | 5 | //Echo the Gradle project name via the ant echo plugin 6 | ant.echo(message: project.name) 7 | ant.echo(path) 8 | ant.echo("${projectDir}/samples") 9 | 10 | //Gather list of files in a subdirectory 11 | ant.fileScanner{ 12 | fileset(dir:"samples") 13 | }.each{ 14 | //Print each file to screen with the CWD (projectDir) path removed. 15 | println it.toString() - "${projectDir}" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /ant-antbuilder/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle echoDirListViaAntBuilder -------------------------------------------------------------------------------- /ant-antbuilder/samples/one.txt: -------------------------------------------------------------------------------- 1 | //One 2 | -------------------------------------------------------------------------------- /ant-antbuilder/samples/three.txt: -------------------------------------------------------------------------------- 1 | //Three 2 | -------------------------------------------------------------------------------- /ant-antbuilder/samples/two.txt: -------------------------------------------------------------------------------- 1 | //Two 2 | -------------------------------------------------------------------------------- /ant-antdependsongradle/build.gradle: -------------------------------------------------------------------------------- 1 | ant.importBuild 'build.xml' 2 | 3 | defaultTasks = ['antStandAloneHello', 'afterTheAntTask'] 4 | 5 | task beforeTheAntTask << { 6 | println "A Gradle task that precedes the Ant target" 7 | } 8 | 9 | task afterTheAntTask(dependsOn: "antHello") << { 10 | println "A Gradle task that precedes the Ant target" 11 | } 12 | -------------------------------------------------------------------------------- /ant-antdependsongradle/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /ant-antdependsongradle/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle -------------------------------------------------------------------------------- /ant-classpathanttogradle/antlibs/commons-beanutils-core-1.8.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/ant-classpathanttogradle/antlibs/commons-beanutils-core-1.8.3.jar -------------------------------------------------------------------------------- /ant-classpathanttogradle/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ant-classpathanttogradle/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle -------------------------------------------------------------------------------- /ant-classpathgradletoant/gradlelibs/commons-logging-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/ant-classpathgradletoant/gradlelibs/commons-logging-1.1.1.jar -------------------------------------------------------------------------------- /ant-classpathgradletoant/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle -------------------------------------------------------------------------------- /ant-closuresforantbuilder/.gitignore: -------------------------------------------------------------------------------- 1 | *.zip 2 | -------------------------------------------------------------------------------- /ant-closuresforantbuilder/build.gradle: -------------------------------------------------------------------------------- 1 | task zipsourceInGradle << { 2 | ant.zip(destfile: 'samples-from-gradle.zip') { 3 | fileset(dir: 'samples') { 4 | include(name: '**.txt') 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /ant-closuresforantbuilder/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /ant-closuresforantbuilder/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ant zipsourceInAnt 3 | gradle zipsourceInGradle -------------------------------------------------------------------------------- /ant-closuresforantbuilder/samples/one.txt: -------------------------------------------------------------------------------- 1 | //One 2 | -------------------------------------------------------------------------------- /ant-closuresforantbuilder/samples/three.txt: -------------------------------------------------------------------------------- 1 | //Three 2 | -------------------------------------------------------------------------------- /ant-closuresforantbuilder/samples/two.txt: -------------------------------------------------------------------------------- 1 | //Two 2 | -------------------------------------------------------------------------------- /ant-customtaskuse/EXAMPLEFROMJAR_checkstyletask.properties: -------------------------------------------------------------------------------- 1 | checkstyle=com.puppycrawl.tools.checkstyle.CheckStyleTask 2 | -------------------------------------------------------------------------------- /ant-customtaskuse/lib/checkstyle/antlr-2.7.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/ant-customtaskuse/lib/checkstyle/antlr-2.7.7.jar -------------------------------------------------------------------------------- /ant-customtaskuse/lib/checkstyle/checkstyle-5.3-all.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/ant-customtaskuse/lib/checkstyle/checkstyle-5.3-all.jar -------------------------------------------------------------------------------- /ant-customtaskuse/lib/checkstyle/checkstyle-5.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/ant-customtaskuse/lib/checkstyle/checkstyle-5.3.jar -------------------------------------------------------------------------------- /ant-customtaskuse/lib/checkstyle/commons-beanutils-core-1.8.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/ant-customtaskuse/lib/checkstyle/commons-beanutils-core-1.8.3.jar -------------------------------------------------------------------------------- /ant-customtaskuse/lib/checkstyle/commons-cli-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/ant-customtaskuse/lib/checkstyle/commons-cli-1.2.jar -------------------------------------------------------------------------------- /ant-customtaskuse/lib/checkstyle/commons-logging-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/ant-customtaskuse/lib/checkstyle/commons-logging-1.1.1.jar -------------------------------------------------------------------------------- /ant-customtaskuse/lib/checkstyle/google-collections-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/ant-customtaskuse/lib/checkstyle/google-collections-1.0.jar -------------------------------------------------------------------------------- /ant-customtaskuse/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle 3 | echo " NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE" 4 | echo " NOTE: The above Gradle build will intentionally fail. This is due to intentionally checkstyle-non-compliant code." 5 | 6 | exit 0 7 | -------------------------------------------------------------------------------- /ant-customtaskuse/src/main/java/org/gradle/example/simple/HelloWorld.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | public class HelloWorld { 4 | public static void main(String args[]) { 5 | System.out.println("hello, world"); 6 | } 7 | 8 | public static void doNothing() { 9 | //Empty if statement should be disliked by PMD 10 | if(true) { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ant-define-property/build.gradle: -------------------------------------------------------------------------------- 1 | def gradlePersonName = "Fird Birfle" 2 | int gradlePersonAge = 43 3 | 4 | //Import the Ant build 5 | ant.importBuild 'build.xml' 6 | 7 | task hello << { 8 | //Use a property from Gradle in an Ant call 9 | ant.echo "Hello ${gradlePersonName}. I believe you are ${gradlePersonAge} years of age." 10 | 11 | //Use a property from Ant in a Gradle call 12 | println "Hello ${ant.antPersonName}. I believe you are ${ant.antPersonAge} years of age." 13 | } 14 | -------------------------------------------------------------------------------- /ant-define-property/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 51 3 | Trad Norbye 4 | 5 | -------------------------------------------------------------------------------- /ant-define-property/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle hello -------------------------------------------------------------------------------- /ant-dolast/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ant-dolast/build1.gradle: -------------------------------------------------------------------------------- 1 | ant.importBuild 'build.xml' 2 | -------------------------------------------------------------------------------- /ant-dolast/build2.gradle: -------------------------------------------------------------------------------- 1 | ant.importBuild 'build.xml' 2 | 3 | defaultTasks = ['antBuild'] 4 | -------------------------------------------------------------------------------- /ant-dolast/build3.gradle: -------------------------------------------------------------------------------- 1 | ant.importBuild 'build.xml' 2 | 3 | defaultTasks = ['antBuild'] 4 | 5 | antBuild.doLast { 6 | println "The Ant goal was supplemented by a Gradle doLast" 7 | } 8 | -------------------------------------------------------------------------------- /ant-dolast/gradlelibs/commons-logging-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/ant-dolast/gradlelibs/commons-logging-1.1.1.jar -------------------------------------------------------------------------------- /ant-dolast/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle -b build1.gradle 3 | gradle -b build2.gradle 4 | gradle -b build3.gradle 5 | gradle -b build4.gradle 6 | -------------------------------------------------------------------------------- /ant-groovypower/build.gradle: -------------------------------------------------------------------------------- 1 | task echoSystemPropertiesWithRegEx() { 2 | description = "Uses Groovy's regex matching to find a match in System properties" 3 | 4 | def charsToFind = 'sun' 5 | 6 | println "SYSTEM PROPERTIES" 7 | System.properties.each{ 8 | ant.echo("Does '${it}' contain '${charsToFind}': " + (it ==~ ".*${charsToFind}.*")) 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /ant-groovypower/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle eSPWRE -------------------------------------------------------------------------------- /ant-import-to-gradle/build.gradle: -------------------------------------------------------------------------------- 1 | ant.importBuild 'build.xml' -------------------------------------------------------------------------------- /ant-import-to-gradle/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ant-import-to-gradle/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ant helloViaAttribute 3 | gradle helloViaAttribute -------------------------------------------------------------------------------- /ant-simple-echo/build.gradle: -------------------------------------------------------------------------------- 1 | task echoViaAnt << { 2 | //Echo the Gradle project name via the ant echo plugin 3 | ant.echo(message: project.name) 4 | } -------------------------------------------------------------------------------- /ant-simple-echo/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle eVA -------------------------------------------------------------------------------- /buildscript-markdown/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | } 5 | 6 | dependencies { 7 | classpath 'org.markdownj:markdownj:0.3.0-1.0.2b4' 8 | } 9 | } 10 | 11 | import com.petebevin.markdown.MarkdownProcessor 12 | 13 | class MarkdownFilter extends FilterReader { 14 | MarkdownFilter(Reader input) { 15 | super(new StringReader(new MarkdownProcessor().markdown(input.text))) 16 | } 17 | } 18 | 19 | task markdown(type: Copy) { 20 | from 'src/markdown' 21 | include '*.md' 22 | into 'build/labs' 23 | rename { it - '.md' + '.html' } 24 | filter MarkdownFilter 25 | } -------------------------------------------------------------------------------- /complex-file-copy/build.gradle: -------------------------------------------------------------------------------- 1 | task complexCopy(type: Copy) { 2 | from('src/main/templates') { 3 | include '**/*.gtpl' 4 | into 'templates' 5 | } 6 | from('i18n') 7 | from('config') { 8 | exclude 'Development*.groovy' 9 | into 'config' 10 | } 11 | into 'build/resources' 12 | } 13 | -------------------------------------------------------------------------------- /complex-file-copy/config/DevelopmentConfig.groovy: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost/database 2 | username=db_user 3 | password=db_password 4 | -------------------------------------------------------------------------------- /complex-file-copy/config/ProductionConfig.groovy: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://internal.hostname/prod_db 2 | username=prod_db_user 3 | password=no_prod_passwords_here 4 | -------------------------------------------------------------------------------- /complex-file-copy/i18n/messages.properties: -------------------------------------------------------------------------------- 1 | good.morning=Good Morning 2 | thank.you=Thank You -------------------------------------------------------------------------------- /complex-file-copy/i18n/messages_de.properties: -------------------------------------------------------------------------------- 1 | good.morning=Guten Tag 2 | thank.you=Bitte Shoen -------------------------------------------------------------------------------- /complex-file-copy/multiple-from.gradle: -------------------------------------------------------------------------------- 1 | task complexCopy(type: Copy) { 2 | from('src/main/templates') { 3 | include '**/*.gtpl' 4 | } 5 | from('i18n') 6 | from('config') { 7 | exclude 'Development*.groovy' 8 | } 9 | into 'build/resources' 10 | } 11 | -------------------------------------------------------------------------------- /complex-file-copy/multiple-into.gradle: -------------------------------------------------------------------------------- 1 | task complexCopy(type: Copy) { 2 | from('src/main/templates') { 3 | include '**/*.gtpl' 4 | into 'templates' 5 | } 6 | from('i18n') 7 | from('config') { 8 | exclude 'Development*.groovy' 9 | into 'config' 10 | } 11 | into 'build/resources' 12 | } 13 | -------------------------------------------------------------------------------- /complex-file-copy/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle complexCopy 3 | -------------------------------------------------------------------------------- /complex-file-copy/src/main/templates/main.gtpl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ${title} 5 | 6 | 7 |

${good.morning}, ${user}

8 | 9 | -------------------------------------------------------------------------------- /complex-file-copy/src/main/templates/popup.gtpl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ${title} - POPUP 5 | 6 | 7 |

${good.morning}, ${user}

8 | Click here to close 9 | 10 | -------------------------------------------------------------------------------- /complex-file-copy/src/main/templates/style_guide.md: -------------------------------------------------------------------------------- 1 | # Groovy Template Style Guide 2 | 3 | This file describes the visual design style guidelines that should be followed by all templates in this directory. 4 | -------------------------------------------------------------------------------- /custom-task/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | import org.gradle.api.DefaultTask 3 | import org.gradle.api.tasks.TaskAction 4 | 5 | task greet(type: GreetingTask) { 6 | greeted = 'world' 7 | } 8 | 9 | //greet << { thirdGreeting() } 10 | 11 | 12 | class GreetingTask 13 | extends DefaultTask { 14 | 15 | def greeted 16 | 17 | 18 | @TaskAction 19 | void secondGreeting() { 20 | logger.lifecycle "I SAID HELLO, ${greeted}" 21 | } 22 | 23 | // @TaskAction 24 | void thirdGreeting() { 25 | logger.lifecycle "I'm tired of greeting you, ${greeted}" 26 | } 27 | 28 | @TaskAction 29 | void firstGreeting() { 30 | logger.lifecycle "hello, ${greeted}" 31 | } 32 | 33 | } -------------------------------------------------------------------------------- /custom-task/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle greet -------------------------------------------------------------------------------- /file-collection-lab/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | repositories { 4 | mavenCentral() 5 | } 6 | 7 | dependencies { 8 | compile 'org.springframework:spring-context:3.1.1.RELEASE' 9 | } 10 | -------------------------------------------------------------------------------- /file-collection-lab/src/main/java/org/gradle/example/ConsoleContentSink.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example; 2 | 3 | import org.springframework.stereotype.Component; 4 | 5 | @Component 6 | public class ConsoleContentSink implements ContentSink { 7 | 8 | public void sink(String line) { 9 | System.out.println(line); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /file-collection-lab/src/main/java/org/gradle/example/ContentFactory.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example; 2 | 3 | public interface ContentFactory { 4 | 5 | public Content getContentProvider(String poet); 6 | 7 | } -------------------------------------------------------------------------------- /file-collection-lab/src/main/java/org/gradle/example/ContentSink.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example; 2 | 3 | public interface ContentSink { 4 | 5 | public void sink(String line); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /file-collection-lab/src/main/java/org/gradle/example/DefaultContentFactory.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Component; 5 | 6 | @Component(value="poetryFactory") 7 | public class DefaultContentFactory implements ContentFactory { 8 | 9 | @Autowired 10 | private ContentRegistry contentRegistry; 11 | 12 | public Content getContentProvider(String poet) { 13 | return contentRegistry.get(poet); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /file-collection-lab/src/main/java/org/gradle/example/PoetryEmitter.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example; 2 | 3 | import org.springframework.context.support.ClassPathXmlApplicationContext; 4 | 5 | public class PoetryEmitter { 6 | 7 | public static void main(String[] args) { 8 | ClassPathXmlApplicationContext applicationContext; 9 | applicationContext = new ClassPathXmlApplicationContext("application-context.xml"); 10 | 11 | ContentFactory factory = (ContentFactory)applicationContext.getBean("poetryFactory"); 12 | Content content = factory.getContentProvider("shakespeare"); 13 | content.emit(); 14 | } 15 | 16 | } -------------------------------------------------------------------------------- /file-collection-lab/src/main/resources/henley.txt: -------------------------------------------------------------------------------- 1 | Out of the night that covers me, 2 | Black as the Pit from pole to pole, 3 | I thank whatever gods may be 4 | For my unconquerable soul. 5 | 6 | In the fell clutch of circumstance 7 | I have not winced nor cried aloud. 8 | Under the bludgeonings of chance 9 | My head is bloody, but unbowed. 10 | 11 | Beyond this place of wrath and tears 12 | Looms but the Horror of the shade, 13 | And yet the menace of the years 14 | Finds, and shall find, me unafraid. 15 | 16 | It matters not how strait the gate, 17 | How charged with punishments the scroll. 18 | I am the master of my fate: 19 | I am the captain of my soul. 20 | 21 | -------------------------------------------------------------------------------- /file-operations-lab/.gradletasknamecache: -------------------------------------------------------------------------------- 1 | dependencies 2 | help 3 | projects 4 | properties 5 | tasks 6 | -------------------------------------------------------------------------------- /file-operations-lab/copy-exclude.gradle: -------------------------------------------------------------------------------- 1 | task copyPoems(type: Copy) { 2 | from 'text-files' 3 | into 'build/poems' 4 | exclude '**/*henley*' 5 | } 6 | -------------------------------------------------------------------------------- /file-operations-lab/copy-include.gradle: -------------------------------------------------------------------------------- 1 | task copyPoems(type: Copy) { 2 | from 'text-files' 3 | into 'build/poems' 4 | include '**/sh*.txt' 5 | } 6 | -------------------------------------------------------------------------------- /file-operations-lab/file-collection-helpful.gradle: -------------------------------------------------------------------------------- 1 | task copyPoems(type: Copy) { 2 | from 'text-files' 3 | into 'build/poems' 4 | } 5 | 6 | println "HELPFUL:" 7 | println files(copyPoems).files 8 | -------------------------------------------------------------------------------- /file-operations-lab/file-collection-not-helpful.gradle: -------------------------------------------------------------------------------- 1 | task copyPoems(type: Copy) { 2 | from 'text-files' 3 | into 'build/poems' 4 | } 5 | 6 | println "NOT HELPFUL:" 7 | println files(copyPoems) 8 | -------------------------------------------------------------------------------- /file-operations-lab/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle -b trivial-copy.gradle copyPoems 3 | gradle -b copy-exclude.gradle copyPoems 4 | gradle -b copy-include.gradle copyPoems 5 | -------------------------------------------------------------------------------- /file-operations-lab/text-files/henley.txt: -------------------------------------------------------------------------------- 1 | Out of the night that covers me, 2 | Black as the Pit from pole to pole, 3 | I thank whatever gods may be 4 | For my unconquerable soul. 5 | 6 | In the fell clutch of circumstance 7 | I have not winced nor cried aloud. 8 | Under the bludgeonings of chance 9 | My head is bloody, but unbowed. 10 | 11 | Beyond this place of wrath and tears 12 | Looms but the Horror of the shade, 13 | And yet the menace of the years 14 | Finds, and shall find, me unafraid. 15 | 16 | It matters not how strait the gate, 17 | How charged with punishments the scroll. 18 | I am the master of my fate: 19 | I am the captain of my soul. 20 | 21 | -------------------------------------------------------------------------------- /file-operations-lab/trivial-copy.gradle: -------------------------------------------------------------------------------- 1 | task copyPoems(type: Copy) { 2 | from 'text-files' 3 | into 'build/poems' 4 | } 5 | -------------------------------------------------------------------------------- /filtering/copy-and-hash.gradle: -------------------------------------------------------------------------------- 1 | import java.security.MessageDigest; 2 | 3 | task copyAndHash(type: Copy) { 4 | MessageDigest sha1 = MessageDigest.getInstance("SHA-1"); 5 | 6 | into 'build/deploy' 7 | from 'source' 8 | eachFile { fileCopyDetails -> 9 | sha1.digest(fileCopyDetails.file.bytes) 10 | } 11 | doLast { 12 | Formatter hexHash = new Formatter() 13 | sha1.digest().each { b -> hexHash.format('%02x', b) } 14 | println hexHash 15 | } 16 | } -------------------------------------------------------------------------------- /filtering/expand.gradle: -------------------------------------------------------------------------------- 1 | versionId = '1.6' 2 | 3 | task copyProductionConfig(type: Copy) { 4 | from 'source' 5 | include 'config.properties' 6 | into 'build/war/WEB-INF/config' 7 | expand([ 8 | databaseHostname: 'db.company.com', 9 | version: versionId, 10 | buildNumber: (int)(Math.random() * 1000), 11 | date: new Date() 12 | ]) 13 | } -------------------------------------------------------------------------------- /filtering/filter-class.gradle: -------------------------------------------------------------------------------- 1 | import org.apache.tools.ant.filters.* 2 | import com.petebevin.markdown.MarkdownProcessor 3 | 4 | buildscript { 5 | repositories { 6 | mavenRepo url: 'http://scala-tools.org/repo-releases' 7 | } 8 | 9 | dependencies { 10 | classpath 'org.markdownj:markdownj:0.3.0-1.0.2b4' 11 | } 12 | } 13 | 14 | class MarkdownFilter extends FilterReader { 15 | MarkdownFilter(Reader input) { 16 | super(new StringReader(new MarkdownProcessor().markdown(input.text))) 17 | } 18 | } 19 | 20 | task copyPoem(type: Copy) { 21 | into 'build/poems' 22 | from 'source' 23 | include 'todo.md' 24 | rename { it - '.md' + '.html'} 25 | filter MarkdownFilter 26 | } -------------------------------------------------------------------------------- /filtering/filter-closure.gradle: -------------------------------------------------------------------------------- 1 | import com.petebevin.markdown.MarkdownProcessor 2 | 3 | buildscript { 4 | repositories { 5 | mavenRepo url: 'http://scala-tools.org/repo-releases' 6 | } 7 | 8 | dependencies { 9 | classpath 'org.markdownj:markdownj:0.3.0-1.0.2b4' 10 | } 11 | } 12 | 13 | task markdown(type: Copy) { 14 | def markdownProcessor = new MarkdownProcessor() 15 | into 'build/poems' 16 | from 'source' 17 | include 'todo.md' 18 | rename { it - '.md' + '.html'} 19 | filter { line -> 20 | markdownProcessor.markdown(line) 21 | } 22 | } -------------------------------------------------------------------------------- /filtering/source/config.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Application configuration file 3 | # 4 | hostname: ${databaseHostname} 5 | appVersion: ${version} 6 | locale: en_us 7 | initialConnections: 10 8 | transferThrottle: 5400 9 | queueTimeout: 30000 10 | buildNumber: ${buildNumber} 11 | buildDate: ${date.format("yyyyMMdd'T'HHmmssZ")} 12 | 13 | -------------------------------------------------------------------------------- /filtering/source/todo.md: -------------------------------------------------------------------------------- 1 | # Today 2 | * Sharpen [Gradle](http://gradle.org) skills 3 | * Exercise 4 | 5 | # Tomorrow 6 | * Become a better build master 7 | * Be awesome 8 | 9 | -------------------------------------------------------------------------------- /hello-minimal-build-file/build.gradle: -------------------------------------------------------------------------------- 1 | task helloWorld << { 2 | println 'hello, world' 3 | } 4 | 5 | -------------------------------------------------------------------------------- /hello-minimal-build-file/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle helloWorld -------------------------------------------------------------------------------- /hello-minimal-java-build-file/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | -------------------------------------------------------------------------------- /hello-minimal-java-build-file/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle build 3 | -------------------------------------------------------------------------------- /hello-minimal-java-build-file/src/main/java/org/gradle/example/simple/HelloWorld.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | public class HelloWorld { 4 | public static void main(String args[]) { 5 | System.out.println("hello, world"); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /hello-nativeexecute/build.gradle: -------------------------------------------------------------------------------- 1 | task helloWorldOnAMac << { 2 | "say \"This says 'hello' audibly on a Mac\"".execute() 3 | } 4 | -------------------------------------------------------------------------------- /hello-nativeexecute/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle helloWorldOnAMac -------------------------------------------------------------------------------- /hello-smart-exclusions/build.gradle: -------------------------------------------------------------------------------- 1 | task compileStuff << { 2 | print 'Building...' 3 | } 4 | 5 | task jarStuff(dependsOn: compileStuff) << { 6 | print 'JARing...' 7 | } 8 | 9 | task unitTestStuff(dependsOn: compileStuff) << { 10 | println 'Unit testing...' 11 | } 12 | 13 | task integrationTestStuff(dependsOn: jarStuff) << { 14 | println 'Integration testing...' 15 | } 16 | 17 | task deployStuff(dependsOn: jarStuff) << { 18 | println 'Deploying...' 19 | } 20 | 21 | task doItAll(dependsOn: [unitTestStuff, integrationTestStuff, deployStuff]) << { 22 | println 'Doing it all...' 23 | } 24 | -------------------------------------------------------------------------------- /hello-smart-exclusions/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle doItAll 3 | gradle doItAll -x integrationTestStuff 4 | gradle doItAll -x unitTestStuff 5 | gradle doItAll -x deployStuff 6 | gradle doItAll -x integrationTestStuff -x unitTestStuff -------------------------------------------------------------------------------- /hello-two-task-build-file/build.gradle: -------------------------------------------------------------------------------- 1 | task hello << { 2 | print 'hello, ' 3 | } 4 | 5 | task world(dependsOn: hello) << { 6 | println 'world' 7 | } -------------------------------------------------------------------------------- /hello-two-task-build-file/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle -q world -------------------------------------------------------------------------------- /hooks-addrule/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle testOnlyHelloWorld 3 | -------------------------------------------------------------------------------- /hooks-addrule/src/main/java/HelloWorld.java: -------------------------------------------------------------------------------- 1 | public class HelloWorld { 2 | public static void main(String args[]) { 3 | System.out.println("hello, world"); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /hooks-addrule/src/test/java/HelloWorldTest1.java: -------------------------------------------------------------------------------- 1 | import org.junit.Test; 2 | import static org.junit.Assert.*; 3 | 4 | public class HelloWorldTest1 { 5 | @Test 6 | public void testHelloWorldPrinting1() { 7 | HelloWorld.main(null); 8 | assertTrue(true); 9 | } 10 | } -------------------------------------------------------------------------------- /hooks-addrule/src/test/java/HelloWorldTest2.java: -------------------------------------------------------------------------------- 1 | import org.junit.Test; 2 | import static org.junit.Assert.*; 3 | 4 | public class HelloWorldTest2 { 5 | @Test 6 | public void testHelloWorldPrinting2() { 7 | HelloWorld.main(null); 8 | assertTrue(true); 9 | } 10 | } -------------------------------------------------------------------------------- /hooks-afterevaluate/build.gradle: -------------------------------------------------------------------------------- 1 | afterEvaluate { 2 | if (file('grammars').isDirectory()) { 3 | println "'grammars' directory found" 4 | 5 | task testGrammars << { 6 | println "Running grammar tests" 7 | } 8 | } 9 | else { 10 | println "'grammars' directory not found" 11 | } 12 | } 13 | 14 | beforeEvaluate { 15 | println "Going to see about grammars" 16 | } 17 | 18 | task helloWorld << { 19 | println "hello, world" 20 | } 21 | -------------------------------------------------------------------------------- /hooks-afterevaluate/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | rm -rf grammars 3 | gradle tasks -q 4 | # folder does not exist, so we have no testGrammars task 5 | 6 | mkdir grammars 7 | gradle tasks -q 8 | # folder does not exist, so we get a testGrammars task 9 | -------------------------------------------------------------------------------- /hooks-afterevaluateonsubproject/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle tasks -------------------------------------------------------------------------------- /hooks-afterevaluateonsubproject/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'subprojecta', 'subprojectb' 2 | -------------------------------------------------------------------------------- /hooks-afterevaluateonsubproject/subprojecta/build.gradle: -------------------------------------------------------------------------------- 1 | someproject = true 2 | 3 | task doOtherAThings << { 4 | println "Performing work in doOtherAThings" 5 | } -------------------------------------------------------------------------------- /hooks-afterevaluateonsubproject/subprojectb/build.gradle: -------------------------------------------------------------------------------- 1 | someproject = false 2 | 3 | task doOtherBThings << { 4 | println "Performing work in doOtherBThings" 5 | } -------------------------------------------------------------------------------- /hooks-lab/before-evaluate/build.gradle: -------------------------------------------------------------------------------- 1 | allprojects { 2 | beforeEvaluate { 3 | if (project.file('grammars').isDirectory()) { 4 | println "'grammars' found in ${project.name}" 5 | 6 | task testGrammars << { 7 | println "Running grammar tests in ${project.name}" 8 | } 9 | } 10 | else { 11 | println "'grammars' not found in ${project.name}" 12 | } 13 | } 14 | } 15 | 16 | task helloWorld { 17 | doLast { 18 | println "the parent says hello" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /hooks-lab/before-evaluate/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'subproject1', 'subproject2' 2 | 3 | gradle.projectsLoaded { gradle -> 4 | println "Projects loaded!" 5 | gradle.rootProject.task("monkey") { doLast { println "monkey"} } 6 | } 7 | 8 | -------------------------------------------------------------------------------- /hooks-lab/before-evaluate/subproject1/build.gradle: -------------------------------------------------------------------------------- 1 | task helloWorld { 2 | doLast { 3 | println "subproject1 says hello" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /hooks-lab/before-evaluate/subproject2/build.gradle: -------------------------------------------------------------------------------- 1 | task helloWorld { 2 | doLast { 3 | println "subproject2 says hello" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /hooks-lab/build-finished/build.gradle: -------------------------------------------------------------------------------- 1 | gradle.buildFinished { buildResult -> 2 | println "BUILD FINISHED" 3 | println buildResult.failure?.getClass() 4 | println buildResult.failure 5 | } 6 | 7 | task succeed { 8 | doLast { 9 | println "hello, world" 10 | } 11 | } 12 | 13 | task fail { 14 | doLast { 15 | throw new Exception("Build failed") 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /hooks-lab/projects-loaded/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'liquibase' 2 | 3 | liquibase { 4 | changelogs { 5 | main { 6 | file = file('changelog.groovy') 7 | } 8 | } 9 | 10 | databases { 11 | sandbox { 12 | url = 'jdbc:h2:db/liquibase_workshop;FILE_LOCK=NO' 13 | username = 'sa' 14 | password = '' 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /hooks-lab/projects-loaded/settings.gradle: -------------------------------------------------------------------------------- 1 | gradle.projectsLoaded { g -> 2 | g.rootProject.buildscript { 3 | repositories { 4 | mavenCentral() 5 | } 6 | dependencies { 7 | classpath 'com.augusttechgroup:gradle-liquibase-plugin:0.7' 8 | classpath 'com.h2database:h2:1.3.160' 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /hooks-lab/projects-loaded/utils-project/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'liquibase' 2 | 3 | task liquibaseInit { 4 | dependsOn << [ generateChangeLog, changeLogSync ] 5 | } 6 | -------------------------------------------------------------------------------- /hooks-rule-class/build.gradle: -------------------------------------------------------------------------------- 1 | import org.gradle.examples.rules.HttpPingRule 2 | 3 | ext { 4 | pingLogDir = "${buildDir}/reachable" 5 | } 6 | 7 | tasks.addRule(new HttpPingRule(project)) 8 | -------------------------------------------------------------------------------- /hooks-rule-class/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle testOnlyHelloWorld 3 | -------------------------------------------------------------------------------- /java-build-with-resources/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | repositories { 4 | mavenCentral() 5 | } 6 | 7 | dependencies { 8 | compile 'commons-codec:commons-codec:1.6' 9 | } 10 | 11 | task poe(type: JavaExec) { 12 | main = 'org.gradle.poetry.PoetryEmitter' 13 | classpath = runtimeClasspath 14 | } 15 | -------------------------------------------------------------------------------- /java-build-with-resources/src/main/resources/henley.txt: -------------------------------------------------------------------------------- 1 | Out of the night that covers me, 2 | Black as the Pit from pole to pole, 3 | I thank whatever gods may be 4 | For my unconquerable soul. 5 | 6 | In the fell clutch of circumstance 7 | I have not winced nor cried aloud. 8 | Under the bludgeonings of chance 9 | My head is bloody, but unbowed. 10 | 11 | Beyond this place of wrath and tears 12 | Looms but the Horror of the shade, 13 | And yet the menace of the years 14 | Finds, and shall find, me unafraid. 15 | 16 | It matters not how strait the gate, 17 | How charged with punishments the scroll. 18 | I am the master of my fate: 19 | I am the captain of my soul. 20 | -------------------------------------------------------------------------------- /maven-default-task/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | -------------------------------------------------------------------------------- /maven-default-task/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | com.gradleware.samples 5 | sample-defaultgoal 6 | 0.0.1-SNAPSHOT 7 | 8 | 9 | clean install 10 | 11 | -------------------------------------------------------------------------------- /maven-default-task/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | mvn -------------------------------------------------------------------------------- /maven-gradle-comparison-configinstall/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'maven' 3 | 4 | defaultTasks = ['install'] 5 | 6 | configure(install.repositories.mavenInstaller) { 7 | pom.project { 8 | groupId 'com.gradleware.samples' 9 | artifactId 'sample02-barestbones' 10 | version '0.0.1-SNAPSHOT' 11 | description ='A sample project these uses the Maven plugin and defines many attributes.' 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /maven-gradle-comparison-configinstall/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle -------------------------------------------------------------------------------- /maven-gradle-comparison-configinstall/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /maven-gradle-comparison-defaulttasks/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | //Alternate approach 1 4 | //defaultTasks = ['clean', 'build'] 5 | 6 | //Alternate approach 2 7 | //defaultTasks 'clean' 8 | 9 | //Approach 3 10 | defaultTasks 'clean', 'build' -------------------------------------------------------------------------------- /maven-gradle-comparison-defaulttasks/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle -------------------------------------------------------------------------------- /maven-gradle-comparison-defaulttasks/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-fields/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'maven' 3 | 4 | group = 'com.gradleware.samples' 5 | version = '0.0.1-SNAPSHOT' 6 | 7 | repositories { 8 | mavenCentral() 9 | } 10 | 11 | dependencies { 12 | //testCompile group: 'junit', name: 'junit', version: '4.8.+' //A flexibly defined version requires an expensive server poll 13 | testCompile group: 'junit', name: 'junit', version: '4.8.2' 14 | compile group: 'commons-beanutils', name: 'commons-beanutils', version: '1.8.3' 15 | } -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-fields/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle test install dependencies -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-fields/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-fields/src/test/java/TestMain.java: -------------------------------------------------------------------------------- 1 | import static org.junit.Assert.assertTrue; 2 | import static org.junit.Assert.assertFalse; 3 | import org.junit.Test; 4 | 5 | public class TestMain 6 | { 7 | @Test 8 | public void testTrue() 9 | { 10 | assertTrue( true ); 11 | } 12 | 13 | @Test 14 | public void testFalse() 15 | { 16 | assertFalse( false ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-groovy/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'groovy' 3 | 4 | group = 'com.gradleware.samples' 5 | version = '0.0.1-SNAPSHOT' 6 | 7 | repositories { 8 | mavenCentral() 9 | } 10 | 11 | dependencies { 12 | testCompile 'junit:junit:4.8.2' 13 | compile 'commons-beanutils:commons-beanutils:1.8.3' 14 | //groovy 'mule:mule-extras-groovy:1.+' 15 | // ^ The "+" flexible definition of a version 16 | // requires Internet access 17 | groovy 'mule:mule-extras-groovy:1.1.1' 18 | } -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-groovy/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle test build dependencies -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-groovy/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-groovy/src/test/java/TestMain.java: -------------------------------------------------------------------------------- 1 | import static org.junit.Assert.assertTrue; 2 | import static org.junit.Assert.assertFalse; 3 | import org.junit.Test; 4 | 5 | public class TestMain 6 | { 7 | @Test 8 | public void testTrue() 9 | { 10 | assertTrue( true ); 11 | } 12 | 13 | @Test 14 | public void testFalse() 15 | { 16 | assertFalse( false ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-iterateprint/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-iterateprint/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-iterateprint/src/test/java/TestMain.java: -------------------------------------------------------------------------------- 1 | import static org.junit.Assert.assertTrue; 2 | import static org.junit.Assert.assertFalse; 3 | import org.junit.Test; 4 | 5 | public class TestMain 6 | { 7 | @Test 8 | public void testTrue() 9 | { 10 | assertTrue( true ); 11 | } 12 | 13 | @Test 14 | public void testFalse() 15 | { 16 | assertFalse( false ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-simplest/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | group = 'com.gradleware.samples' 4 | version = '0.0.1-SNAPSHOT' 5 | 6 | repositories { 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | testCompile 'junit:junit:4.8.2' 12 | compile 'commons-beanutils:commons-beanutils:1.8.3' 13 | } -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-simplest/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle test build dependencies -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-simplest/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /maven-gradle-comparison-dependency-simplest/src/test/java/TestMain.java: -------------------------------------------------------------------------------- 1 | import static org.junit.Assert.assertTrue; 2 | import static org.junit.Assert.assertFalse; 3 | import org.junit.Test; 4 | 5 | public class TestMain 6 | { 7 | @Test 8 | public void testTrue() 9 | { 10 | assertTrue( true ); 11 | } 12 | 13 | @Test 14 | public void testFalse() 15 | { 16 | assertFalse( false ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /maven-gradle-comparison-simple/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' -------------------------------------------------------------------------------- /maven-gradle-comparison-simple/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle build -------------------------------------------------------------------------------- /maven-gradle-comparison-simple/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /maven-gradle-comparison-tests/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'maven' 3 | 4 | group = 'com.gradleware.samples' 5 | version = '0.0.1-SNAPSHOT' 6 | 7 | repositories { 8 | mavenCentral() 9 | } 10 | 11 | dependencies { 12 | testCompile group: 'junit', name: 'junit', version: '4.8.+' 13 | } -------------------------------------------------------------------------------- /maven-gradle-comparison-tests/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle test install -------------------------------------------------------------------------------- /maven-gradle-comparison-tests/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /maven-gradle-comparison-tests/src/test/java/TestMain.java: -------------------------------------------------------------------------------- 1 | import static org.junit.Assert.assertTrue; 2 | import static org.junit.Assert.assertFalse; 3 | import org.junit.Test; 4 | 5 | public class TestMain 6 | { 7 | @Test 8 | public void testTrue() 9 | { 10 | assertTrue( true ); 11 | } 12 | 13 | @Test 14 | public void testFalse() 15 | { 16 | assertFalse( false ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /maven-gradle-comparison-withallattrs/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'maven' 3 | 4 | group = 'com.gradleware.samples' 5 | // archivesBaseName is, via the java plugin, then the Maven plugin, 6 | // ultimately setting artifactId for the Maven POM generation 7 | // project.name is used by default, but is immutable 8 | archivesBaseName = 'sample01-barestbones' 9 | version = '0.0.1-SNAPSHOT' 10 | description ="A sample project these uses the Maven plugin and defines many attributes." -------------------------------------------------------------------------------- /maven-gradle-comparison-withallattrs/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle install -------------------------------------------------------------------------------- /maven-gradle-comparison-withallattrs/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /maven-gradle-comparison-withattrs/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | version = '0.0.1-SNAPSHOT' -------------------------------------------------------------------------------- /maven-gradle-comparison-withattrs/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle build -------------------------------------------------------------------------------- /maven-gradle-comparison-withattrs/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /maven-m2metadataplugin/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'maven-metadata' 2 | 3 | //Repo to retrieve the maven-metadata plugin 4 | buildscript { 5 | repositories { 6 | mavenRepo urls: ["http://repo.jfrog.org/artifactory/plugins-snapshots"] 7 | } 8 | 9 | dependencies { 10 | classpath "org.gradle.plugins:gradle-m2metadata-plugin:1.0-SNAPSHOT" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /maven-m2metadataplugin/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | com.gradleware.samples 5 | sample01-m2metadata 6 | 0.0.2-SNAPSHOT 7 | 8 | 9 | 10 | log4j 11 | log4j 12 | 1.2.16 13 | 14 | 15 | junit 16 | junit 17 | 4.8.2 18 | test 19 | 20 | 21 | -------------------------------------------------------------------------------- /maven-m2metadataplugin/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #Build the result using Gradle 4 | gradle build 5 | -------------------------------------------------------------------------------- /maven-m2metadataplugin/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | import org.apache.log4j.Logger; 2 | 3 | public class Main { 4 | private static Logger logger = Logger.getLogger("com.sample"); 5 | 6 | public static void main(String args[]) { 7 | logger.warn("Working along with log4j."); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /maven-m2metadataplugin/src/test/java/TestMain.java: -------------------------------------------------------------------------------- 1 | import org.junit.Test; 2 | import static org.junit.Assert.*; 3 | 4 | public class TestMain { 5 | @Test 6 | public void testMain() { 7 | Main.main(null); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /maven-multiplesourcedirs/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | sourceSets.main.java.srcDirs = 4 | ["src/main/java", "srcAdditional/main/java"] 5 | 6 | // This add (while maintaining the default src/main/java) 7 | // can also be accomplished with a call: 8 | sourceSets.main.java.srcDirs 'srcAdditionalTwo/main/java' 9 | -------------------------------------------------------------------------------- /maven-multiplesourcedirs/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle build -------------------------------------------------------------------------------- /maven-multiplesourcedirs/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /maven-multiplesourcedirs/srcAdditional/main/java/MainAdditional.java: -------------------------------------------------------------------------------- 1 | public class MainAdditional 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /maven-multiplesourcedirs/srcBonus/main/java/MainBonus.java: -------------------------------------------------------------------------------- 1 | public class MainBonus 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Bonus Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /maven-properties-comparison/properties-basic.txt, properties-javaplugin.txt (Untitled 2).textcomparison: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/maven-properties-comparison/properties-basic.txt, properties-javaplugin.txt (Untitled 2).textcomparison -------------------------------------------------------------------------------- /maven-smallest-maven-pom/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'maven' 3 | 4 | group = 'com.gradleware.samples' 5 | version = '0.0.1-SNAPSHOT' 6 | 7 | 8 | description = """""" 9 | 10 | sourceCompatibility = 1.5 11 | targetCompatibility = 1.5 12 | 13 | 14 | 15 | repositories { 16 | 17 | mavenRepo urls: ["http://repo1.maven.org/maven2"] 18 | } 19 | -------------------------------------------------------------------------------- /maven-smallest-maven-pom/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | com.gradleware.samples 5 | sample01-barestbones 6 | 0.0.1-SNAPSHOT 7 | -------------------------------------------------------------------------------- /maven-smallest-maven-pom/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #Convert the Maven POM to a build.gradle file 4 | maven2gradle 5 | 6 | #Build the result using Gradle 7 | gradle build 8 | -------------------------------------------------------------------------------- /maven-smallest-maven-pom/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'sample01-barestbones' 2 | -------------------------------------------------------------------------------- /maven-uploadlocal/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'maven' 3 | 4 | group = 'com.gradleware.samples' 5 | 6 | uploadArchives { 7 | repositories.mavenDeployer { 8 | repository(url: "file:///Users/mccm06/Documents/Temp/Scratch/mytemprepo/") 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /maven-uploadlocal/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle uploadArchives -------------------------------------------------------------------------------- /maven-uploadlocal/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /maven-uploadwebdav/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'maven' 3 | 4 | group = 'com.gradleware.samples' 5 | 6 | configurations { 7 | deployerJars 8 | } 9 | 10 | repositories { 11 | mavenCentral() 12 | } 13 | 14 | dependencies { 15 | deployerJars "org.apache.maven.wagon:wagon-webdav-jackrabbit:1.0-beta-7" 16 | } 17 | 18 | uploadArchives { 19 | repositories.mavenDeployer { 20 | configuration = configurations.deployerJars 21 | repository( 22 | url: "http://localhost:8081/nexus/content/repositories/matthew" 23 | ) 24 | } 25 | } -------------------------------------------------------------------------------- /maven-uploadwebdav/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle uploadArchives -------------------------------------------------------------------------------- /maven-uploadwebdav/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /multiproject-eclipse-plugin/.gitignore: -------------------------------------------------------------------------------- 1 | .classpath 2 | .project 3 | .settings/ 4 | -------------------------------------------------------------------------------- /multiproject-eclipse-plugin/codec/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /multiproject-eclipse-plugin/codec/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | multiproject-hybrid.codec 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | com.springsource.sts.gradle.core.nature 16 | org.eclipse.jdt.core.javanature 17 | 18 | 19 | -------------------------------------------------------------------------------- /multiproject-eclipse-plugin/codec/build.gradle: -------------------------------------------------------------------------------- 1 | repositories { 2 | mavenCentral() 3 | } 4 | 5 | dependencies { 6 | compile 'commons-codec:commons-codec:1.5' 7 | } 8 | -------------------------------------------------------------------------------- /multiproject-eclipse-plugin/content/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /multiproject-eclipse-plugin/content/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | multiproject-hybrid.content 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | com.springsource.sts.gradle.core.nature 16 | org.eclipse.jdt.core.javanature 17 | 18 | 19 | -------------------------------------------------------------------------------- /multiproject-eclipse-plugin/content/src/main/java/org/gradle/example/content/Content.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.content; 2 | 3 | import java.util.List; 4 | 5 | public interface Content { 6 | public List getLines(); 7 | } 8 | -------------------------------------------------------------------------------- /multiproject-eclipse-plugin/content/src/main/java/org/gradle/example/content/WilliamCarlosWilliamsContent.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.content; 2 | 3 | import java.util.List; 4 | import java.util.ArrayList; 5 | 6 | public class WilliamCarlosWilliamsContent 7 | implements Content { 8 | 9 | public List getLines() { 10 | List lines = new ArrayList(); 11 | 12 | lines.add("so much depends upon"); 13 | lines.add("a red wheel barrow"); 14 | lines.add("glazed with rain"); 15 | lines.add("beside the white chickens"); 16 | 17 | return lines; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /multiproject-eclipse-plugin/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle eclipse -------------------------------------------------------------------------------- /multiproject-eclipse-plugin/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'codec', 'content' -------------------------------------------------------------------------------- /multiproject-hybrid/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | out/ 4 | .classpath 5 | .project 6 | .settings/ 7 | bin/ 8 | -------------------------------------------------------------------------------- /multiproject-hybrid/build.gradle: -------------------------------------------------------------------------------- 1 | allprojects { 2 | apply plugin: 'java' 3 | } 4 | 5 | evaluationDependsOn(':codec') 6 | 7 | dependencies { 8 | compile project(':codec') 9 | compile project(':content') 10 | } 11 | 12 | [ 'shakespeare', 'williams', 'shelley', 'chesterton' ].each { poet -> 13 | task "${poet}"(type: JavaExec) { 14 | group = 'Encoded Poetry' 15 | args = [ poet ] 16 | main = 'org.gradle.example.codedpoet.CommandLine' 17 | classpath sourceSets.main.runtimeClasspath, 18 | project(':codec').sourceSets.main.runtimeClasspath 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /multiproject-hybrid/codec/build.gradle: -------------------------------------------------------------------------------- 1 | repositories { 2 | mavenCentral() 3 | } 4 | 5 | dependencies { 6 | compile 'commons-codec:commons-codec:1.5' 7 | } 8 | -------------------------------------------------------------------------------- /multiproject-hybrid/content/src/main/java/org/gradle/example/content/Content.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.content; 2 | 3 | import java.util.List; 4 | 5 | public interface Content { 6 | public List getLines(); 7 | } 8 | -------------------------------------------------------------------------------- /multiproject-hybrid/content/src/main/java/org/gradle/example/content/WilliamCarlosWilliamsContent.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.content; 2 | 3 | import java.util.List; 4 | import java.util.ArrayList; 5 | 6 | public class WilliamCarlosWilliamsContent 7 | implements Content { 8 | 9 | public List getLines() { 10 | List lines = new ArrayList(); 11 | 12 | lines.add("so much depends upon"); 13 | lines.add("a red wheel barrow"); 14 | lines.add("glazed with rain"); 15 | lines.add("beside the white chickens"); 16 | 17 | return lines; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /multiproject-hybrid/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle williams -------------------------------------------------------------------------------- /multiproject-hybrid/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'codec', 'content' -------------------------------------------------------------------------------- /multiproject-individual/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | out/ 4 | 5 | -------------------------------------------------------------------------------- /multiproject-individual/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | dependencies { 4 | compile project(':codec') 5 | compile project(':content') 6 | } 7 | 8 | [ 'shakespeare', 'williams', 'shelley', 'chesterton' ].each { poet -> 9 | task "${poet}"(type: JavaExec) { 10 | group = 'Encoded Poetry' 11 | args = [ poet ] 12 | main = 'org.gradle.example.codedpoet.CommandLine' 13 | classpath runtimeClasspath 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /multiproject-individual/codec/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | repositories { 4 | mavenCentral() 5 | } 6 | 7 | dependencies { 8 | compile 'commons-codec:commons-codec:1.6' 9 | } 10 | -------------------------------------------------------------------------------- /multiproject-individual/content/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' -------------------------------------------------------------------------------- /multiproject-individual/content/src/main/java/org/gradle/example/content/Content.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.content; 2 | 3 | import java.util.List; 4 | 5 | public interface Content { 6 | public List getLines(); 7 | } 8 | -------------------------------------------------------------------------------- /multiproject-individual/content/src/main/java/org/gradle/example/content/WilliamCarlosWilliamsContent.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.content; 2 | 3 | import java.util.List; 4 | import java.util.ArrayList; 5 | 6 | public class WilliamCarlosWilliamsContent 7 | implements Content { 8 | 9 | public List getLines() { 10 | List lines = new ArrayList(); 11 | 12 | lines.add("so much depends upon"); 13 | lines.add("a red wheel barrow"); 14 | lines.add("glazed with rain"); 15 | lines.add("beside the white chickens"); 16 | 17 | return lines; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /multiproject-individual/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle williams -------------------------------------------------------------------------------- /multiproject-individual/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'codec', 'content' -------------------------------------------------------------------------------- /multiproject-unified/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | out/ 4 | 5 | -------------------------------------------------------------------------------- /multiproject-unified/content/src/main/java/org/gradle/example/content/Content.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.content; 2 | 3 | import java.util.List; 4 | 5 | public interface Content { 6 | public List getLines(); 7 | } 8 | -------------------------------------------------------------------------------- /multiproject-unified/content/src/main/java/org/gradle/example/content/WilliamCarlosWilliamsContent.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.content; 2 | 3 | import java.util.List; 4 | import java.util.ArrayList; 5 | 6 | public class WilliamCarlosWilliamsContent 7 | implements Content { 8 | 9 | public List getLines() { 10 | List lines = new ArrayList(); 11 | 12 | lines.add("so much depends upon"); 13 | lines.add("a red wheel barrow"); 14 | lines.add("glazed with rain"); 15 | lines.add("beside the white chickens"); 16 | 17 | return lines; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /multiproject-unified/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle williams -------------------------------------------------------------------------------- /multiproject-unified/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'codec', 'content' -------------------------------------------------------------------------------- /other-clarifying-confusing-syntax/build.gradle: -------------------------------------------------------------------------------- 1 | //Run me by typing `gradle hello_world` 2 | 3 | task early << { 4 | def earlynothing = 0 5 | } 6 | 7 | 8 | 9 | task hello_world << { 10 | println "Hello World New Style." 11 | } 12 | 13 | 14 | task goodbye_world << { 15 | println "echo Shell Goodbye World New Style.".execute().text 16 | } 17 | 18 | 19 | 20 | task late (dependsOn: goodbye_world){ 21 | def latenothing = 1 22 | } 23 | 24 | task latest << { 25 | def latestnothing = 2 26 | } -------------------------------------------------------------------------------- /other-clarifying-confusing-syntax/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle late -------------------------------------------------------------------------------- /other-printalldependencies/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle printDeps -------------------------------------------------------------------------------- /other-printalldependencies/simplerprint.gradle: -------------------------------------------------------------------------------- 1 | //via Luke Daley 2 | apply plugin: 'java' 3 | apply plugin: 'maven' 4 | 5 | group = 'com.gradleware.samples' 6 | version = '0.0.1-SNAPSHOT' 7 | 8 | defaultTasks = ['printDeps'] 9 | 10 | repositories { 11 | mavenCentral() 12 | } 13 | 14 | dependencies { 15 | testCompile group: 'junit', name: 'junit', version: '4.8.2' 16 | compile group: 'commons-beanutils', name: 'commons-beanutils', version: '1.8.3' 17 | } 18 | 19 | task printDeps(dependsOn: build) << { 20 | println "All configurations:" 21 | println configurations 22 | } 23 | 24 | task wrapper(type: Wrapper) { 25 | gradleVersion = '1.0-milestone-4' 26 | } 27 | -------------------------------------------------------------------------------- /other-sonar-java-build-file/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'maven' 3 | apply plugin: 'sonar' 4 | 5 | group = 'com.gradleware.samples' 6 | version = '0.0.1-SNAPSHOT' 7 | 8 | repositories { 9 | mavenCentral() 10 | } 11 | 12 | dependencies { 13 | testCompile group: 'junit', name: 'junit', version: '4.8.2' 14 | } -------------------------------------------------------------------------------- /other-sonar-java-build-file/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle test install sonar 3 | #Likely to fail without connectivity, so ignore failure for now. TODO 4 | 5 | exit 0 6 | -------------------------------------------------------------------------------- /other-sonar-java-build-file/src/main/java/Another.java: -------------------------------------------------------------------------------- 1 | public class Another 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main in the ANOTHER class file." ); 6 | } 7 | 8 | public static String prependHello(String text) { 9 | return "Hello " + text + "in the Another class"; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /other-sonar-java-build-file/src/main/java/Main.java: -------------------------------------------------------------------------------- 1 | public class Main 2 | { 3 | public static void main( String[] args ) 4 | { 5 | System.out.println( "This is a Java main." ); 6 | } 7 | 8 | public static String prependHello(String text) { 9 | return "Hello " + text; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /other-sonar-java-build-file/src/test/java/TestMain.java: -------------------------------------------------------------------------------- 1 | import static org.junit.Assert.assertTrue; 2 | import static org.junit.Assert.assertEquals; 3 | import static org.junit.Assert.assertFalse; 4 | import org.junit.Test; 5 | 6 | public class TestMain 7 | { 8 | @Test 9 | public void testTrue() 10 | { 11 | assertTrue( true ); 12 | } 13 | 14 | @Test 15 | public void testFalse() 16 | { 17 | assertFalse( false ); 18 | } 19 | 20 | @Test 21 | public void testPrependHelloToMatthew() 22 | { 23 | assertEquals("Hello Matthew", Main.prependHello( "Matthew" )); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /other-weld/README: -------------------------------------------------------------------------------- 1 | Sourced from https://github.com/wangliyu/Weld-Gradle 2 | Please refer to wangliyu's page for the canonical version. 3 | -------------------------------------------------------------------------------- /plugins/buildfile/build.gradle: -------------------------------------------------------------------------------- 1 | apply from: 'liquibase.gradle' 2 | 3 | -------------------------------------------------------------------------------- /plugins/buildfile/liquibase.gradle: -------------------------------------------------------------------------------- 1 | 2 | task generateChangeLog { 3 | doLast { 4 | 5 | } 6 | } -------------------------------------------------------------------------------- /plugins/database-setup/db/liquibase_workshop.h2.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/plugins/database-setup/db/liquibase_workshop.h2.db -------------------------------------------------------------------------------- /plugins/database-setup/starth2: -------------------------------------------------------------------------------- 1 | java -cp /Users/tlberglund/Documents/Writing/Gradle/oreilly-gradle-book-examples/plugins/database-setup/build/classes/main:/Users/tlberglund/Documents/Writing/Gradle/oreilly-gradle-book-examples/plugins/database-setup/build/resources/main:/Users/tlberglund/.gradle/caches/artifacts-13/filestore/com.h2database/h2/1.3.153/jar/57bd2633c363d9309fb10de28b15dad0e24dc251/h2-1.3.153.jar org.h2.tools.Server -------------------------------------------------------------------------------- /rename/.gitignore: -------------------------------------------------------------------------------- 1 | dest/ 2 | -------------------------------------------------------------------------------- /rename/closure.gradle: -------------------------------------------------------------------------------- 1 | task rename(type: Copy) { 2 | from 'source' 3 | into 'dest' 4 | rename { fileName -> 5 | "production-file${(fileName - 'file-template')}" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /rename/regex.gradle: -------------------------------------------------------------------------------- 1 | task rename(type: Copy) { 2 | from 'source' 3 | into 'dest' 4 | rename(/file-template-(\d+)/, 'production-file-$1.txt') 5 | } 6 | -------------------------------------------------------------------------------- /rename/source/file-template-01.txt: -------------------------------------------------------------------------------- 1 | This is file template one. 2 | -------------------------------------------------------------------------------- /rename/source/file-template-02.txt: -------------------------------------------------------------------------------- 1 | This is file template two. 2 | -------------------------------------------------------------------------------- /rename/source/file-template-03.txt: -------------------------------------------------------------------------------- 1 | This is file template three. 2 | -------------------------------------------------------------------------------- /tasks-copy-task/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | -------------------------------------------------------------------------------- /tasks-copy-task/build.gradle: -------------------------------------------------------------------------------- 1 | task copyFiles(type: Copy) { 2 | from 'resources' 3 | into 'target' 4 | include '**/*.xml', '**/*.txt', '**/*.properties' 5 | } -------------------------------------------------------------------------------- /tasks-copy-task/resources/data.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/tasks-copy-task/resources/data.xml -------------------------------------------------------------------------------- /tasks-copy-task/resources/ignored.dat: -------------------------------------------------------------------------------- 1 | There's data in here that won't make it into the target directory. -------------------------------------------------------------------------------- /tasks-copy-task/resources/message.txt: -------------------------------------------------------------------------------- 1 | This file will be copied into the resources directory. -------------------------------------------------------------------------------- /tasks-copy-task/resources/settings.properties: -------------------------------------------------------------------------------- 1 | setting.1=Important property value 2 | setting.2=Even more important property value -------------------------------------------------------------------------------- /tasks-copy-task/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle copyFiles -------------------------------------------------------------------------------- /tasks-copyfunction/after/.gitignore: -------------------------------------------------------------------------------- 1 | hello.txt 2 | hello.txt 3 | -------------------------------------------------------------------------------- /tasks-copyfunction/before/hello.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/tasks-copyfunction/before/hello.txt -------------------------------------------------------------------------------- /tasks-copyfunction/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | println "Hello at the top level in the configuration phase" 4 | 5 | copy { 6 | from 'before' 7 | into 'after' 8 | } 9 | -------------------------------------------------------------------------------- /tasks-copyfunction/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle build 3 | -------------------------------------------------------------------------------- /tasks-copyfunction/src/main/java/org/gradle/example/simple/HelloWorld.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | public class HelloWorld { 4 | public static void main(String args[]) { 5 | System.out.println("hello, world"); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /tasks-custom-task-buildsrc/build.gradle: -------------------------------------------------------------------------------- 1 | task createDatabase(type: MySqlTask) { 2 | sql = 'CREATE DATABASE IF NOT EXISTS example' 3 | } 4 | 5 | task createUser(type: MySqlTask, dependsOn: createDatabase) { 6 | sql = "GRANT ALL PRIVILEGES ON example.* TO exampleuser@localhost IDENTIFIED BY 'passw0rd'" 7 | } 8 | 9 | task createTable(type: MySqlTask, dependsOn: createUser) { 10 | username = 'exampleuser' 11 | password = 'passw0rd' 12 | database = 'example' 13 | sql = 'CREATE TABLE IF NOT EXISTS users (id BIGINT PRIMARY KEY, username VARCHAR(100))' 14 | } 15 | -------------------------------------------------------------------------------- /tasks-custom-task-buildsrc/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle createTable 3 | # Will likely fail due to no DB access. TODO: Should use Derby. 4 | 5 | exit 0 6 | -------------------------------------------------------------------------------- /tasks-custom-task/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle createTable 3 | # Since database connectivity is unlike, ignore any failures 4 | 5 | exit 0 6 | -------------------------------------------------------------------------------- /tasks-dag-diagram/Gradle Build Diagram.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gradle/oreilly-gradle-book-examples/0f8b1e6022268e27fdfca18307c1a35a48be5850/tasks-dag-diagram/Gradle Build Diagram.graffle -------------------------------------------------------------------------------- /tasks-jar-task/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | task customJar(type: Jar) { 4 | manifest { 5 | attributes firstKey: 'firstValue', secondKey: 'secondValue' 6 | } 7 | archiveName = 'hello.jar' 8 | destinationDir = file("${buildDir}/jars") 9 | from sourceSets.main.output 10 | } 11 | -------------------------------------------------------------------------------- /tasks-jar-task/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle customJar 3 | -------------------------------------------------------------------------------- /tasks-jar-task/src/main/java/org/gradle/example/simple/HelloWorld.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | public class HelloWorld { 4 | public static void main(String args[]) { 5 | System.out.println("hello, world"); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /tasks-jar-task/src/main/resources/settings.properties: -------------------------------------------------------------------------------- 1 | property.key=value -------------------------------------------------------------------------------- /tasks-javaexec-task/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | repositories { 4 | mavenCentral() 5 | } 6 | 7 | dependencies { 8 | compile 'commons-codec:commons-codec:1.5' 9 | } 10 | 11 | task encode(type: JavaExec, dependsOn: classes) { 12 | main = 'org.gradle.example.commandline.MetaphoneEncoder' 13 | args = "The rain in Spain falls mainly in the plain".split().toList() 14 | classpath sourceSets.main.output.classesDir 15 | classpath configurations.runtime 16 | } 17 | -------------------------------------------------------------------------------- /tasks-javaexec-task/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle encode 3 | -------------------------------------------------------------------------------- /tasks-javaexec-task/src/main/java/org/gradle/example/commandline/MetaphoneEncoder.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.commandline; 2 | 3 | import org.apache.commons.codec.language.Metaphone; 4 | 5 | public class MetaphoneEncoder { 6 | public static void main(String args[]) { 7 | Metaphone codec = new Metaphone(); 8 | String phrase = ""; 9 | String encoded = ""; 10 | for(String s : args) { 11 | phrase += s.toUpperCase() + " "; 12 | encoded += codec.encode(s) + " "; 13 | } 14 | 15 | System.out.println("PHRASE =" + phrase); 16 | System.out.println("ENCODED=" + encoded); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tasks-task-lab/description-all-in-one.gradle: -------------------------------------------------------------------------------- 1 | task helloWorld(description: 'Says hello to the world') << { 2 | println 'hello, world' 3 | } 4 | -------------------------------------------------------------------------------- /tasks-task-lab/description-separately.gradle: -------------------------------------------------------------------------------- 1 | task helloWorld << { 2 | println 'hello, world' 3 | } 4 | 5 | helloWorld { 6 | description = 'Says hello to the world' 7 | } 8 | 9 | // Another way to do it 10 | helloWorld.description = 'Says hello to the world' 11 | -------------------------------------------------------------------------------- /tasks-task-lab/didWork.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | task emailMe(dependsOn: compileJava) << { 4 | if(tasks.compileJava.didWork) { 5 | println 'SEND EMAIL ANNOUNCING SUCCESS' 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /tasks-task-lab/dynamic.gradle: -------------------------------------------------------------------------------- 1 | task copyFiles { 2 | // Find files from wherever, copy them 3 | // (then hardcode a list of files for illustration) 4 | ext.fileManifest = [ 'data.csv', 'config.json' ] 5 | } 6 | 7 | task createArtifact(dependsOn: copyFiles) << { 8 | println "FILES IN MANIFEST: ${copyFiles.ext.fileManifest}" 9 | } 10 | -------------------------------------------------------------------------------- /tasks-task-lab/enabled.gradle: -------------------------------------------------------------------------------- 1 | task templates << { 2 | println 'process email templates' 3 | } 4 | 5 | task sendEmails(dependsOn: templates) << { 6 | println 'send emails' 7 | } 8 | 9 | sendEmails.enabled = false 10 | -------------------------------------------------------------------------------- /tasks-task-lab/onlyIf.gradle: -------------------------------------------------------------------------------- 1 | task createSchema << { 2 | println 'create database schema' 3 | } 4 | 5 | task loadTestData(dependsOn: createSchema) << { 6 | println 'load test data' 7 | } 8 | 9 | loadTestData.onlyIf { 10 | System.properties['load.data'] == 'true' 11 | } 12 | -------------------------------------------------------------------------------- /tasks-task-lab/path.gradle: -------------------------------------------------------------------------------- 1 | task echoMyPath << { 2 | println "THIS TASK'S PATH IS ${path}" 3 | } -------------------------------------------------------------------------------- /tasks-task-lab/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle -b description-all-in-one.gradle helloWorld 3 | gradle -b description-separately.gradle helloWorld 4 | gradle -b didWork.gradle emailMe 5 | gradle -b dynamic.gradle createArtifact 6 | gradle -b enabled.gradle sendEmails 7 | gradle -b logging.gradle logLevel 8 | gradle -b onlyIf.gradle loadTestData 9 | gradle -Dload.data=true -b onlyIf.gradle loadTestData 10 | gradle -b path.gradle echoMyPath 11 | -------------------------------------------------------------------------------- /tasks-task-lab/src/main/java/org/gradle/example/simple/HelloWorld.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | public class HelloWorld { 4 | public static void main(String args[]) { 5 | System.out.println("hello, world"); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /testing-geb/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle test 3 | -------------------------------------------------------------------------------- /testing-integration/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | repositories { 4 | mavenCentral() 5 | } 6 | 7 | dependencies { 8 | testCompile 'junit:junit:4.8.2' 9 | } 10 | 11 | test { 12 | include '**/Test*.*' 13 | } 14 | 15 | task integrationTest(type: Test, dependsOn: "test") << { 16 | include '**/IntegrationTest*.*' 17 | } 18 | 19 | -------------------------------------------------------------------------------- /testing-integration/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle integrationTest 3 | -------------------------------------------------------------------------------- /testing-integration/src/test/java/org/gradle/example/simple/IntegrationTestPerson.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class IntegrationTestPerson { 9 | @Test 10 | public void integrationTestPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertTrue(p.wasteTime()); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /testing-integration/src/test/java/org/gradle/example/simple/TestPerson.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /testing-junit/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | repositories { 4 | mavenCentral() 5 | } 6 | 7 | dependencies { 8 | testCompile 'junit:junit:4.8.2' 9 | } 10 | -------------------------------------------------------------------------------- /testing-junit/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle test 3 | -------------------------------------------------------------------------------- /testing-junit/src/test/java/org/gradle/example/simple/TestPerson.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | repositories { 4 | mavenCentral() 5 | } 6 | 7 | dependencies { 8 | testCompile 'junit:junit:4.8.2' 9 | } 10 | 11 | test { 12 | maxParallelForks = 5 13 | forkEvery = 50 14 | } 15 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/generatetests.gradle: -------------------------------------------------------------------------------- 1 | defaultTasks = ["generateTests"] 2 | 3 | // Mrhaki provided the code-generation idea 4 | // http://mrhaki.blogspot.com/2010/11/gradle-goodness-running-tests-in.html 5 | task generateTests << { 6 | (0..1000).each { classCounter -> 7 | copy { 8 | from 'src/template/java' 9 | into 'src/test/java' 10 | 11 | expand(templateClassName: "TestPerson${classCounter}") 12 | rename '(.*).java', "TestPerson${classCounter}.java" 13 | include '**/TestPerson.java' 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle test 3 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson0.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson0 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson1.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson1 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson10.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson10 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson100.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson100 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson1000.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson1000 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson101.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson101 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson102.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson102 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson103.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson103 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson104.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson104 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson105.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson105 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson106.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson106 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson107.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson107 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson108.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson108 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson109.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson109 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson11.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson11 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson110.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson110 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson111.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson111 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson112.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson112 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson113.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson113 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson114.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson114 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson115.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson115 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson116.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson116 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson117.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson117 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson118.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson118 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson119.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson119 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson12.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson12 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson120.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson120 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson121.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson121 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson122.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson122 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson123.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson123 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson124.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson124 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson125.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson125 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson126.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson126 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson127.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson127 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson128.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson128 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson129.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson129 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson13.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson13 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson130.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson130 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson131.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson131 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson132.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson132 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson133.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson133 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson134.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson134 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson135.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson135 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson136.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson136 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson137.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson137 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson138.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson138 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson139.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson139 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson14.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson14 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson140.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson140 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson141.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson141 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson142.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson142 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson143.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson143 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson144.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson144 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson145.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson145 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson146.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson146 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson147.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson147 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson15.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson15 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson16.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson16 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson17.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson17 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson18.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson18 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson19.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson19 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson2.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson2 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson20.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson20 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson21.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson21 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson22.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson22 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson23.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson23 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson24.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson24 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson25.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson25 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson26.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson26 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson27.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson27 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson28.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson28 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson29.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson29 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson3.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson3 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson30.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson30 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson31.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson31 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson32.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson32 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson33.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson33 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson34.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson34 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson35.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson35 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson36.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson36 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson37.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson37 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson38.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson38 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson39.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson39 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson4.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson4 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson40.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson40 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson41.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson41 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson42.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson42 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson43.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson43 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson44.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson44 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson45.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson45 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson46.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson46 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson47.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson47 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson48.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson48 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson49.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson49 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson5.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson5 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson50.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson50 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson51.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson51 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson52.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson52 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson53.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson53 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson54.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson54 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson55.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson55 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson56.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson56 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson57.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson57 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson58.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson58 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson59.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson59 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson6.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson6 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson60.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson60 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson61.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson61 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson62.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson62 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson63.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson63 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson64.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson64 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson65.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson65 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson66.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson66 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson67.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson67 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson68.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson68 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson69.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson69 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson7.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson7 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson70.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson70 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson71.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson71 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson72.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson72 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson73.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson73 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson74.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson74 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson75.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson75 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson76.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson76 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson77.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson77 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson78.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson78 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson79.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson79 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson8.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson8 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson80.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson80 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson81.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson81 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson82.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson82 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson83.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson83 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson84.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson84 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson85.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson85 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson86.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson86 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson87.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson87 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson88.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson88 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson89.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson89 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson9.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson9 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson90.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson90 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson91.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson91 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson92.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson92 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson93.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson93 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson94.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson94 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson95.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson95 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson96.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson96 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson97.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson97 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson98.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson98 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-junitforkedthreads/src/test/java/org/gradle/example/simple/TestPerson99.java: -------------------------------------------------------------------------------- 1 | package org.gradle.example.simple; 2 | 3 | import org.gradle.example.simple.Person; 4 | 5 | import org.junit.Test; 6 | import static org.junit.Assert.*; 7 | 8 | public class TestPerson99 { 9 | @Test 10 | public void testPerson() { 11 | Person p = new Person(); 12 | p.setAge(20); 13 | p.setName("Fird Birfle"); 14 | p.setSalary(195750.22); 15 | 16 | assertEquals(215325.242, p.calculateBonus(), 0.01); 17 | assertEquals("The Honorable Fird Birfle", p.becomeJudge()); 18 | assertEquals(30, p.timeWarp()); 19 | 20 | p.wasteTime(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testing-spock/README.txt: -------------------------------------------------------------------------------- 1 | This example is derived from spock-example-0.5-groovy-1.7.zip 2 | http://code.google.com/p/spock/ -------------------------------------------------------------------------------- /testing-spock/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "groovy" 2 | 3 | repositories { 4 | mavenCentral() 5 | } 6 | 7 | dependencies { 8 | groovy("org.codehaus.groovy:groovy-all:1.7.5") 9 | testCompile "org.spockframework:spock-core:0.5-groovy-1.7" 10 | 11 | // dependencies used by examples in this project 12 | // (not required for using Spock) 13 | testRuntime "com.h2database:h2:1.2.147" 14 | } 15 | -------------------------------------------------------------------------------- /testing-spock/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle test 3 | -------------------------------------------------------------------------------- /testing-spock/src/test/groovy/HelloSpock.groovy: -------------------------------------------------------------------------------- 1 | class HelloSpock extends spock.lang.Specification { 2 | def "length of Spock's and his friends' names"() { 3 | expect: 4 | name.size() == length 5 | 6 | where: 7 | name | length 8 | "Spock" | 5 9 | "Kirk" | 4 10 | "Scotty" | 6 11 | } 12 | } -------------------------------------------------------------------------------- /testing-spock/src/test/resources/ExcludeSlowConfig.groovy: -------------------------------------------------------------------------------- 1 | runner { 2 | exclude Slow 3 | } 4 | 5 | 6 | -------------------------------------------------------------------------------- /testing-spock/src/test/resources/IncludeFastConfig.groovy: -------------------------------------------------------------------------------- 1 | runner { 2 | include Fast 3 | } 4 | 5 | 6 | -------------------------------------------------------------------------------- /testing-testng/.gitignore: -------------------------------------------------------------------------------- 1 | .classpath 2 | .project 3 | bin/ 4 | -------------------------------------------------------------------------------- /testing-testng/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | repositories { 4 | mavenCentral() 5 | } 6 | 7 | test { 8 | useTestNG() 9 | } 10 | 11 | dependencies { 12 | testCompile 'org.testng:testng:6.0.1' 13 | } 14 | -------------------------------------------------------------------------------- /testing-testng/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle test 3 | -------------------------------------------------------------------------------- /web-hello-world/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'jetty' 2 | 3 | configurations { 4 | provided 5 | } 6 | 7 | dependencies { 8 | provided 'javax.servlet:servlet-api:2.4' 9 | compile configurations.provided 10 | } 11 | 12 | repositories { 13 | mavenCentral() 14 | } 15 | -------------------------------------------------------------------------------- /web-hello-world/src/main/java/org/gradle/examples/web/Servlet.java: -------------------------------------------------------------------------------- 1 | package org.gradle.examples.web; 2 | 3 | import java.io.PrintWriter; 4 | import java.io.IOException; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | 9 | public class Servlet extends HttpServlet 10 | { 11 | public void doGet(HttpServletRequest request, 12 | HttpServletResponse response) 13 | throws IOException 14 | { 15 | PrintWriter pw = response.getWriter(); 16 | pw.println("hello, world"); 17 | pw.close(); 18 | } 19 | } -------------------------------------------------------------------------------- /web-hello-world/src/main/webapp/web.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | servlet 8 | servlet 9 | org.gradle.examples.web.Servlet 10 | 11 | 12 | 13 | servlet 14 | /hello 15 | 16 | 17 | -------------------------------------------------------------------------------- /wrapper-minimal/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | task wrapper(type: Wrapper) { 4 | gradleVersion = '1.0-milestone-6' 5 | } 6 | -------------------------------------------------------------------------------- /wrapper-minimal/run-example.bsh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gradle wrapper 3 | 4 | gradlew build 5 | --------------------------------------------------------------------------------