add sample for debugging gradle script

This commit is contained in:
Juraj Michalek
2014-06-24 20:57:24 +02:00
7 changed files with 67 additions and 1 deletions

View File

@@ -164,7 +164,25 @@ Plugin is just counting lines in build.gradle file in current directory.
gradle tasks
gradle countLines
## 16-debug-gradle-script
## 16-stop-build
It is possible to stop build by throwing exception.
gradle workingTask
gradle failingTask
## 17-testng-groovy
Example combines usage of TestNG for testing and tests written in Groovy.
It is necessary to declare 'useTestNG()' in test configuration.
Otherwise tests won't be executed.
gradle test
Reports are stored in build/reports/tests/index.html
## 18-debug-gradle-script
Do not run in daemon mode.
Set environment variable GRADLE_OPTS to
@@ -178,3 +196,4 @@ Start gradle task
Attach remote debugger from Ide.
More information: http://georgik.sinusgear.com/2014/06/23/how-to-debug-gradle-script/