Skip to content

Commit

Permalink
Fix GCP cloud function template for Kotlin. Fixes #338 (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Jul 27, 2020
1 parent 19a41a0 commit a35ced1
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -621,11 +621,12 @@ task('runFunction', type: JavaExec, dependsOn: classes) {
main = 'com.google.cloud.functions.invoker.runner.Invoker'
classpath(configurations.invoker)
args(
'--target', 'io.micronaut.gcp.function.http.HttpFunction',
'--classpath', (configurations.runtimeClasspath + sourceSets.main.output).asPath,
'--port', 8080

'--target', 'io.micronaut.gcp.function.http.HttpFunction',
'--port', 8080
)
doFirst {
args('--classpath', files(configurations.runtimeClasspath, sourceSets.main.output).asPath)
}
}
}

Expand Down

0 comments on commit a35ced1

Please sign in to comment.