Closed wiwa5606 closed 5 months ago
Hey @wiwa5606, can you try updating to the latest version of SAM CLI and seeing if the issue still exists?
Hey there, same behavior on 1.116.0
@wiwa5606, are you able to provide a minimal app with which you're seeing this issue? I've tried to reproduce starting from a hello-world Java gradle template, with various version of Java and gradle and haven't had any luck.
heya, we can close this issue. Our gradlew file did not have the executable bit set
Description:
SAM does not download/use the Gradle wrapper when building Gradle function
Steps to reproduce:
We are passing credentials through an embedded
gradle.properties
file in the build image that we are using. Our CodeURI was set toIAPIHealthCheckServiceFn
. The project file structure is as follows, attempting to replicate this:The structure for
Project A
here yield worse results, the build process fails to find theIAPIHealthCheckServiceFn
folder. Note CodeURI was updated to.
in this case:Observed result:
When we execute
sam build
, we see that SAM is using the Gradle embedded in the docker image, (6.2.2), instead of the version configured in gradle-wrapper.properties, (8.2).Expected result:
sam build
should usegradlew
and use gradle version 8.2Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 1.84.0