Skip to content

Commit

Permalink
Publishing documentation for version 0.9.28-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
graalvmbot committed Oct 10, 2023
1 parent 69ea344 commit f4d0617
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 1 deletion.
74 changes: 73 additions & 1 deletion 0.9.28-SNAPSHOT/gradle-plugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ <h1>Gradle plugin for GraalVM Native Image building</h1>
</li>
<li><a href="#testing-support">Testing support</a>
<ul class="sectlevel2">
<li><a href="#test-binary-config">Configuring test image options</a></li>
<li><a href="#testing-support-disabling">Disabling testing support</a></li>
<li><a href="#extra-test-suites">Configuring additional test suites</a></li>
</ul>
Expand Down Expand Up @@ -710,7 +711,46 @@ <h3 id="_available_tasks"><a class="anchor" href="#_available_tasks"></a>Availab
<div class="sect2">
<h3 id="_native_image_options"><a class="anchor" href="#_native_image_options"></a>Native image options</h3>
<div class="paragraph">
<p>The <a href="javadocs/native-gradle-plugin/org/graalvm/buildtools/gradle/dsl/NativeImageOptions.html">NativeImageOptions</a> allows you to tweak how the native image is going to be built.</p>
<p>The <a href="javadocs/native-gradle-plugin/org/graalvm/buildtools/gradle/dsl/NativeImageOptions.html">NativeImageOptions</a> allows you to tweak how the native image is going to be built.
The plugin allows configuring the final binary, the <a href="#test-binary-config">tests</a> one, as well as apply options to both.</p>
</div>
<div class="listingblock multi-language-sample">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="groovy" class="language-groovy hljs">graalvmNative {
binaries {
main {
imageName = "my-app"
mainClass = "org.jackup.Runner"
buildArgs.add("-O4")
}
test {
buildArgs.add("-O0")
}
}
binaries.all {
buildArgs.add("--verbose")
}
}</code></pre>
</div>
</div>
<div class="listingblock multi-language-sample">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="kotlin" class="language-kotlin hljs">graalvmNative {
binaries {
named("main") {
imageName.set("my-app")
mainClass.set("org.jackup.Runner")
buildArgs.add("-O4")
}
named("test") {
buildArgs.add("-O0")
}
}
binaries.all {
buildArgs.add("--verbose")
}
}</code></pre>
</div>
</div>
</div>
<div class="sect2">
Expand Down Expand Up @@ -1058,6 +1098,38 @@ <h2 id="testing-support"><a class="anchor" href="#testing-support"></a>Testing s
</div>
</div>
<div class="sect2">
<h3 id="test-binary-config"><a class="anchor" href="#test-binary-config"></a>Configuring test image options</h3>
<div class="paragraph">
<p>You can fine-tune the test binary using the <code>test</code> binary configuration.
The following example prints additional data for troubleshooting and sets the minimal optimizations.</p>
</div>
<div class="listingblock multi-language-sample">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="groovy" class="language-groovy hljs">graalvmNative {
binaries {
test {
buildArgs.addAll('--verbose', '-O0')
}
}
}</code></pre>
</div>
</div>
<div class="listingblock multi-language-sample">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="kotlin" class="language-kotlin hljs">graalvmNative {
binaries {
named("main") {
mainClass.set("org.test.Main")
}
named("test") {
buildArgs.addAll("--verbose", "-O0")
}
}
}</code></pre>
</div>
</div>
</div>
<div class="sect2">
<h3 id="testing-support-disabling"><a class="anchor" href="#testing-support-disabling"></a>Disabling testing support</h3>
<div class="paragraph">
<p>There are cases where you might want to disable native testing support:</p>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit f4d0617

Please sign in to comment.