diff --git a/.travis.yml b/.travis.yml index f176e570d7..108bf07b24 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,2 +1,4 @@ language: java +jdk: + - oraclejdk8 script: ./mvnw clean verify diff --git a/ktlint-core/src/main/kotlin/com/github/shyiko/ktlint/core/KtLint.kt b/ktlint-core/src/main/kotlin/com/github/shyiko/ktlint/core/KtLint.kt index edf62569df..c8d15ea3dc 100644 --- a/ktlint-core/src/main/kotlin/com/github/shyiko/ktlint/core/KtLint.kt +++ b/ktlint-core/src/main/kotlin/com/github/shyiko/ktlint/core/KtLint.kt @@ -1,5 +1,6 @@ package com.github.shyiko.ktlint.core +import org.jetbrains.kotlin.cli.jvm.compiler.EnvironmentConfigFiles import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment import org.jetbrains.kotlin.com.intellij.lang.ASTNode import org.jetbrains.kotlin.com.intellij.mock.MockProject @@ -37,7 +38,7 @@ object KtLint { init { val project = KotlinCoreEnvironment.createForProduction(Disposable {}, - CompilerConfiguration(), emptyList()).project + CompilerConfiguration(), EnvironmentConfigFiles.EMPTY).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 { diff --git a/pom.xml b/pom.xml index 26af458aca..46c5d80afe 100644 --- a/pom.xml +++ b/pom.xml @@ -40,7 +40,7 @@ UTF-8 - 1.1.0 + 1.1.3-2 1.1.0 3.2.5 2.33