Skip to content

NoSuchMethodError: old Apache library loaded in Gradle build environment #2183

Description

@edobry

Environment:

  • Jib version: 1.8.0
  • Build tool: Gradle 5.4.1
  • OS: OSX 10.14.6

Description of the issue:
When trying to run gradle jibDockerBuild with the jib gradle plugin v1.8.0, I got a very confusing error message with no results on Google:

> com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: org.apache.http.client.config.RequestConfig$Builder.setNormalizeUri(Z)Lorg/apache/http/client/config/RequestConfig$Builder;

Expected behavior:
When running the same command with the jib plugin v1.7.0, I get this much more helpful error message:

Steps to reproduce:

1. Kill the docker daemon
2. Add the jib gradle plugin v1.8.0 to a gradle build
3. Run gradle jibDockerBuild

jib-gradle-plugin Configuration:

plugins {
    id 'com.google.cloud.tools.jib' version '1.8.0'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions