Skip to content

Bug: roq create app generates a Gradle project that fails to build with Gradle 9.6 #1147

Description

@manyaan

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

  1. Create a new project using:
roq create app
  1. Build the project:
./gradlew build

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:

./gradlew clean build

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions