我如何将 Maven Javah 任务写入 gradle。我有以下 POM 文件,我需要将其转换为 gradle 但我被卡住了如何将 Javah 任务写入 gradle
<executions>
<execution>
<id>javah</id>
<phase>generate-sources</phase>
<configuration>
<javahOS>linux</javahOS>
<javahProvider>default</javahProvider>
<javahOutputDirectory>${project.build.directory}/custom-javah</javahOutputDirectory>
<workingDirectory>${basedir}</workingDirectory>
<javahOutputFileName>MegJniWrapper.h</javahOutputFileName>
<javahClassNames>
<javahClassName>com.abcdefgh.engine.common.meg.MegJniWrapper</javahClassName>
</javahClassNames>
</configuration>
<goals>
<goal>javah</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>