Closed yevhensayenko closed 3 years ago
I had the same problem. After updating the plugin to version 3.3.6, now I get the following:
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':my-plugin:assetPluginPackage' (type 'AssetPluginPackage').
- In plugin 'com.bertramlabs.asset-pipeline' type 'asset.pipeline.gradle.AssetPluginPackage' property 'assetsDir' specifies directory '/home/bruno/git/my-app/my-plugin/grails-app/assets' which doesn't exist.
Reason: An input file was expected to be present but it doesn't exist.
Possible solutions:
1. Make sure the directory exists before the task is called.
2. Make sure that the task which produces the directory is declared as an input.
Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#input_file_does_not_exist for more details about this problem.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
How could I configure the plugin to ignore this kind of error?
You're going to love this solution. I had to add a empty assets directory to make the aforementioned error go away.
Yep annoyingly it's a gradle bug. looking into it
Asset pipeline Gradle plugin seems to be not working when using Gradle 7.x.x. Works only with Gradle 6.9 and below.
When running assetCompile task on Spring Boot project with Gradle 7.1.1 I get the following validation messages: