Compiler plugins moved to CompilerEnvironmentConfiguration
This commit is contained in:
@@ -20,16 +20,16 @@ fun main(args: Array<String?>): Unit {
|
||||
*/
|
||||
class KDocCompiler() : KotlinCompiler() {
|
||||
|
||||
protected override fun configureEnvironment(environment : CompileEnvironmentConfiguration?, arguments : CompilerArguments?) {
|
||||
super.configureEnvironment(environment, arguments)
|
||||
val coreEnvironment = environment?.getEnvironment()
|
||||
protected override fun configureEnvironment(configuration : CompileEnvironmentConfiguration?, arguments : CompilerArguments?) {
|
||||
super.configureEnvironment(configuration, arguments)
|
||||
val coreEnvironment = configuration?.getEnvironment()
|
||||
if (coreEnvironment != null) {
|
||||
val kdoc = KDoc()
|
||||
|
||||
if (arguments is KDocArguments) {
|
||||
kdoc.config = arguments.apply()
|
||||
}
|
||||
val plugins = coreEnvironment.getCompilerPlugins().orEmpty()
|
||||
val plugins = configuration?.getCompilerPlugins().orEmpty()
|
||||
/*
|
||||
val sourcePlugin = HtmlCompilerPlugin()
|
||||
plugins.add(sourcePlugin)
|
||||
|
||||
Reference in New Issue
Block a user