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

Generated gradle app searches for wrong build versions

XMLWordPrintable

    • Hide

      1. For reproducing internally on RH systems, see comments
      2. Run "quarkus create app app --stream=3.8 --gradle -Dquarkus.analytics.disabled=true"
      3. Enter the "app" folder and run "quarkus build -Dmaven.repo.local=$REPO -Dquarkus.analytics.disabled=true"
      4. There are multiple failures, for different extensions, which look like this:

         > Could not find org.eclipse.microprofile.config:microprofile-config-api:3.1.0.redhat-00001.
           Searched in the following locations:
             - https://repo.maven.apache.org/maven2/org/eclipse/microprofile/config/microprofile-config-api/3.1.0.redhat-00001/microprofile-config-api-3.1.0.redhat-00001.pom
             - file:$REPO/org/eclipse/microprofile/config/microprofile-config-api/3.1.0.redhat-00001/microprofile-config-api-3.1.0.redhat-00001.pom
             - https://maven.repository.redhat.com/ga/org/eclipse/microprofile/config/microprofile-config-api/3.1.0.redhat-00001/microprofile-config-api-3.1.0.redhat-00001.pom
           Required by:
               project : > io.quarkus:quarkus-resteasy-reactive-kotlin:3.8.3.redhat-00002 > io.quarkus:quarkus-resteasy-reactive-common:3.8.3.redhat-00002 > io.quarkus:quarkus-mutiny:3.8.3.redhat-00002 > io.quarkus:quarkus-smallrye-context-propagation:3.8.3.redhat-00002 > io.smallrye:smallrye-context-propagation:2.1.0.redhat-00001\
      

      There is only this file: - file:$REPO/org/eclipse/microprofile/config/microprofile-config-api/3.0.3.redhat-00002
      /microprofile-config-api-3.0.3.redhat-00002.pom

      If step 4 doesn't use gradle, but maven, the built succeeds: ""quarkus create app app --stream=3.8 -Dquarkus.analytics.disabled=true"

      Other dependencies("wanted-> existing"):

       com.fasterxml.jackson.core:jackson-core:2.16.1.redhat-00002 -> 2.16.1.redhat-00003
      org.eclipse.microprofile.config:microprofile-config-api:3.1.0.redhat-00001 -> 3.0.3.redhat-00002
      io.smallrye.common:smallrye-common-classloader:2.2.0.redhat-00001 -> 2.2.0.redhat-00002
      org.ow2.asm:asm:9.6.0.redhat-00001 -> 9.6.0.redhat-00002
      
      Show
      1. For reproducing internally on RH systems, see comments 2. Run "quarkus create app app --stream=3.8 --gradle -Dquarkus.analytics.disabled=true" 3. Enter the "app" folder and run "quarkus build -Dmaven.repo.local=$REPO -Dquarkus.analytics.disabled=true" 4. There are multiple failures, for different extensions, which look like this: > Could not find org.eclipse.microprofile.config:microprofile-config-api:3.1.0.redhat-00001. Searched in the following locations: - https://repo.maven.apache.org/maven2/org/eclipse/microprofile/config/microprofile-config-api/3.1.0.redhat-00001/microprofile-config-api-3.1.0.redhat-00001.pom - file: $REPO /org/eclipse/microprofile/config/microprofile-config-api/3.1.0.redhat-00001/microprofile-config-api-3.1.0.redhat-00001.pom - https://maven.repository.redhat.com/ga/org/eclipse/microprofile/config/microprofile-config-api/3.1.0.redhat-00001/microprofile-config-api-3.1.0.redhat-00001.pom Required by: project : > io.quarkus:quarkus-resteasy-reactive-kotlin:3.8.3.redhat-00002 > io.quarkus:quarkus-resteasy-reactive-common:3.8.3.redhat-00002 > io.quarkus:quarkus-mutiny:3.8.3.redhat-00002 > io.quarkus:quarkus-smallrye-context-propagation:3.8.3.redhat-00002 > io.smallrye:smallrye-context-propagation:2.1.0.redhat-00001\ There is only this file: - file:$REPO/org/eclipse/microprofile/config/microprofile-config-api/ 3.0.3.redhat-00002 /microprofile-config-api- 3.0.3.redhat-00002 .pom If step 4 doesn't use gradle, but maven, the built succeeds: ""quarkus create app app --stream=3.8 -Dquarkus.analytics.disabled=true" Other dependencies("wanted-> existing"): com.fasterxml.jackson.core:jackson-core:2.16.1.redhat-00002 -> 2.16.1.redhat-00003 org.eclipse.microprofile.config:microprofile-config-api:3.1.0.redhat-00001 -> 3.0.3.redhat-00002 io.smallrye.common:smallrye-common-classloader:2.2.0.redhat-00001 -> 2.2.0.redhat-00002 org.ow2.asm:asm:9.6.0.redhat-00001 -> 9.6.0.redhat-00002
    • +
    • ---

      I generate a gradle app using quarkus cli. When I build the app, it looks for several dependencies, using the wrong version or build suffix ("redhat-00001" instead of existing "redhat-00002") and fails due to not found dependencies.

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

              Created:
              Updated:
              Resolved: