Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Minor changes to remove a deprecation warning and beautify the output from cowsay #24

Open
wants to merge 2 commits 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
3 changes: 2 additions & 1 deletion .shared/pre-existing/custom-task-type.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
* Prints a configurable message in an humorous fashion
*/
class Cowsay extends DefaultTask {
@Input
String message = 'This is a default message'

@TaskAction
def doMoo() {
println("""\
${'_' * (message.length() + 2)}
< $message >
${'-' * (message.length() + 4)}
${'\u203E' * (message.length() + 2)}
\\
\\
^__^
Expand Down