Fix GCP cloud function template for Kotlin. Fixes
@@ -622,10 +622,11 @@ task('runFunction', type: JavaExec, dependsOn: classes) {
classpath(configurations.invoker)
args(
'--target', 'io.micronaut.gcp.function.http.HttpFunction',
- '--classpath', (configurations.runtimeClasspath + sourceSets.main.output).asPath,
'--port', 8080
-
)
+ doFirst {
+ args('--classpath', files(configurations.runtimeClasspath, sourceSets.main.output).asPath)
+ }
}
}
