diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-06-26 15:25:09 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2017-06-26 15:25:09 +0300 |
commit | 4810d07256c86825b85807dd93448279bde5b3b9 (patch) | |
tree | d7cc5162acdbea196e3c086a3d43d3ed6fa688a8 | |
parent | 1121071276ca2ce0afeabf4d3e540d4d8103f311 (diff) | |
download | dokka-4810d07256c86825b85807dd93448279bde5b3b9.tar.gz dokka-4810d07256c86825b85807dd93448279bde5b3b9.tar.bz2 dokka-4810d07256c86825b85807dd93448279bde5b3b9.zip |
Update bundled kotlin compiler to 1.1.3
21 files changed, 26 insertions, 26 deletions
diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 634de1d7..56269ff5 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -20,22 +20,22 @@ </profile> </annotationProcessing> <bytecodeTargetLevel> - <module name="android-gradle-plugin_main" target="1.6" /> - <module name="android-gradle-plugin_test" target="1.6" /> - <module name="ant_main" target="1.5" /> - <module name="ant_test" target="1.5" /> + <module name="android-gradle-plugin_main" target="1.8" /> + <module name="android-gradle-plugin_test" target="1.8" /> + <module name="ant_main" target="1.6" /> + <module name="ant_test" target="1.6" /> <module name="buildSrc_main" target="1.8" /> <module name="buildSrc_test" target="1.8" /> - <module name="cli_main" target="1.5" /> - <module name="cli_test" target="1.5" /> - <module name="core_main" target="1.5" /> - <module name="core_test" target="1.5" /> + <module name="cli_main" target="1.6" /> + <module name="cli_test" target="1.6" /> + <module name="core_main" target="1.6" /> + <module name="core_test" target="1.6" /> <module name="fatjar_main" target="1.8" /> <module name="fatjar_test" target="1.8" /> <module name="gradle-integration-tests_main" target="1.8" /> <module name="gradle-integration-tests_test" target="1.8" /> - <module name="gradle-plugin_main" target="1.6" /> - <module name="gradle-plugin_test" target="1.6" /> + <module name="gradle-plugin_main" target="1.8" /> + <module name="gradle-plugin_test" target="1.8" /> <module name="integration_main" target="1.8" /> <module name="integration_test" target="1.8" /> <module name="maven-plugin" target="1.5" /> diff --git a/core/build.gradle b/core/build.gradle index 274ea466..12d9754a 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -8,7 +8,7 @@ buildscript { apply plugin: 'kotlin' -sourceCompatibility = 1.5 +sourceCompatibility = 1.6 configurations { provided @@ -40,7 +40,7 @@ dependencies { runtime files("../lib/trove4j.jar") runtime files("../lib/jdom.jar") - runtime files("../lib/protobuf-2.5.0-lite.jar") + runtime files("../lib/protobuf-2.6.1-lite.jar") runtime files("../lib/asm-all.jar") runtime files("../lib/jps-model.jar") diff --git a/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt b/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt index 15d0a26b..1a6ccbd0 100644 --- a/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt +++ b/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt @@ -14,10 +14,7 @@ import com.intellij.openapi.roots.ProjectRootManager import com.intellij.openapi.util.Disposer import com.intellij.psi.PsiElement import com.intellij.psi.search.GlobalSearchScope -import org.jetbrains.kotlin.analyzer.AnalysisResult -import org.jetbrains.kotlin.analyzer.ModuleContent -import org.jetbrains.kotlin.analyzer.ModuleInfo -import org.jetbrains.kotlin.analyzer.ResolverForModule +import org.jetbrains.kotlin.analyzer.* import org.jetbrains.kotlin.cli.common.CLIConfigurationKeys import org.jetbrains.kotlin.cli.common.messages.MessageCollector import org.jetbrains.kotlin.cli.jvm.compiler.EnvironmentConfigFiles @@ -111,10 +108,12 @@ class AnalysisEnvironment(val messageCollector: MessageCollector) : Disposable { val sourcesScope = createSourceModuleSearchScope(environment.project, sourceFiles) val builtIns = JvmBuiltIns(projectContext.storageManager) - val resolverForProject = JvmAnalyzerFacade.setupResolverForProject( + + val resolverForProject = AnalyzerFacade.setupResolverForProject( "Dokka", projectContext, listOf(library, module), + { JvmAnalyzerFacade }, { when (it) { library -> ModuleContent(emptyList(), GlobalSearchScope.notScope(sourcesScope)) diff --git a/core/src/main/kotlin/Generation/DokkaGenerator.kt b/core/src/main/kotlin/Generation/DokkaGenerator.kt index e1b5a880..17b6b156 100644 --- a/core/src/main/kotlin/Generation/DokkaGenerator.kt +++ b/core/src/main/kotlin/Generation/DokkaGenerator.kt @@ -86,7 +86,7 @@ class DokkaGenerator(val logger: DokkaLogger, val environment = AnalysisEnvironment(DokkaMessageCollector(logger)) environment.apply { - addClasspath(PathUtil.getJdkClassesRoots()) + addClasspath(PathUtil.getJdkClassesRootsFromCurrentJre()) // addClasspath(PathUtil.getKotlinPathsForCompiler().getRuntimePath()) for (element in this@DokkaGenerator.classpath) { addClasspath(File(element)) @@ -116,7 +116,7 @@ class DokkaMessageCollector(val logger: DokkaLogger) : MessageCollector { private var seenErrors = false - override fun report(severity: CompilerMessageSeverity, message: String, location: CompilerMessageLocation) { + override fun report(severity: CompilerMessageSeverity, message: String, location: CompilerMessageLocation?) { if (severity == CompilerMessageSeverity.ERROR) { seenErrors = true } diff --git a/core/src/test/kotlin/TestAPI.kt b/core/src/test/kotlin/TestAPI.kt index 4799cd93..7141b731 100644 --- a/core/src/test/kotlin/TestAPI.kt +++ b/core/src/test/kotlin/TestAPI.kt @@ -56,8 +56,9 @@ fun appendDocumentation(documentation: DocumentationModule, } - override fun report(severity: CompilerMessageSeverity, message: String, location: CompilerMessageLocation) { + override fun report(severity: CompilerMessageSeverity, message: String, location: CompilerMessageLocation?) { when (severity) { + CompilerMessageSeverity.STRONG_WARNING, CompilerMessageSeverity.WARNING, CompilerMessageSeverity.LOGGING, CompilerMessageSeverity.OUTPUT, diff --git a/gradle.properties b/gradle.properties index 120295a9..3efea075 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,8 +2,8 @@ dokka_version=0.9.15 dokka_publication_channel=dokka #Kotlin compiler and plugin -kotlin_version=1.1.2 -kotlin_for_gradle_version=1.0.6 +kotlin_version=1.1.3 +kotlin_for_gradle_version=1.0.7 ant_version=1.9.6 diff --git a/lib/intellij-core-analysis.jar b/lib/intellij-core-analysis.jar Binary files differindex 38ddc95b..50520e0c 100644 --- a/lib/intellij-core-analysis.jar +++ b/lib/intellij-core-analysis.jar diff --git a/lib/jdom.jar b/lib/jdom.jar Binary files differindex b16dbde2..b913774f 100644 --- a/lib/jdom.jar +++ b/lib/jdom.jar diff --git a/lib/jps-model.jar b/lib/jps-model.jar Binary files differindex 538031e0..5467975d 100644 --- a/lib/jps-model.jar +++ b/lib/jps-model.jar diff --git a/lib/kotlin-compiler.jar b/lib/kotlin-compiler.jar Binary files differindex 3a7427b2..dec622b1 100644 --- a/lib/kotlin-compiler.jar +++ b/lib/kotlin-compiler.jar diff --git a/lib/kotlin-ide-common.jar b/lib/kotlin-ide-common.jar Binary files differindex 458b7646..943e221e 100644 --- a/lib/kotlin-ide-common.jar +++ b/lib/kotlin-ide-common.jar diff --git a/lib/kotlin-script-runtime.jar b/lib/kotlin-script-runtime.jar Binary files differindex 2b4ab1f0..e812e248 100644 --- a/lib/kotlin-script-runtime.jar +++ b/lib/kotlin-script-runtime.jar diff --git a/lib/markdown.jar b/lib/markdown.jar Binary files differindex 683cc22f..d0b2639b 100644 --- a/lib/markdown.jar +++ b/lib/markdown.jar diff --git a/lib/picocontainer.jar b/lib/picocontainer.jar Binary files differindex b0f0f56b..b9e5819d 100644 --- a/lib/picocontainer.jar +++ b/lib/picocontainer.jar diff --git a/lib/protobuf-2.5.0-lite.jar b/lib/protobuf-2.5.0-lite.jar Binary files differdeleted file mode 100644 index a0819eb6..00000000 --- a/lib/protobuf-2.5.0-lite.jar +++ /dev/null diff --git a/lib/protobuf-2.6.1-lite.jar b/lib/protobuf-2.6.1-lite.jar Binary files differnew file mode 100644 index 00000000..f1028780 --- /dev/null +++ b/lib/protobuf-2.6.1-lite.jar diff --git a/lib/trove4j.jar b/lib/trove4j.jar Binary files differindex a02528f1..26df1466 100644 --- a/lib/trove4j.jar +++ b/lib/trove4j.jar diff --git a/runners/android-gradle-plugin/build.gradle b/runners/android-gradle-plugin/build.gradle index a1747619..7c2eaa14 100644 --- a/runners/android-gradle-plugin/build.gradle +++ b/runners/android-gradle-plugin/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'java' apply plugin: 'kotlin' -sourceCompatibility = 1.6 +sourceCompatibility = 1.8 apply plugin: 'com.github.johnrengelman.shadow' apply plugin: "com.gradle.plugin-publish" diff --git a/runners/ant/build.gradle b/runners/ant/build.gradle index 20fc034d..2622ce6e 100644 --- a/runners/ant/build.gradle +++ b/runners/ant/build.gradle @@ -1,6 +1,6 @@ apply plugin: 'kotlin' -sourceCompatibility = 1.5 +sourceCompatibility = 1.6 configurations { provided diff --git a/runners/cli/build.gradle b/runners/cli/build.gradle index 2fa2752f..a1d9d4d6 100644 --- a/runners/cli/build.gradle +++ b/runners/cli/build.gradle @@ -1,6 +1,6 @@ apply plugin: 'kotlin' -sourceCompatibility = 1.5 +sourceCompatibility = 1.6 dependencies { compile project(":core") diff --git a/runners/gradle-plugin/build.gradle b/runners/gradle-plugin/build.gradle index dbb3d72a..1848570a 100644 --- a/runners/gradle-plugin/build.gradle +++ b/runners/gradle-plugin/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'java' apply plugin: 'kotlin' -sourceCompatibility = 1.6 +sourceCompatibility = 1.8 apply plugin: 'com.github.johnrengelman.shadow' apply plugin: "com.gradle.plugin-publish" |