Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Lesscss is not working on Gradle 4.4.1 #5

Open
maximshe opened this issue Dec 27, 2017 · 2 comments
Open

Lesscss is not working on Gradle 4.4.1 #5

maximshe opened this issue Dec 27, 2017 · 2 comments

Comments

@maximshe
Copy link

maximshe commented Dec 27, 2017

Hi,

I found that when I upgrade from Gradle 3.x to latest Gradle current lesscss is not working anymore.

09:38:33.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: groovy.lang.MissingMethodException: No signature of method: org.gradle.api.internal.tasks.DefaultTaskInputs.sourceDir() is applicable for argument types: (java.lang.String) values: [
src/main/webapp/css/less]
09:38:33.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at com.github.houbie.gradle.lesscss.SourceDirsTask.sourceDir(SourceDirsTask.groovy:71)
09:38:33.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.metaobject.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:479)
09:38:33.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.metaobject.BeanDynamicObject.tryInvokeMethod(BeanDynamicObject.java:191)
09:38:33.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.metaobject.CompositeDynamicObject.tryInvokeMethod(CompositeDynamicObject.java:98)
09:38:33.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.metaobject.MixInClosurePropertiesAsMethodsDynamicObject.tryInvokeMethod(MixInClosurePropertiesAsMethodsDynamicObject.java:30)
09:38:33.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.metaobject.ConfigureDelegate.invokeMethod(ConfigureDelegate.java:57)
09:38:33.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at build_69iuwkkafdzsik74bmucloxqy$_run_closure35.doCall(D:\projects\hera\src\hera\build.gradle:610)
09:38:33.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:71)
09:38:33.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.util.ConfigureUtil.configureTarget(ConfigureUtil.java:160)
09:38:33.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.util.ConfigureUtil.configureSelf(ConfigureUtil.java:136)
09:38:33.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.AbstractTask.configure(AbstractTask.java:634)
09:38:33.852 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.AbstractTask.configure(AbstractTask.java:86)
09:38:33.853 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:104)
09:38:33.853 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.internal.DefaultNamedDomainObjectCollection$ContainerElementsDynamicObject.tryInvokeMethod(DefaultNamedDomainObjectCollection.java:369)
09:38:33.853 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.metaobject.CompositeDynamicObject.tryInvokeMethod(CompositeDynamicObject.java:98)
09:38:33.853 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.metaobject.MixInClosurePropertiesAsMethodsDynamicObject.tryInvokeMethod(MixInClosurePropertiesAsMethodsDynamicObject.java:30)
09:38:33.853 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.groovy.scripts.BasicScript$ScriptDynamicObject.tryInvokeMethod(BasicScript.java:134)
09:38:33.853 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.metaobject.AbstractDynamicObject.invokeMethod(AbstractDynamicObject.java:160)
09:38:33.853 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.groovy.scripts.BasicScript.invokeMethod(BasicScript.java:83)
09:38:33.853 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at build_69iuwkkafdzsik74bmucloxqy.run(D:\projects\hera\src\hera\build.gradle:609)
09:38:33.853 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:90)

Any thoughts?

@maximshe
Copy link
Author

I found that sourceDir was deprecated since Gradle v.3.x see link below
https://github.com/gradle/gradle/blob/v3.5.1/subprojects/core/src/main/java/org/gradle/api/tasks/TaskInputs.java#L148

@maximshe
Copy link
Author

See #6

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant