Skip to content

Commit 72792b8

Browse files
committed
chore: option to pass run args for kotlin native
1 parent a2e529b commit 72792b8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

backend/native/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,11 @@ tasks {
163163

164164
jibDockerBuild { dependsOn(prepareJib) }
165165
// publish { finalizedBy(jibDockerBuild) }
166+
167+
// Pass arguments to run task : runReleaseExecutableMacosArm64 -PrunArgs="blah blah"
168+
withType<Exec>().configureEach {
169+
val arguments = providers.gradleProperty("runArgs")
170+
argumentProviders.add(
171+
CommandLineArgumentProvider { arguments.orNull?.split(" ") ?: emptyList() })
172+
}
166173
}

0 commit comments

Comments
 (0)