Gradle执行 processResource 的时候提示 String too long,那个文件是一个整体的json文件,不能拆分,怎么样处理这个问题?

小杨阿哥哥 发布于 04/06 10:20
阅读 18
收藏 0

如题

具体的异常是:

> Could not copy file '/Users/yan.yang/IdeaProjects/cdev/cdev-admin-web/src/main/resources/stencilset.json' to '/Users/yan.yang/IdeaProjects/cdev/cdev-admin-web/build/resources/main/stencilset.json'.

* 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
5 actionable tasks: 2 executed, 3 up-to-date
Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed:
SimpleTemplateScript36.groovy: 1: String too long. The given string is 128013 Unicode code units long, but only a maximum of 65535 is allowed.
 @ line 1, column 11.
   out.print("""{
             ^

1 error

 

加载中
返回顶部
顶部