There should be, you can do pretty much anything in Gradle, for better or for worse. Gradle just uses Groovy (or Kotlin) code, so look up how to invoke applications from Java code, then make a custom Gradle task that invokes the Wine executable. From that point, it’s basically just “how do I run Wine via command line and tell it to run a specific executable?”