mirror of
https://github.com/ethauvin/kobalt-doc.git
synced 2025-04-25 03:57:11 -07:00
Document buildFileClasspath().
This commit is contained in:
parent
98dd80ecef
commit
b3a8d1a91c
1 changed files with 13 additions and 0 deletions
|
@ -191,6 +191,19 @@ fun taskCreateVersion(project: Project) : TaskResult {
|
|||
This tasks takes a template file and replaces all occurrences of the string <code>"@version@"</code> 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 <code>runBefore</code> and <code>runAfter</code>, which specify when this task will run. You can find more information about tasks in the <a href="http://beust.com/kobalt/plug-in-development/index.html#tasks">plug-in development section</a>.
|
||||
</p>
|
||||
|
||||
<h3 class="section" indent="1" id="build-file-classpath">Build file classpath</h3>
|
||||
<p>
|
||||
If you are writing code or an inline task in your build file that requires additional libraries,
|
||||
you can specify these dependencies with the <code>buildFileClasspath()</code> 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:
|
||||
</p>
|
||||
<pre class="brush:java">
|
||||
// Build.kt
|
||||
val bfc = buildFileClasspath("org.testng:testng:6.9.11")
|
||||
val t = org.testng.TestNG() // now legal
|
||||
</pre>
|
||||
|
||||
<h3 class="section" indent="1" id="dependencies">Dependencies</h3>
|
||||
|
||||
<p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue