Closed renatoathaydes closed 7 years ago
Notice that this will allow this plugin to support other languages in the JVM, including Kotlin, Scala, Ceylon and Groovy.
Hello Renato, i apologize for the late feedback. I have changed the apply() operation as you suggested and released a new version (0.5.4) of the plugin.
Please let me know whether it solves your issue.
This plugin causes the following error when applied to my project:
That's because in the
apply()
method, this Plugin assumes the java plugin already added thecompileJava
task to the project, but that is not always the case as the order in which plugins are applied cannot be assumed by Gradle plugins.The correct way to "use" a task from a different plugin is to use Gradle's callback mechanism, something like this (in Groovy):