[BT] Move KotlinLogger to the bt-api module

#KT-57398 In Progress
This commit is contained in:
Alexander.Likhachev
2023-05-02 20:50:25 +02:00
committed by Space Team
parent 1005d0244a
commit 2412693ef0
6 changed files with 28 additions and 15 deletions
+1
View File
@@ -268,6 +268,7 @@ extra["kotlinJpsPluginMavenDependencies"] = listOf(
":kotlin-util-klib",
":kotlin-util-klib-metadata",
":native:kotlin-native-utils",
":compiler:build-tools:kotlin-build-tools-api",
)
extra["kotlinJpsPluginMavenDependenciesNonTransitiveLibs"] = listOf(
@@ -16,6 +16,7 @@ dependencies {
compileOnly(kotlinStdlib())
compileOnly(intellijCore())
implementation(project(":compiler:build-tools:kotlin-build-tools-api"))
implementation(commonDependency("com.google.code.gson:gson"))
testApi(kotlinStdlib())
}
@@ -8,6 +8,16 @@ public final class org/jetbrains/kotlin/buildtools/api/CompilationService$Compan
public final fun loadImplementation (Ljava/lang/ClassLoader;)Lorg/jetbrains/kotlin/buildtools/api/CompilationService;
}
public abstract interface class org/jetbrains/kotlin/buildtools/api/KotlinLogger {
public abstract fun debug (Ljava/lang/String;)V
public abstract fun error (Ljava/lang/String;Ljava/lang/Throwable;)V
public static synthetic fun error$default (Lorg/jetbrains/kotlin/buildtools/api/KotlinLogger;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V
public abstract fun info (Ljava/lang/String;)V
public abstract fun isDebugEnabled ()Z
public abstract fun lifecycle (Ljava/lang/String;)V
public abstract fun warn (Ljava/lang/String;)V
}
public final class org/jetbrains/kotlin/buildtools/api/SharedApiClassesClassLoader {
public static final fun newInstance ()Ljava/lang/ClassLoader;
}
@@ -0,0 +1,15 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.buildtools.api
public interface KotlinLogger {
public val isDebugEnabled: Boolean
public fun error(msg: String, throwable: Throwable? = null)
public fun warn(msg: String)
public fun info(msg: String)
public fun debug(msg: String)
public fun lifecycle(msg: String)
}
@@ -12,6 +12,7 @@ dependencies {
compileOnly(project(":kotlin-preloader"))
compileOnly(project(":compiler:frontend.java"))
compileOnly(project(":daemon-common"))
compileOnly(project(":compiler:build-tools:kotlin-build-tools-api"))
compileOnly(project(":compiler:util"))
compileOnly(intellijCore())
}
@@ -1,15 +0,0 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.buildtools.api
interface KotlinLogger {
val isDebugEnabled: Boolean
fun error(msg: String, throwable: Throwable? = null)
fun warn(msg: String)
fun info(msg: String)
fun debug(msg: String)
fun lifecycle(msg: String)
}