[Solved] Custom plugin in 2.14.1: Project#logger is not usable

not-a-bug

(Chinh Mu) #1

Gradle Version: 2.14.1
Operating System: Fedora 24
Is this a regression? If yes, which version of Gradle do you know it last worked for?
No

Sample code:

apply plugin: 'java'

apply plugin: Test

class Test implements Plugin<Project> {

    @Override
    void apply(Project project) {
        // this is ok
        println 'Calling println()'

        // this line fails to build; comment out to be able to build
        project.logger.quite 'Calling logger.quite()'
    }

}

Log:

A problem occurred evaluating root project 'master'.
> Failed to apply plugin [class 'Test']
   > No signature of method: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger.quite() is applicable for argument types: (java.lang.String) values: [Calling logger.quite()]
     Possible solutions: quiet(java.lang.String), quiet(java.lang.String, [Ljava.lang.Object;), quiet(java.lang.String, java.lang.Throwable), wait(), wait(long), trace(java.lang.String)

Would you please check?

Thank you,


(Benjamin Muschko) #2

You have a typo in your method call. It should be quiet instead of quite.


(Chinh Mu) #3

Thank you very much. Shame on me :smiley: