如何在Gradle中生成元模型?

时间:2023-01-17 13:58:14

I need to generate class meta models in Spring application. I added a task in build.gradle (this is my file code build.gradle), but this code does not work. It does not generate any files. There is no reaction. For the time being, I am doing this manually, but I would like Gradle to do it automatically.

我需要在Spring应用程序中生成类元模型。我在build.gradle中添加了一个任务(这是我的文件代码build.gradle),但是这段代码不起作用。它不会生成任何文件。没有反应。目前,我手动执行此操作,但我希望Gradle自动执行此操作。

1 个解决方案

#1


0  

Too little details to help you effectively, however I see you didn't specify the main configuration argument for JavaExec which is required to make this task run correctly. If it's missing it should just finish with an exception. What is the gradle output in your case?

太少的细节可以帮助您有效,但是我发现您没有指定JavaExec的主要配置参数,这是使该任务正确运行所必需的。如果它丢失了,它应该以异常结束。您的案例中的gradle输出是什么?

#1


0  

Too little details to help you effectively, however I see you didn't specify the main configuration argument for JavaExec which is required to make this task run correctly. If it's missing it should just finish with an exception. What is the gradle output in your case?

太少的细节可以帮助您有效,但是我发现您没有指定JavaExec的主要配置参数,这是使该任务正确运行所必需的。如果它丢失了,它应该以异常结束。您的案例中的gradle输出是什么?