Skip to content

Commit c9fb4a6

Browse files
committed
Simplify module compilation
1 parent d9363fd commit c9fb4a6

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

okio/build.gradle.kts

+3-8
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,9 @@ testing {
220220

221221
tasks {
222222
val compileJava9Java by getting(JavaCompile::class) {
223-
val compileKotlinJvm = named<KotlinCompile>("compileKotlinJvm")
224-
.flatMap { it.destinationDirectory }.map { it.asFile.absolutePath }
225-
inputs.dir(compileKotlinJvm)
226-
options.compilerArgumentProviders.plusAssign(
227-
CommandLineArgumentProvider {
228-
listOf("--patch-module", "okio=${compileKotlinJvm.get()}")
229-
},
230-
)
223+
options.compilerArgumentProviders.add(CommandLineArgumentProvider {
224+
listOf("--patch-module", "okio=${sourceSets["main"].output.asPath}")
225+
})
231226
options.release = 9
232227
}
233228

0 commit comments

Comments
 (0)