Skip to content

Commit

Permalink
fix: class initialization error fixed Fixes #42
Browse files Browse the repository at this point in the history
  • Loading branch information
augi committed Apr 20, 2021
1 parent 6ce5b82 commit cec4289
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ import org.scalafmt.interfaces.Scalafmt

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

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

Expand Down

0 comments on commit cec4289

Please sign in to comment.