Skip to content

Commit

Permalink
chore: Scalafmt version extracted to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
augi committed Jun 8, 2021
1 parent 4969b1a commit 5f7be6d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ class ScalafmtFormatBase extends DefaultTask {
SourceSet sourceSet
@Internal PluginExtension pluginExtension

public static String SCALAFMT_VERSION = '2.7.5'

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

@InputFiles
@PathSensitive(PathSensitivity.RELATIVE)
Expand Down

0 comments on commit 5f7be6d

Please sign in to comment.