Skip to content

Commit

Permalink
Still add framework.jar into Kotlin classpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Sep 9, 2023
1 parent 70bd4f4 commit 1abc4fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import com.android.build.gradle.api.AndroidBasePlugin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand Down Expand Up @@ -52,8 +51,8 @@ allprojects {
tasks.withType(JavaCompile).configureEach {
classpath = files(frameworkJar, classpath)
}
dependencies {
compileOnly files(frameworkJar)
tasks.withType(KotlinCompile).configureEach {
it.libraries.from(files(frameworkJar))
}
}
}
Expand Down

0 comments on commit 1abc4fb

Please sign in to comment.