question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build fails after upgrade to Gradle 6.4

See original GitHub issue

Environment:

  • Jib version: 2.2.0
  • Build tool: Gradle 6.4 (Works with Gradle 6.3)
  • Java version: 11
  • OS: MacOS

Description of the issue: jibDockerBuild fails with:

class org.gradle.api.internal.provider.DefaultProperty cannot be cast to class java.lang.String (org.gradle.api.internal.provider.DefaultProperty is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @22927a81; java.lang.String is in module java.base of loader 'bootstrap')

Steps to reproduce:

  1. Configure any value for jib.from.image
  2. Execute jibDockerBuild

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
dstepanovcommented, May 16, 2020

I have the same problem, Mac, Gradle 6.4 It happens only if there is an application plugin added:

plugins {
    id "application"
}

mainClassName = "com.xxx.zzz.Application"
0reactions
loosebazookacommented, May 16, 2020

Thanks for the update @xRomZak
I will close for now then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading your build from Gradle 6.x to the latest
While the following error initially looks like a compile error, it is actually due to the fact that specific `Configuration`s have been removed....
Read more >
Gradle build failing after update to 3.0 - Stack Overflow
Upgrade your gradle build tools to the latest version. One easy way to do this is to add the latest version of the...
Read more >
How to update Gradle - Tom Gregory
You can go to the Gradle releases page to find the latest version. If you're using Java just remember that what Java version...
Read more >
Bug: IDE suggest to update gradle version for a new project ...
And after: classpath "com.android.tools.build:gradle:4.1.0-alpha09" ... To resolve the problem you can change/upgrade the target version of Gradle you ...
Read more >
How to Efficiently Upgrade to Latest Version of Gradle - Medium
fix the build problems for the current version · push the changes to GitHub · identity the new latest version which passes ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found