Bug: roq create app generates a Gradle project that fails to build with Gradle 9.6
Summary
A newly generated Roq project fails to build with the default Gradle wrapper because Gradle cannot resolve the platform-specific esbuild native dependencies.
Adding the following Gradle plugin fixes the issue:
plugins {
id "io.mvnpm.gradle.plugin.native-java-plugin" version "1.0.0"
}
This plugin is not included in the generated project.
Environment
- OS: Ubuntu 24.04 (WSL2)
- Kernel: Linux 6.18.x
- Architecture: x86_64
- Java: Eclipse Temurin 21
- Gradle: 9.6.0 (generated wrapper)
- Quarkus: 3.38.1
- Roq: 2.1.6
Steps to Reproduce
- Create a new project using:
- Build the project:
Actual Result
The build fails during dependency resolution with an error similar to:
Execution failed for task ':quarkusGenerateAppModel'.
Could not resolve io.mvnpm:esbuild-java-native-deps:2.1.5
Cannot choose between:
- linuxX64Runtime
- linuxArm64Runtime
- windowsX64Runtime
- windowsArm64Runtime
- darwinX64Runtime
- darwinArm64Runtime
Gradle reports an ambiguous variant selection for the native esbuild dependencies.
Expected Result
A newly generated Roq project should build successfully without requiring manual changes.
Workaround
Adding the following plugin to build.gradle resolves the issue:
plugins {
id 'java'
id 'io.quarkus'
id 'io.mvnpm.gradle.plugin.native-java-plugin' version '1.0.0'
}
After adding the plugin:
the project builds successfully.
Question
Should the Roq project generator automatically include the io.mvnpm.gradle.plugin.native-java-plugin Gradle plugin when generating Gradle projects?
If this plugin is now required for Gradle 9.x and the Web Bundler/Tailwind integration, it seems the generated project should include it by default.
Bug:
roq create appgenerates a Gradle project that fails to build with Gradle 9.6Summary
A newly generated Roq project fails to build with the default Gradle wrapper because Gradle cannot resolve the platform-specific
esbuildnative dependencies.Adding the following Gradle plugin fixes the issue:
plugins { id "io.mvnpm.gradle.plugin.native-java-plugin" version "1.0.0" }This plugin is not included in the generated project.
Environment
Steps to Reproduce
Actual Result
The build fails during dependency resolution with an error similar to:
Gradle reports an ambiguous variant selection for the native
esbuilddependencies.Expected Result
A newly generated Roq project should build successfully without requiring manual changes.
Workaround
Adding the following plugin to
build.gradleresolves the issue:plugins { id 'java' id 'io.quarkus' id 'io.mvnpm.gradle.plugin.native-java-plugin' version '1.0.0' }After adding the plugin:
the project builds successfully.
Question
Should the Roq project generator automatically include the
io.mvnpm.gradle.plugin.native-java-pluginGradle plugin when generating Gradle projects?If this plugin is now required for Gradle 9.x and the Web Bundler/Tailwind integration, it seems the generated project should include it by default.