tasks.processAot cannot be configured properly at this path
build-logic/spring-boot-native-application/src/main/kotlin/com.example.spring-boot-native-application.gradle.kts
But tasks.processAot in that path will work just fine
server/build.gradle.kts