graalvm / native-build-tools

Native-image plugins for various build tools
https://graalvm.github.io/native-build-tools/
Other
366 stars 57 forks source link

Why can't I use type-safe processAot in gradle build-logic #536

Closed ShipinZ closed 11 months ago

ShipinZ commented 11 months ago

Describe the problem I'm using gradle to build my project, I've defined a plugin 'spring-boot-native-dubbo-application', I want to configure some native public configuration in it, But I found it impossible to type safely use 'tasks.processAot' in the plugin 'spring-boot-native-dubbo-application' : image image But in a project that uses the 'spring-boot-native-dubbo-application' plugin, it is possible to type safely configure 'tasks.processAot' image image But that would be tedious, because it would have to be configured for every project that uses native. Is there any way to configure 'tasks.processAot' in a common way?

System Info (please complete the following information):

melix commented 11 months ago

This isn't the correct repository : your question should be asked on the Spring Boot plugin, which adds AOT: this task is not created by the native build tools plugins.