diff --git a/documentation/index.html b/documentation/index.html index a88a412..2889f88 100644 --- a/documentation/index.html +++ b/documentation/index.html @@ -191,6 +191,19 @@ fun taskCreateVersion(project: Project) : TaskResult { This tasks takes a template file and replaces all occurrences of the string "@version@" with the actual version of the project. Obviously, this task is very specific to TestNG's own build and it wasn't worth writing a plug-in ftor this. Note the attributes runBefore and runAfter, which specify when this task will run. You can find more information about tasks in the plug-in development section.

+

Build file classpath

+

+ If you are writing code or an inline task in your build file that requires additional libraries, + you can specify these dependencies with the buildFileClasspath() directive, which accepts a list + of dependencies in parameters. Each of these dependencies will then be added to the classpath when + your build file is compiled and run: +

+
+// Build.kt
+val bfc = buildFileClasspath("org.testng:testng:6.9.11")
+val t = org.testng.TestNG()  // now legal
+
+

Dependencies