Skip to content

Commit

Permalink
Use EnvironmentConfigFiles.JVM_CONFIG_FILES instead of EnvironmentCon…
Browse files Browse the repository at this point in the history
…figFiles.EMPTY

Because EMPTY is removed in 1.2.20
This is copy-paste of similar changes from Kotlin itself
JetBrains/kotlin@afc9d3e#diff-0326941c85afd979faa6998b7b95bff8R55

fixes pinterest#131
  • Loading branch information
MyDogTom committed Dec 27, 2017
1 parent 264ea7f commit 4f4e945
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ object KtLint {
}
DiagnosticLogger.setFactory(LoggerFactory::class.java)
val project = KotlinCoreEnvironment.createForProduction(Disposable {},
CompilerConfiguration(), EnvironmentConfigFiles.EMPTY).project
CompilerConfiguration(), EnvironmentConfigFiles.JVM_CONFIG_FILES).project
// everything below (up to PsiFileFactory.getInstance(...)) is to get AST mutations (`ktlint -F ...`) working
// otherwise it's not needed
val pomModel: PomModel = object : UserDataHolderBase(), PomModel {
Expand Down

0 comments on commit 4f4e945

Please # to comment.