Skip to content

Commit

Permalink
Make compatible with org.jetbrains.kotlin.multiplatform
Browse files Browse the repository at this point in the history
  • Loading branch information
izhangzhihao committed Aug 9, 2024
1 parent b234544 commit 8fcaa6b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 119 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ class UnmetaPlugin : Plugin<Project> {
extension = project.extensions.create("unmeta", UnmetaExtension::class.java, project)
val unmetaTaskTask = project.tasks.create("unmeta", UnmetaTask::class.java)
unmetaTaskTask.enable.set(extension.enable)
project.tasks.getByName("compileKotlin").finalizedBy(unmetaTaskTask)
val t = try {
project.tasks.getByName("compileKotlin")
} catch (e: org.gradle.api.UnknownTaskException) {
project.tasks.getByName("compileKotlinJvm")
}
t.finalizedBy(unmetaTaskTask)
}
}

0 comments on commit 8fcaa6b

Please sign in to comment.