Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-6954

Quarkus CLI includes productised Langcain4j even when the registry is marked with redhat offering

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Hide

      1. Create the following config for the quarkus cli:

      registries: 
      - testingregistry: 
          descriptor: 
            artifact: testingregistry:quarkus-registry-descriptor::json:1.0-SNAPSHOT
          maven: 
            repository: 
              url: https://registry-3-27-1-redhat-00003.apps.int.gpc.ocp-hub.prod.psi.redhat.com/maven
          offering: redhat
      - registry.quarkus.redhat.com
      - registry.quarkus.io
      

      2. generate the app using the same config:

      quarkus create app app --stream=3.27 -x=quarkus-rest-jackson,quarkus-langchain4j-openai --config=config.yaml
      

      3. Check the app pom for langchain version. The app uses productised version of langchain-bom:

      $ grep version -B2 app/pom.xml 
      <?xml version="1.0" encoding="UTF-8"?>
      --
          <groupId>org.acme</groupId>
          <artifactId>app</artifactId>
          <version>1.0.0-SNAPSHOT</version>
      
          <properties>
              <compiler-plugin.version>3.14.0</compiler-plugin.version>
      --
              <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
              <quarkus.platform.group-id>com.redhat.quarkus.platform</quarkus.platform.group-id>
              <quarkus.platform.version>3.27.1.redhat-00003</quarkus.platform.version>
              <skipITs>true</skipITs>
              <surefire-plugin.version>3.5.3</surefire-plugin.version>
      --
                      <groupId>${quarkus.platform.group-id}</groupId>
                      <artifactId>${quarkus.platform.artifact-id}</artifactId>
                      <version>${quarkus.platform.version}</version>
      --
                      <groupId>${quarkus.platform.group-id}</groupId>
                      <artifactId>quarkus-langchain4j-bom</artifactId>
                      <version>${quarkus.platform.version}</version>
      --
                      <groupId>${quarkus.platform.group-id}</groupId>
                      <artifactId>quarkus-maven-plugin</artifactId>
                      <version>${quarkus.platform.version}</version>
      --
                  <plugin>
                      <artifactId>maven-compiler-plugin</artifactId>
                      <version>${compiler-plugin.version}</version>
      --
                  <plugin>
                      <artifactId>maven-surefire-plugin</artifactId>
                      <version>${surefire-plugin.version}</version>
      --
                  <plugin>
                      <artifactId>maven-failsafe-plugin</artifactId>
                      <version>${surefire-plugin.version}</version>
      
      
      Show
      1. Create the following config for the quarkus cli: registries: - testingregistry: descriptor: artifact: testingregistry:quarkus-registry-descriptor::json: 1 . 0 -SNAPSHOT maven: repository: url: https://registry- 3 - 27 - 1 -redhat- 00003 .apps.int.gpc.ocp-hub.prod.psi.redhat.com/maven offering: redhat - registry.quarkus.redhat.com - registry.quarkus.io 2. generate the app using the same config: quarkus create app app --stream=3.27 -x=quarkus-rest-jackson,quarkus-langchain4j-openai --config=config.yaml 3. Check the app pom for langchain version. The app uses productised version of langchain-bom: $ grep version -B2 app/pom.xml <?xml version= "1.0" encoding= "UTF-8" ?> -- <groupId>org.acme</groupId> <artifactId>app</artifactId> <version>1.0.0-SNAPSHOT</version> <properties> <compiler-plugin.version>3.14.0</compiler-plugin.version> -- <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id> <quarkus.platform.group-id>com.redhat.quarkus.platform</quarkus.platform.group-id> <quarkus.platform.version>3.27.1.redhat-00003</quarkus.platform.version> <skipITs>true</skipITs> <surefire-plugin.version>3.5.3</surefire-plugin.version> -- <groupId>${quarkus.platform.group-id}</groupId> <artifactId>${quarkus.platform.artifact-id}</artifactId> <version>${quarkus.platform.version}</version> -- <groupId>${quarkus.platform.group-id}</groupId> <artifactId>quarkus-langchain4j-bom</artifactId> <version>${quarkus.platform.version}</version> -- <groupId>${quarkus.platform.group-id}</groupId> <artifactId>quarkus-maven-plugin</artifactId> <version>${quarkus.platform.version}</version> -- <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>${compiler-plugin.version}</version> -- <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>${surefire-plugin.version}</version> -- <plugin> <artifactId>maven-failsafe-plugin</artifactId> <version>${surefire-plugin.version}</version>
    • ---

      Quarkus CLI has an ability to set offering for registry in config and use only extensions, which are supported in that offering. Despite that Langchain4j is only supported in IBM offering, the CLI will create application which use version of the Langchain4j from the registry marked as redhat offering.

              olubyans@redhat.com Alexey Loubyansky
              rhn-support-fdudinsk Fedor Dudinskii
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: