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.

Using Gradle 4.x's implementation configuration results in runtime exceptions

See original GitHub issue

I set up the project using the sample project and using the latest Gradle (4.9): https://docs.gradle.org/4.9/userguide/java_plugin.html#sec:java_plugin_and_dependency_management

compile is deprecated since 4.0, but this plugin still relies on it and doesn’t work if using the new replacement configuration implementation. The server started up with jettyRun but when I tried to do any operations on it it crashed with ClassNotFoundExceptions. After changing all my implementations to compile it started working.

Note: providedCompile should also be the new compileOnly configuration.

Since the Gradle requirements are “2.0.0 + | 4.0 or newer”, it should support this feature.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
TWiStErRobcommented, Sep 1, 2018

(I’m migrating from AppEngine 1.8.11 with Eclipse plugin to latest with Gradle/IDEA due to Java 7 deprecation; back then there was no standard/flexible as far as I remember)

0reactions
loosebazookacommented, Sep 18, 2018

@parkjam4 looks like gretty is being maintined in a new repository github.com/gretty-gradle-plugin, I’m going to see if that plugin works with gradle 4.x

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading your build from Gradle 4.x to 5.0
This chapter provides the information you need to migrate your older Gradle 4.x builds to Gradle 5.0. In most cases, you will need...
Read more >
java - How to generate jaxb classes from xsd using gradle ...
Task name is "generateSources", and need to be adjusted to your schema location. configurations { jaxb // Only for generation purpose } ...
Read more >
Gradle implementation vs. compile dependencies
Let's find out with the two simple rules described in this article. Quick answer: use the implementation configuration and never compile, ...
Read more >
JAXB Users Guide - Java EE
This is an actual example of the offending part of a schema, taken from MathML. ... For the Maven plugin, use the <catalog>...
Read more >
WSDL to Java - Apache CXF
The WSDL service name to use for the generated code. ... -d output-directory ... Generates starting point code for an implementation object. -all....
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