Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommended gradle test -Dquarkus.package.type=native doesn't work as expected #39347

Open
galderz opened this issue Mar 12, 2024 · 3 comments
Open
Labels
area/gradle Gradle area/native-image kind/bug Something isn't working

Comments

@galderz
Copy link
Member

galderz commented Mar 12, 2024

Running ./gradlew testNative builds native executables and runs integration tests against them, see here.

However, running that command presents the following message:

The Quarkus tasks testNative and buildNative are deprecated and subject to removal. Please migrate your build to use 'test -Dquarkus.package.type=native' and 'quarkusBuild -Dquarkus.package.type=native'.

The problem is that ./gradlew test -Dquarkus.package.type=native does neither build a native image nor does it test it, see here.

@galderz galderz added the kind/bug Something isn't working label Mar 12, 2024
@quarkus-bot
Copy link

quarkus-bot bot commented Mar 12, 2024

/cc @glefloch, @quarkusio/devtools, @zakkak (native-image)

@galderz
Copy link
Member Author

galderz commented Mar 12, 2024

@snazy this is your baby

@galderz
Copy link
Member Author

galderz commented Mar 12, 2024

@snazy Did you add any Gradle integration tests to verify this works as expected? NativeIntegrationTestIT uses testNative.

@galderz galderz changed the title Recommended gradle test -Dquarkus.package.type=native doesn't work as expected Recommended gradle test -Dquarkus.package.type=native doesn't work as expected Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gradle Gradle area/native-image kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant