native-build-tools icon indicating copy to clipboard operation
native-build-tools copied to clipboard

Native-image plugins for various build tools

Results 125 native-build-tools issues
Sort by recently updated
recently updated
newest added

**Describe the problem** A clear and concise description of what the problem is. **Make sure that you have read [the documentation](https://graalvm.github.io/native-build-tools) and that you are using the latest plugin version.**...

question

**Describe the problem** First, when I build a simple Hello world app, it works just fine, but when I try to build my **2.5Mb jar file** I always end up...

question

## Overview In JUnit 5.10, the JUnit team plans to provide limited built-in support for running tests in a GraalVM native image. See https://github.com/junit-team/junit5/issues/3040. Consequently, some of the JUnit infrastructure...

enhancement
junit-support

`JupiterConfigProvider` registers reflection configuration for `TimeoutExtension$ExecutorResource` as can be seen here: https://github.com/graalvm/native-build-tools/blob/3cf049769e879840dd182a0985c3ecc55a936cc7/common/junit-platform-native/src/main/java/org/graalvm/junit/platform/config/jupiter/JupiterConfigProvider.java#L104-L109 The issue is that `TimeoutExtension$ExecutorResource` exists in JUnit Jupiter 5.8 but no longer in 5.9. Consequently, when you...

bug
maven-plugin
junit-support

When I run the `java-application-with-tests` locally I see that the classpath contains JUnit artifacts twice. In this particular case, they are the same versions. > [INFO] Executing: /opt/graalvm/graalvm-ce-java17-22.2.0/Contents/Home/bin/native-image -cp /Users/sbrannen/source/native-build-tools/samples/java-application-with-tests/target/classes:/Users/sbrannen/source/native-build-tools/samples/java-application-with-tests/target/test-classes:/Users/sbrannen/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.8.1/junit-jupiter-api-5.8.1.jar:/Users/sbrannen/.m2/repository/org/junit/jupiter/junit-jupiter-params/5.8.1/junit-jupiter-params-5.8.1.jar:/Users/sbrannen/.m2/repository/org/junit/platform/junit-platform-launcher/1.8.1/junit-platform-launcher-1.8.1.jar:/Users/sbrannen/.m2/repository/org/junit/platform/junit-platform-engine/1.8.1/junit-platform-engine-1.8.1.jar:/Users/sbrannen/.m2/repository/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar:/Users/sbrannen/.m2/repository/org/junit/platform/junit-platform-commons/1.8.1/junit-platform-commons-1.8.1.jar:/Users/sbrannen/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar:/Users/sbrannen/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.8.1/junit-jupiter-engine-5.8.1.jar:/Users/sbrannen/.m2/repository/org/junit/jupiter/junit-jupiter/5.8.1/junit-jupiter-5.8.1.jar:/Users/sbrannen/.m2/repository/org/junit/platform/junit-platform-reporting/1.8.1/junit-platform-reporting-1.8.1.jar:/Users/sbrannen/.m2/repository/org/graalvm/buildtools/native-maven-plugin/0.9.14-SNAPSHOT/native-maven-plugin-0.9.14-SNAPSHOT.jar:/Users/sbrannen/.m2/repository/org/junit/platform/junit-platform-launcher/1.8.1/junit-platform-launcher-1.8.1.jar:/Users/sbrannen/.m2/repository/org/junit/platform/junit-platform-engine/1.8.1/junit-platform-engine-1.8.1.jar:/Users/sbrannen/.m2/repository/org/junit/platform/junit-platform-commons/1.8.1/junit-platform-commons-1.8.1.jar:/Users/sbrannen/.m2/repository/org/graalvm/buildtools/junit-platform-native/0.9.14-SNAPSHOT/junit-platform-native-0.9.14-SNAPSHOT.jar:/Users/sbrannen/.m2/repository/org/junit/platform/junit-platform-console/1.8.1/junit-platform-console-1.8.1.jar:/Users/sbrannen/.m2/repository/org/junit/platform/junit-platform-reporting/1.8.1/junit-platform-reporting-1.8.1.jar:/Users/sbrannen/.m2/repository/org/junit/jupiter/junit-jupiter/5.8.1/junit-jupiter-5.8.1.jar:/Users/sbrannen/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.8.1/junit-jupiter-api-5.8.1.jar:/Users/sbrannen/.m2/repository/org/junit/jupiter/junit-jupiter-params/5.8.1/junit-jupiter-params-5.8.1.jar:/Users/sbrannen/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.8.1/junit-jupiter-engine-5.8.1.jar:/Users/sbrannen/.m2/repository/org/graalvm/buildtools/utils/0.9.14-SNAPSHOT/utils-0.9.14-SNAPSHOT.jar:/Users/sbrannen/.m2/repository/org/graalvm/buildtools/graalvm-reachability-metadata/0.9.14-SNAPSHOT/graalvm-reachability-metadata-0.9.14-SNAPSHOT.jar:/Users/sbrannen/.m2/repository/org/graalvm/buildtools/junit-platform-native/0.9.14-SNAPSHOT/junit-platform-native-0.9.14-SNAPSHOT.jar...

bug
maven-plugin
junit-support

**Describe the bug** The documentation shows the following example for configuring the predicate: ``` tasksToInstrumentPredicate = t -> true ``` Adapting this to disable instrumentation by returning false does not...

bug
gradle-plugin

``` [INFO] ImageClasspath Entry: io.netty:netty-codec:jar:4.1.78.Final:compile (file:///C:/Users/zc/.m2/repository/io/netty/netty-codec/4.1.78.Final/netty-codec-4.1.78.Final.jar) [INFO] Executing: C:\Program Files\Java\graalvm-ce-java17-22.1.0\bin\native-image.cmd @C:\Users\zc\AppData\Local\Temp\native-image15983259600882756261args Error: Error reading argument file Caused by: java.nio.file.NoSuchFileException: C:\Users\zc\AppData\Local\Temp\native-image15983259600882756261args [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time:...

maven-plugin
cannot reproduce

Please refer below pom.xml file which I am using 4.0.0 org.springframework.boot spring-boot-starter-parent 3.2.0 com.kpit.diagnostics.tf2 tf2-product-launcher-application 1.0.0-SNAPSHOT tf2-product-launcher-application jar 11 UTF-8 org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-test test org.junit.jupiter junit-jupiter-engine test org.junit.vintage junit-vintage-engine...

bug

As described in [this issue](https://github.com/graalvm/native-build-tools/issues/579) we should specify default output directory for metadataCopy task according to the recommendation from [GraalVM website](https://www.graalvm.org/latest/reference-manual/native-image/overview/BuildConfiguration/) Note: currently we don't have default value for the...

OCA Verified

The problem was reported here: https://github.com/graalvm/native-build-tools/issues/550#issuecomment-1983920449 The agent collects metadata into intermediary folders and all the metadata is then merged. Since `SIGINT` interrupts the agent, then all the metadata merging...

bug