Using Gradle 4.x's implementation configuration results in runtime exceptions
See original GitHub issueI 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 ClassNotFoundException
s. After changing all my implementation
s 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:
- Created 5 years ago
- Comments:9 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
(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)
@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