I’m also open to exploring alternate ways of approaching this problem… basically what I want is to compile a bunch of .js files in a certain folder to .class. Thanks!
Hello Tinkerer, some notes about your snippet: * The type definition of your task is not working as it is part of the task name you’re dynamically declaring. * Using the << in the task declaration is a shortcut for a doLast{} closure. When declaring a typed task you normally never use this shortcut as you don’t want to add a doLast closure but add a configuration closure (just remove the << ) * you can move the args declaration in your task to the configuration phase.
Here’s a modified snippet that should do the trick: