Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution optimizations have been disabled for task ':runFunction' #752

Open
roideuniverse opened this issue Dec 27, 2022 · 0 comments
Open
Assignees

Comments

@roideuniverse
Copy link

roideuniverse commented Dec 27, 2022

Expected Behavior

I am not expecting any warnings.

Actual Behaviour

I am seeing a warning in the logs

> Task :runFunction
Execution optimizations have been disabled for task ':runFunction' to ensure correctness due to the following reasons:
  - Additional action of task ':runFunction' was implemented by the Java lambda 'io.micronaut.gradle.MicronautMinimalApplicationPlugin$$Lambda$1499/0x0000000100c83c40'. Reason: Using Java lambdas is not supported as task inputs. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implementation_unknown for more details about this problem.

when I run locally using
./gradlew runFunction

Steps To Reproduce

Follow the example at: https://guides.micronaut.io/latest/micronaut-google-cloud-http-function-gradle-kotlin.html

Environment Information

  • Operating System: Kubuntu 22.04
  • micronautVersion: 3.7.5
  • kotlinVersion: 1.7.0
  • Intellij IDEA 2022.3.1
  • Gradle version
------------------------------------------------------------
Gradle 7.5.1
------------------------------------------------------------

Build time:   2022-08-05 21:17:56 UTC
Revision:     d1daa0cbf1a0103000b71484e1dbfe096e095918

Kotlin:       1.6.21
Groovy:       3.0.10
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          11.0.9.1 (AdoptOpenJDK 11.0.9.1+1)
OS:           Linux 5.15.0-56-generic amd64

  • Plugins in build.gradle autogenerated by the command
mn create-app example.micronaut.micronautguide \
              --features=google-cloud-function \
              --build=gradle \
              --lang=kotlin \
              --jdk=11
plugins {
    id("org.jetbrains.kotlin.jvm") version "1.6.21"
    id("org.jetbrains.kotlin.kapt") version "1.6.21"
    id("org.jetbrains.kotlin.plugin.allopen") version "1.6.21"
    id("com.github.johnrengelman.shadow") version "7.1.2"
    id("io.micronaut.application") version "3.6.7"
}

Example Application

No response

Version

3.7.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants