Skip to content

Commit be95292

Browse files
committed
Simplify task inputs
1 parent b251c4d commit be95292

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

okio/build.gradle.kts

+2-1
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,11 @@ val java9 by sourceSets.creating {
198198
tasks {
199199
val compileJava9Java by getting(JavaCompile::class) {
200200
val compileKotlinJvm = named<KotlinCompile>("compileKotlinJvm")
201+
.flatMap { it.destinationDirectory }.map { it.asFile.absolutePath }
201202
dependsOn(compileKotlinJvm)
202203
options.compilerArgumentProviders.plusAssign(
203204
CommandLineArgumentProvider {
204-
listOf("--patch-module", "okio=${compileKotlinJvm.get().destinationDirectory.get().asFile.absolutePath}")
205+
listOf("--patch-module", "okio=${compileKotlinJvm.get()}")
205206
},
206207
)
207208
options.release = 9

0 commit comments

Comments
 (0)