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.

`--package` not working with Gradle 5.0

See original GitHub issue

Running the package option with gradle 5.0 installed causes it to fail with the underlying gradle message.

Gradle does not allow passing null for the configuration action for CopySpec.from()

Note that the message was captured debugging.

With gradle 4.10.2, it worked fine.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
holgerbrandlcommented, Dec 12, 2018

danthegoodman/gradle-capsule-plugin#39 seems to work only with gradle 5 and not with older gradles, otherwise I’d just fork the PR and push it to jcenter as a quickfix. But this option does not seems on the table, because at least gradle 4 should be supported by the plugin.

For sure the best solution would be to implement packaging in-process without calling an external tool. This would also remove the dependency on the capsule-gradle-plugin. Maybe capsule could be called programmatically? I would be very thankful for any help on such a feature.

Alternatively with the new bootstrap header support contributed with #199 we could also think about dropping --packaging entirely? IMHO both are a bit too different, so it may be nice to maintain both packaging modes separately.

2reactions
gianluzcommented, Feb 2, 2019

I have published the new plugin, i’m just awaiting for approval, after that i’ll open a PR here to fix the problem 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

`--package` not working with Gradle 5.0 · Issue #197 - GitHub
Running the package option with gradle 5.0 installed causes it to fail with the underlying gradle message. Gradle does not allow passing ...
Read more >
Troubleshooting builds - Gradle User Manual
If you followed the installation instructions, and aren't able to execute your Gradle build, here are some tips that may help. If you...
Read more >
Upgrading your build from Gradle 4.x to 5.0
Try running gradle help --scan and view the deprecations view of the generated build scan. If there are no warnings, the Deprecations tab...
Read more >
Upgrading your build from Gradle 5.x to 6.0
Try running gradle help --scan and view the deprecations view of the generated build scan. Deprecations View of a Gradle Build Scan. This...
Read more >
Gradle 5.0 Release Notes
The Gradle team is excited to announce Gradle 5.0. ... Configure project and source package names ... 164 issues have been fixed in...
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