Skip to content

Add hello-world and todo-mvc Quarkus examples #3549

Closed

Description

@lihaoyi

Mill's example test suite has examples for hello-world and todo-mvc projects using in Java using Spring-Boot and Micronaut built using Mill (https://github.com/com-lihaoyi/mill/tree/main/example/javalib/web). They're not super fleshed out, but they exist.

We should add similar hello-world/todo-mvc examples for the Quarkus web framework, which according to the IntelliJ dev survey is relatively popular (between Spring-Boot and Micronaut https://www.jetbrains.com/lp/devecosystem-2023/java/)

Activity

  1. added
    bountyThe fix/close of this issue is rewarded with a bounty
    on Sep 15, 2024
  2. lolgab commented on Sep 16, 2024

    @lolgab
    Member

    I'm giving a shot to this.

  3. lolgab commented on Sep 17, 2024

    @lolgab
    Member

    quarkus, in its maven and gradle plugins, does some code generation which seems to be necessary to create the main method to run applications. I'm going to create a contrib module to mimic what we need from the Maven plugin.
    Another missing thing which would be nice to have, is support for pom artifacts to centralize the version management for a framework.
    In quarkus you add:

      <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-bom</artifactId>
            <version>${quarkus.platform.version}</version>
            <type>pom</type>
            <scope>import</scope>
          </dependency>
        </dependencies>
      </dependencyManagement>

    And then you can add dependencies without setting the version, which will be automatically derived from the pom in quarkus-bom. I think this could be a nice addition to mill (maybe we could have dependencies like ivy"groupid:artifactid" without version, and derive the version from the pom artifacts.
    But I'm not going to work on this in the scope of quarkus.

  4. lefou commented on Sep 17, 2024

    @lefou
    Member

    The import-scope Maven dependencies are called BOM - Bill of Material. There are open requests for it in Mill and coursier:

    I think @alexarchambault will work on it in the next months (#3496).

  5. llvee commented on Sep 23, 2024

    @llvee

    @lolgab Did you complete this? If not maybe I will give this a shot in 24 hours from now.

  6. lolgab commented on Sep 23, 2024

    @lolgab
    Member

    I haven't completed it yet.

  7. llvee commented on Sep 23, 2024

    @llvee

    @lolgab Would you like some help with it? Have you made a lot of progress?

  8. llvee commented on Oct 14, 2024

    @llvee

    @lolgab Have you made any new progress on this?

  9. lolgab commented on Oct 14, 2024

    @lolgab
    Member

    No, I haven't. Feel free to work on it 👍

  10. changed the title [-]Add hello-world and todo-mvc Quarkus examples (500USD bounty)[/-] [+]Add hello-world and todo-mvc Quarkus examples (1000USD bounty)[/+] on Dec 11, 2024
  11. lihaoyi commented on Dec 11, 2024

    @lihaoyi
    MemberAuthor

    Bumping this up from 500 to 1000USD

  12. himanshumahajan138 commented on Jan 15, 2025

    @himanshumahajan138
    Contributor

    @lihaoyi Working on this (Have Read Docs and Seems it can be done)

  13. himanshumahajan138 commented on Feb 5, 2025

    @himanshumahajan138
    Contributor

    quarkus, in its maven and gradle plugins, does some code generation which seems to be necessary to create the main method to run applications.

    @lolgab could u please provide me some documentation or some link which will guide me for this

    Actually i got some understanding but not properly able to understand what's going on internally
    please give some brief if possible

  14. lolgab commented on Feb 5, 2025

    @lolgab
    Member

    I haven't investigated a lot, but you need to reimplement for mill the maven plugin for quarkus

  15. himanshumahajan138 commented on Feb 6, 2025

    @himanshumahajan138
    Contributor

    @lolgab means we have to create proper plugin first of all then use that plugin as dependency in our examples

    what u think we can use the already available codes in the link you gave

    looks hard than it looks 😶

  16. 4 remaining items

  17. Lynndabel commented on Nov 14, 2025

    @Lynndabel

    @lihaoyi can i work on this?

  18. changed the title [-]Add hello-world and todo-mvc Quarkus examples (1000USD bounty)[/-] [+]Add hello-world and todo-mvc Quarkus examples[/+] on Dec 28, 2025
  19. removed
    bountyThe fix/close of this issue is rewarded with a bounty
    on Dec 28, 2025
  20. lihaoyi commented on Dec 28, 2025

    @lihaoyi
    MemberAuthor

    Removing the bounty since after over a year we haven't managed to merge it

  21. vaslabs commented on Feb 3, 2026

    @vaslabs
    Contributor

    The main challenge for Quarkus is its integration points for generating the application models . Quarkus seems to only offer out of the box support for gradle and maven (they publish the plugins themselves) and we can see in the model serializer class things like

        public static void exportGradleModel(ApplicationModel model, boolean test) throws IOException {
            System.setProperty(test ? BootstrapConstants.SERIALIZED_TEST_APP_MODEL : BootstrapConstants.SERIALIZED_APP_MODEL,
                    serializeGradleModel(model, test).toString());
        }

    My main idea, very abstractly is that we need to create a mill worker integration that creates the ApplicationModel and serializes it with

        public static void serialize(ApplicationModel appModel, Path file) throws IOException {
            Files.createDirectories(file.getParent());
            if (JOS) {
                serializeWithJos(appModel, file);
            } else {
                toJson(appModel, file);
            }
        }

    I have not found any other integration points, the CLI itself uses either gradle or maven so it's not something we can reuse.

    Then, after we make Quarkus generate the serialized application model files, we can use all the utilities (such as running the integration tests)

  22. lefou commented on Feb 3, 2026

    @lefou
    Member

    It's always the same pattern, frameworks come with some selected tool integrations, while they should just provide some standalone tooling that can be easily integrated in tools afterwards, either as CLI app or as a plugin. I'm so sick of seeing it again and again.

  23. vaslabs commented on Feb 3, 2026

    @vaslabs
    Contributor

    It's always the same pattern, frameworks come with some selected tool integrations, while they should just provide some standalone tooling that can be easily integrated in tools afterwards, either as CLI app or as a plugin. I'm so sick of seeing it again and again.

    yeah, I thought on my first glance that it was an annotation processor somewhere we could reuse, or at least a utility program like spring boot or micronaut, I haven't found one though and following the gradle / maven plugins I ended up in this (I'm sure there will be more things that are blind spots down the line, because these plugins look massive, but hopefully we can give a basic web server / native support + testing to start with)

  24. vaslabs commented on Feb 3, 2026

    @vaslabs
    Contributor

    starting the work here

  25. added a commit that references this issue on Feb 16, 2026
  26. vaslabs commented on Feb 18, 2026

    @vaslabs
    Contributor

    I think with the latest PR everything is in order. Once it's merged @souvlakias let's give it a go for the todo-mvc example , with the difference (compared to others) of having the quarkus native tests as well

    can use the guide here

  27. added a commit that references this issue on Feb 20, 2026
  28. added a commit that references this issue on Feb 27, 2026
  29. vaslabs commented on Feb 27, 2026

    @vaslabs
    Contributor

    I think this can be closed now

  30. added this to the 1.1.3 milestone on Feb 27, 2026
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions