From b1829096434cfb34e57d278d65375087e58da6dc Mon Sep 17 00:00:00 2001 From: Michael Ingeman-Nielsen Date: Mon, 2 Mar 2020 10:48:59 +0100 Subject: [PATCH 1/2] expand setup kata and rename to project-init --- project-init/README.md | 20 ++++++++++++++++++++ project-init/setup.sh | 4 ++++ setup/README.md | 10 ---------- 3 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 project-init/README.md create mode 100644 project-init/setup.sh delete mode 100644 setup/README.md diff --git a/project-init/README.md b/project-init/README.md new file mode 100644 index 0000000..4aeb919 --- /dev/null +++ b/project-init/README.md @@ -0,0 +1,20 @@ +# Gradle Kata: Project initialization + +This kata will describe how to create a new gradle project. + +## Setup + +Run `source setup.sh` + +## The task + +1. Run the command `gradle init`. When prompted, choose + * Project type: basic + * DSL: Groovy + * Project name: exercise +1. Explore the generated files +1. Run the command `gradle projects` +1. Observe the name of your root project +1. Rename your root project by changing `rootProject.name` in `settings.gradle` +1. Run the command `gradle projects` again +1. Observe the updated name of your root project diff --git a/project-init/setup.sh b/project-init/setup.sh new file mode 100644 index 0000000..10051c4 --- /dev/null +++ b/project-init/setup.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +source ../.shared/utils.sh +initkata_basic \ No newline at end of file diff --git a/setup/README.md b/setup/README.md deleted file mode 100644 index 805c7b5..0000000 --- a/setup/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# Gradle setup - -## Creating a Gradle project - -Setting up a Gradle project is fairly easy. A single command will provide you with the files and folder necessary. - -- Run the command `./gradlew init` -- Explore the generated files -- Run the command `./gradlew projects` -- Observe the name of your root project From 14ae31f196e885cf19fbaafc939c077e532c0074 Mon Sep 17 00:00:00 2001 From: Michael Ingeman-Nielsen Date: Thu, 26 Mar 2020 19:59:16 +0100 Subject: [PATCH 2/2] reference the project-init kata from the main readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4e06173..083363a 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ Feel free to use these exercises, that's why they're public! ## Suggested Learning Path Setup + - [project-init](./gradle-init/README.md) - Create a new gradle project - [gradle-wrapper-basics](./gradle-wrapper-basics/README.md) - Use the gradle wrapper to ensure that the correct gradle version is used. Task creation