Fixed gradle and maven plugins after changing compiler API.
This commit is contained in:
+3
-2
@@ -28,6 +28,7 @@ import org.jetbrains.kotlin.gradle.plugin.*
|
||||
import org.jetbrains.kotlin.doc.KDocConfig
|
||||
import java.util.concurrent.Callable
|
||||
import org.gradle.api.Project
|
||||
import org.jetbrains.jet.config.CompilerServices
|
||||
|
||||
public open class KotlinCompile(): AbstractCompile() {
|
||||
|
||||
@@ -122,7 +123,7 @@ public open class KotlinCompile(): AbstractCompile() {
|
||||
|
||||
val messageCollector = GradleMessageCollector(getLogger())
|
||||
getLogger().debug("Calling compiler")
|
||||
val exitCode = compiler.exec(messageCollector, args)
|
||||
val exitCode = compiler.exec(messageCollector, CompilerServices.empty, args)
|
||||
|
||||
when (exitCode) {
|
||||
ExitCode.COMPILATION_ERROR -> throw GradleException("Compilation error. See log for more details")
|
||||
@@ -188,7 +189,7 @@ public open class KDoc(): SourceTask() {
|
||||
val compiler = KDocCompiler()
|
||||
|
||||
val messageCollector = GradleMessageCollector(getLogger())
|
||||
val exitCode = compiler.exec(messageCollector, args);
|
||||
val exitCode = compiler.exec(messageCollector, CompilerServices.empty, args);
|
||||
|
||||
when (exitCode) {
|
||||
ExitCode.COMPILATION_ERROR -> throw GradleException("Failed to generate kdoc. See log for more details")
|
||||
|
||||
+2
-1
@@ -35,6 +35,7 @@ import org.jetbrains.jet.cli.common.messages.CompilerMessageLocation;
|
||||
import org.jetbrains.jet.cli.common.messages.CompilerMessageSeverity;
|
||||
import org.jetbrains.jet.cli.common.messages.MessageCollector;
|
||||
import org.jetbrains.jet.cli.jvm.K2JVMCompiler;
|
||||
import org.jetbrains.jet.config.CompilerServices;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@@ -259,7 +260,7 @@ public abstract class KotlinCompileMojoBase extends AbstractMojo {
|
||||
@NotNull CommonCompilerArguments arguments,
|
||||
@NotNull MessageCollector messageCollector
|
||||
) {
|
||||
return compiler.exec(messageCollector, arguments);
|
||||
return compiler.exec(messageCollector, CompilerServices.OBJECT$.getEmpty(), arguments);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user