Skip to content

Commit

Permalink
feat: optimization as suggested in #34 (#41)
Browse files Browse the repository at this point in the history
Co-authored-by: Michal Augustýn <michal.augustyn@avast.com>
  • Loading branch information
augi and augi committed Apr 13, 2021
1 parent 2991939 commit 7fd3af1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import org.scalafmt.interfaces.Scalafmt

class ScalafmtFormatBase extends DefaultTask {
SourceSet sourceSet
private ClassLoader cl = this.class.getClassLoader()
static private ClassLoader cl = this.class.getClassLoader()
@Internal PluginExtension pluginExtension

private Scalafmt globalFormatter = Scalafmt.create(cl)
static private Scalafmt globalFormatter = Scalafmt.create(cl)
.withRespectVersion(false)
.withDefaultVersion("2.7.5")

Expand Down

0 comments on commit 7fd3af1

Please sign in to comment.