Skip to content

Commit

Permalink
Simplify module compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sineaggi committed Jun 3, 2024
1 parent d9363fd commit c9fb4a6
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions okio/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,9 @@ testing {

tasks {
val compileJava9Java by getting(JavaCompile::class) {
val compileKotlinJvm = named<KotlinCompile>("compileKotlinJvm")
.flatMap { it.destinationDirectory }.map { it.asFile.absolutePath }
inputs.dir(compileKotlinJvm)
options.compilerArgumentProviders.plusAssign(
CommandLineArgumentProvider {
listOf("--patch-module", "okio=${compileKotlinJvm.get()}")
},
)
options.compilerArgumentProviders.add(CommandLineArgumentProvider {
listOf("--patch-module", "okio=${sourceSets["main"].output.asPath}")
})
options.release = 9
}

Expand Down

0 comments on commit c9fb4a6

Please sign in to comment.