Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-6838

Quarkus + Kogito Drl + Gradle project does not generate endpoints from rules

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.17.0.Final
    • Documentation, Examples
    • None
    • False
    • False
    • Hide
      Show
      Download the project https://github.com/carlareu/business-rules-service Run it with quarkus. You can see the endpoint /eligibility is not generated from file prospective-applicant-eligibility-rules.drl -> query Eligibility

    Description

      Tools:

      • Quarkus 2.7.2.Final
      • Java 11
      • org.kie.kogito:kogito-quarkus-rules
      • Gradle 6.9

      I´ve followed this (https://quarkus.io/guides/kogito-drl) instructions to build a very simple similar project, instead of maven I used gradle.

      In theory, after run the quarkus project, the rest endpoint should be created from the query of rules file (.drl, in my case "/eligibility"), but there is no kogito target folder generated.

      The project is running well without any error, but I see this in the logs:

      2022-02-28 17:54:21,832 INFO  [org.kie.kog.cod.cor.ApplicationGenerator] (build-44) Skipping generator 'openapispecs' because disabled
      2022-02-28 17:54:21,832 INFO  [org.kie.kog.cod.cor.ApplicationGenerator] (build-44) Skipping generator 'rules' because disabled

       

      I don´t think is an issue, maybe I miss something in the application.properties, but I searched it many time and didn´t find anything about that.

      You can see my project here -> https://github.com/carlareu/business-rules-service

       

       

      Example with Maven (is working fine)

      Kogito folder is generated under /target

       

      My case with Gradle (is not working)

      There is no Kogito folder under /build, therefore there is no endpoints automatically generated.

       

       

      Attachments

        Activity

          People

            ebalta@redhat.com Esther Balta (Inactive)
            carlareu Carlos López Areu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: