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

Quarkus create app with gradle causing unresolved netty dependencies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.2.9.GA, 3.2.9.CR1
    • 3.2.6.CR1
    • team/prod
    • None
    • Hide
      wget -q -O quarkus-maven-repo.zip ${MAVEN_REPO_ZIP_URL}
      unzip -qo quarkus-maven-repo.zip
      LOCAL_REPO="$(pwd)/rh-quarkus-platform-3.2.6.GA-maven-repository/maven-repository/"
      
      quarkus create app app --stream=3.2 --gradle
      
      quarkus build -Dmaven.repo.local=${LOCAL_REPO}
      
      Show
      wget -q -O quarkus-maven-repo.zip ${MAVEN_REPO_ZIP_URL} unzip -qo quarkus-maven-repo.zip LOCAL_REPO= "$(pwd)/rh-quarkus-platform-3.2.6.GA-maven-repository/maven-repository/" quarkus create app app --stream=3.2 --gradle quarkus build -Dmaven.repo.local=${LOCAL_REPO}
    • Hide

      Using maven or changing the artifacts in netty-bom to productized version

      Show
      Using maven or changing the artifacts in netty-bom to productized version
    • ---

      While building created app by gradle (see reproducer) the gradle can't resolve all the dependencies as they are required by io.quarkus:quarkus-resteasy-reactive-kotlin as gradle trying the resolve the dependency for kotlin as well. This don't happening with maven because quarkus-resteasy-reactive-kotlin is marked as optional. Error while trying to resolve the dependencies

      Could not resolve all dependencies for configuration ':detachedConfiguration2'.
         > Could not find io.netty:netty-handler-proxy:4.1.94.Final-redhat-00001.
           Searched in the following locations:
             - https://repo.maven.apache.org/maven2/io/netty/netty-handler-proxy/4.1.94.Final-redhat-00001/netty-handler-proxy-4.1.94.Final-redhat-00001.pom
             - file:rh-quarkus-platform-3.2.6.GA-maven-repository/maven-repository/io/netty/netty-handler-proxy/4.1.94.Final-redhat-00001/netty-handler-proxy-4.1.94.Final-redhat-00001.pom
             - https://maven.repository.redhat.com/ga/io/netty/netty-handler-proxy/4.1.94.Final-redhat-00001/netty-handler-proxy-4.1.94.Final-redhat-00001.pom
           Required by:
               project : > io.quarkus:quarkus-resteasy-reactive-kotlin:3.2.6.Final-redhat-00001 > io.quarkus:quarkus-resteasy-reactive-common:3.2.6.Final-redhat-00001 > io.quarkus:quarkus-vertx:3.2.6.Final-redhat-00001 > io.smallrye.common:smallrye-common-vertx-context:2.1.0.redhat-00001 > io.vertx:vertx-core:4.4.4.redhat-00001
         > Could not find io.netty:netty-resolver-dns:4.1.94.Final-redhat-00001.
           Searched in the following locations:
             - https://repo.maven.apache.org/maven2/io/netty/netty-resolver-dns/4.1.94.Final-redhat-00001/netty-resolver-dns-4.1.94.Final-redhat-00001.pom
             - file:rh-quarkus-platform-3.2.6.GA-maven-repository/maven-repository/io/netty/netty-resolver-dns/4.1.94.Final-redhat-00001/netty-resolver-dns-4.1.94.Final-redhat-00001.pom
             - https://maven.repository.redhat.com/ga/io/netty/netty-resolver-dns/4.1.94.Final-redhat-00001/netty-resolver-dns-4.1.94.Final-redhat-00001.pom
           Required by:
               project : > io.quarkus:quarkus-resteasy-reactive-kotlin:3.2.6.Final-redhat-00001 > io.quarkus:quarkus-resteasy-reactive-common:3.2.6.Final-redhat-00001 > io.quarkus:quarkus-vertx:3.2.6.Final-redhat-00001 > io.smallrye.common:smallrye-common-vertx-context:2.1.0.redhat-00001 > io.vertx:vertx-core:4.4.4.redhat-00001
      

      JFI:
      After looking there is io.netty:netty-bom:4.1.94.Final-redhat-00001 which contains artifacts with the same version but productized version of these artifact is 4.1.94.Final-redhat-00002. After change the version in netty-bom to actual productized artifacts it's work with gradle.

      <dependency>
              <groupId>io.netty</groupId>
              <artifactId>netty-buffer</artifactId>
              <version>4.1.94.Final-redhat-00001</version>
       </dependency>
      

      Most probable source of this problem is the optional parameter in pom which is not used with gradle and by this we end up with some productized kotlin artifacts.

            varjain@redhat.com Vardhman Jain
            jjedlick@redhat.com Jakub Jedlicka
            Jakub Jedlicka Jakub Jedlicka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: