Closed
Description
We use assemble
task in our CI/CD pipeline to build artifacts. From Spring Boot 2.5.0 jar
task generates an additional jar archive which ends with -plain.jar
. This breaks builds if you use patterns like *.jar to copy the build archive. To restrict the additional jar creation Spring Boot documentation provides guidance here that we can disable the jar task if we prefer that the plain archive isn’t built at all. This doesn’t play well with nativeCompile task.
To Reproduce
Environment
- Spring Boot: 3.0.0-RC2
- Native Buildtools: 0.9.17
- GraalVM version : graalvm-ce-java17-22.3.0
- JDK version: openjdk 17.0.5
- Architecture: AMD64
Sample project
https://github.com/michalkrajcovic/spring-native-plain-archives
Compile
./gradlew nativeCompile
Fails with
Error: Main entry point class 'com.example.springnativeplainarchives.Application' neither found on the classpath nor on the modulepath.