Added possibility to create a custom usable KotlinCompile task without using internals ownModuleName and moduleName
#KT-60541 Ready for Review
This commit is contained in:
committed by
Space Team
parent
103ebb0ab4
commit
8299fffae2
@@ -1026,6 +1026,7 @@ public abstract interface class org/jetbrains/kotlin/gradle/plugin/KotlinJvmFact
|
||||
public abstract fun registerKaptGenerateStubsTask (Ljava/lang/String;)Lorg/gradle/api/tasks/TaskProvider;
|
||||
public abstract fun registerKaptTask (Ljava/lang/String;)Lorg/gradle/api/tasks/TaskProvider;
|
||||
public abstract fun registerKotlinJvmCompileTask (Ljava/lang/String;)Lorg/gradle/api/tasks/TaskProvider;
|
||||
public abstract fun registerKotlinJvmCompileTask (Ljava/lang/String;Ljava/lang/String;)Lorg/gradle/api/tasks/TaskProvider;
|
||||
}
|
||||
|
||||
public final class org/jetbrains/kotlin/gradle/plugin/KotlinPlatformType : java/lang/Enum, java/io/Serializable, org/gradle/api/Named {
|
||||
|
||||
+17
-1
@@ -38,9 +38,25 @@ interface KotlinJvmFactory {
|
||||
|
||||
fun createCompilerJvmOptions(): KotlinJvmCompilerOptions
|
||||
|
||||
/** Creates a Kotlin compile task. */
|
||||
/**
|
||||
* Creates a Kotlin compile task.
|
||||
*/
|
||||
@Deprecated(
|
||||
message = "Replaced by registerKotlinJvmCompileTask with module name",
|
||||
replaceWith = ReplaceWith("registerKotlinJvmCompileTask(taskName: String, moduleName: String)")
|
||||
)
|
||||
fun registerKotlinJvmCompileTask(taskName: String): TaskProvider<out KotlinJvmCompile>
|
||||
|
||||
|
||||
/**
|
||||
* Creates a Kotlin JVM compile task.
|
||||
*
|
||||
* @param taskName The name of the task to be created.
|
||||
* @param moduleName The name of the module for which the task is being created.
|
||||
* @return The task provider for the Kotlin JVM compile task.
|
||||
*/
|
||||
fun registerKotlinJvmCompileTask(taskName: String, moduleName: String): TaskProvider<out KotlinJvmCompile>
|
||||
|
||||
/** Creates a stub generation task which creates Java sources stubs from Kotlin sources. */
|
||||
fun registerKaptGenerateStubsTask(taskName: String): TaskProvider<out KaptGenerateStubs>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user