gradle-scalafmt icon indicating copy to clipboard operation
gradle-scalafmt copied to clipboard

Request for integration with play plugin

Open Munzey opened this issue 7 years ago • 4 comments

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 avatar May 12 '17 10:05 Munzey

@Munzey I'll look into this and let you know

alenkacz avatar May 14 '17 07:05 alenkacz

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)

Munzey avatar May 14 '17 09:05 Munzey

@alenkacz any progress on this?

Munzey avatar May 30 '17 13:05 Munzey

@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

alenkacz avatar May 30 '17 14:05 alenkacz