Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stdio information to gradle tutorial #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tutorials/gradleTutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ You can click on the Gradle icon in the Gradle toolbar and create a new run conf

![Gradle icon](assets/GradleIcon.png)

Note that when you attempt to run a program that takes in data from the standard input, the program will fail with an exception. To resolve this, you can implement [Text UI Testing](textUiTestingTutorial.md). Alternatively, add the following lines to your `build.gradle`:

```groovy
run {
standardInput = System.in
}
```

This will ensure that the program takes in input from the standard input.

## Adding Plugins

Gradle plugins are reusable units of build logic. Most common build tasks are provided as core plugins by Gradle. Given below are instructions on how to use some useful plugins:
Expand Down