You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the distributionUrl in the gradle-wrapper.properties of a project is set to https\://services.gradle.org/distributions/gradle-8.10-bin.zip or higher versions, an IOException occurs during the build process.
Steps to reproduce:
1.) Create a new Project in IntelliJ IDEA 2024.2.3 (Ultimate Edition)
2.) Edit the distributionUrl in the gradle-wrapper.properties from: https\://services.gradle.org/distributions/gradle-8.8-bin.zip
to https\://services.gradle.org/distributions/gradle-8.10-bin.zip
3.) Add implementation("com.amazonaws:aws-lambda-java-core:1.2.3") to the dependencies
4.) Use the following class class/code and run the local webhook
public class LambraEntryPoint implements RequestStreamHandler {
/**
* Handles a Lambda Function request
*
* @param input The Lambda Function input stream
* @param output The Lambda function output stream
* @param context The Lambda execution environment context object.
*/
@Override
public void handleRequest(InputStream input, OutputStream output, Context context) throws IOException {
}
}
Observed result:
Result was tested on gradle-8.8-bin.zip and gradle-8.12.1-bin.zip
2025-02-05 11:32:34,658 | Running workflow 'JavaGradleWorkflow'
2025-02-05 11:32:34,658 | Running JavaGradleWorkflow:GradleBuild
2025-02-05 11:32:35,619 | JavaGradleWorkflow:GradleBuild failed
Traceback (most recent call last):
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\Lib\site-packages\aws_lambda_builders\workflows\java_gradle\actions.py", line 50, in _build_project
self.subprocess_gradle.build(
File "C:\Program Files\Amazon\AWSSAMCLI\runtime\Lib\site-packages\aws_lambda_builders\workflows\java_gradle\gradle.py", line 45, in build
raise GradleExecutionError(message=stderr.decode("utf8").strip())
aws_lambda_builders.workflows.java_gradle.gradle.GradleExecutionError: Gradle Failed: FAILURE: Build failed with an exception.
* What went wrong:
Gradle could not start your build.
> Could not create service of type BuildLifecycleController using ServicesProvider.createBuildLifecycleController().
> Could not create service of type BuildModelController using VintageBuildControllerProvider.createBuildModelController().
> Could not create service of type OutputFilesRepository using ExecutionBuildServices.createOutputFilesRepository().
> java.io.IOException: Cannot delete file: C:\Users\USER~1\AppData\Local\Temp\tmp83ub653u\gradle-cache\buildOutputCleanup\buildOutputCleanup.lock
Description:
When the distributionUrl in the gradle-wrapper.properties of a project is set to
https\://services.gradle.org/distributions/gradle-8.10-bin.zip
or higher versions, an IOException occurs during the build process.Steps to reproduce:
1.) Create a new Project in IntelliJ IDEA 2024.2.3 (Ultimate Edition)
2.) Edit the distributionUrl in the gradle-wrapper.properties from:
https\://services.gradle.org/distributions/gradle-8.8-bin.zip
to
https\://services.gradle.org/distributions/gradle-8.10-bin.zip
3.) Add
implementation("com.amazonaws:aws-lambda-java-core:1.2.3")
to the dependencies4.) Use the following class class/code and run the local webhook
Observed result:
Result was tested on gradle-8.8-bin.zip and gradle-8.12.1-bin.zip
Expected result:
Build Succeeded
Additional environment details:
sam --version
: SAM CLI, version 1.132.0The text was updated successfully, but these errors were encountered: