gradle-scalafmt
gradle-scalafmt copied to clipboard
Request for integration with play plugin
Hi, thanks for making this plugin!
I have a project using both scala
and play
plugins. The only way i can get scalafmt
task to run is to configure sourceSets like so:
sourceSets {
main {
scala {
srcDirs = ['app']
}
}
test {
scala {
srcDirs = ['test']
}
}
}
Any way to scrap this so scalafmt plugin knows to look in the src dirs that the play plugin sets? Cheers
@Munzey I'll look into this and let you know
Thanks! Just to add context, I don't mind having to specify source sets for the plugin to know where to look, however it would be great if this was contained to a scalafmt configuration for example, this way I wouldn't have to worry about accidentally calling a java/scala plugin task like 'check' just to see gradle fail because I have no compile dependency on scala (this would pass if I didn't specify source sets which I have to now to get the scalafmt plugin to run)
@alenkacz any progress on this?
@Munzey oops, I completely forgot about that :) very sorry! My week is quite busy but I will really take at least a look into it till the end of week