I’d like to execute a scala compile task from my build script but I can’t figure out how to configure it correctly. The task is in the snippet below. How do I specify the classpath attribute? I’ve tried a bunch of things but nothing works for me.
task compileModelDescriptor(type: ScalaCompile) {
source 'src/main/modelgen'
destinationDir project.file('build/classes/modeldescriptors')
classpath 'what do I put here?'
}
Hi, classpath is a property of ScalaCompile and needs to be set by assigning a filecollection. here’s an example where I assign a configuration (which implements FileCollection) to the classpath