-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set destinationDir for KotlinCompileTaskData.
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
6 changes: 5 additions & 1 deletion
6
gradle-plugin/src/main/java/com/google/devtools/ksp/gradle/InternalTrampoline.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
package com.google.devtools.ksp.gradle; | ||
|
||
import org.gradle.api.provider.Provider; | ||
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation; | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompileTaskData; | ||
|
||
import java.io.File; | ||
|
||
// FIXME: Ask upstream to open these API | ||
public class InternalTrampoline { | ||
public static void KotlinCompileTaskData_register(String taskName, KotlinCompilation<?> kotlinCompilation) { | ||
public static void KotlinCompileTaskData_register(String taskName, KotlinCompilation<?> kotlinCompilation, Provider<File> destinationDirProvider) { | ||
KotlinCompileTaskData kotlinCompileTaskData = KotlinCompileTaskData.Companion.register(taskName, kotlinCompilation); | ||
kotlinCompileTaskData.getDestinationDir().set(destinationDirProvider); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters