-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
area/buildsam build commandsam build commandarea/javastage/needs-triageAutomatically applied to new issues and PRs, indicating they haven't been looked at.Automatically applied to new issues and PRs, indicating they haven't been looked at.
Description
Description:
I upgraded my project to use Gradle 9.0.0, and now I get an error that the Gradle build fails due to Unknown command-line option '--build-file'. Gradle 9 removes the --build-file argument that was deprecated in Gradle 8.
Steps to reproduce:
- Run
./gradlew wrapper --gradle-version 9.0.0to upgrade the project's Gradle version. - Run
./gradle clean - Run
sam build --debug
Observed result:
2025-08-04 23:55:26,915 | No config file found in this directory.
2025-08-04 23:55:26,915 | OSError occurred while reading TOML file: [Errno 2] No such file or directory: '/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/samconfig.toml'
2025-08-04 23:55:26,915 | Config file location: /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/samconfig.toml
2025-08-04 23:55:26,915 | Config file '/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/samconfig.toml' does not exist
2025-08-04 23:55:26,916 | Using SAM Template at /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/template.yaml
2025-08-04 23:55:26,931 | OSError occurred while reading TOML file: [Errno 2] No such file or directory: '/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/samconfig.toml'
2025-08-04 23:55:26,931 | Using config file: samconfig.toml, config environment: default
2025-08-04 23:55:26,931 | Expand command line arguments to:
2025-08-04 23:55:26,931 | --template_file=/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/template.yaml --mount_with=READ --build_dir=.aws-sam/build --cache_dir=.aws-sam/cache
2025-08-04 23:55:26,964 | 'build' command is called
2025-08-04 23:55:26,965 | No Parameters detected in the template
2025-08-04 23:55:26,975 | There is no customer defined id or cdk path defined for resource HelloWorld, so we will use the resource logical id as the resource id
2025-08-04 23:55:26,975 | There is no customer defined id or cdk path defined for resource ServerlessRestApi, so we will use the resource logical id as the resource id
2025-08-04 23:55:26,976 | 0 stacks found in the template
2025-08-04 23:55:26,976 | No Parameters detected in the template
2025-08-04 23:55:26,983 | There is no customer defined id or cdk path defined for resource HelloWorld, so we will use the resource logical id as the resource id
2025-08-04 23:55:26,983 | There is no customer defined id or cdk path defined for resource ServerlessRestApi, so we will use the resource logical id as the resource id
2025-08-04 23:55:26,983 | 2 resources found in the stack
2025-08-04 23:55:26,983 | Found Serverless function with name='HelloWorld' and CodeUri='hello-world'
2025-08-04 23:55:26,983 | --base-dir is not presented, adjusting uri hello-world relative to /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/template.yaml
2025-08-04 23:55:26,985 | 2 resources found in the stack
2025-08-04 23:55:26,985 | Found Serverless function with name='HelloWorld' and CodeUri='hello-world'
2025-08-04 23:55:26,985 | Instantiating build definitions
2025-08-04 23:55:26,986 | Same function build definition found, adding function (Previous: BuildDefinition(java21, /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/hello-world, Zip, fcb99b0b20679cf24ddae59d677936831f972768d072f19259886ad60bd30655, 852a6ccb-ad1b-4dff-8d8f-8fb39793b71e, {}, {}, x86_64, []), Current: BuildDefinition(java21, /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/hello-world, Zip, , 7773f39d-4835-4ce4-aac0-53d7566e0ebf, {}, {}, x86_64, []), Function: Function({'function_id': 'HelloWorld', 'name': 'HelloWorld', 'functionname': 'HelloWorld', 'runtime': 'java21', 'memory': 256, 'timeout': 60, 'handler': 'org.churchofjesuschrist.demo.Handler::handleRequest', 'imageuri': None, 'packagetype': 'Zip', 'imageconfig': None, 'codeuri': '/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/hello-world', 'environment': None, 'rolearn': None, 'layers': [], 'events': {'Hello': {'Type': 'Api', 'Properties': {'Path': '/hello-world', 'Method': 'GET', 'RestApiId': 'ServerlessRestApi'}}}, 'metadata': {'SamResourceId': 'HelloWorld'}, 'inlinecode': None, 'codesign_config_arn': None, 'architectures': None, 'function_url_config': None, 'function_build_info': <FunctionBuildInfo.BuildableZip: ('BuildableZip', 'Regular ZIP function which can be build with SAM CLI')>, 'stack_path': '', 'runtime_management_config': None, 'logging_config': None}))
2025-08-04 23:55:26,987 | Building codeuri: /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/hello-world runtime: java21 architecture: x86_64 functions: HelloWorld
2025-08-04 23:55:26,987 | Building to following folder /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld
2025-08-04 23:55:26,987 | Looking for a supported build workflow in following directories: ['/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/hello-world', '/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi']
2025-08-04 23:55:26,988 | Loading workflow module 'aws_lambda_builders.workflows'
2025-08-04 23:55:26,990 | Registering workflow 'CustomMakeBuilder' with capability 'Capability(language='provided', dependency_manager=None, application_framework=None)'
2025-08-04 23:55:26,991 | Registering workflow 'DotnetCliPackageBuilder' with capability 'Capability(language='dotnet', dependency_manager='cli-package', application_framework=None)'
2025-08-04 23:55:26,992 | Registering workflow 'GoModulesBuilder' with capability 'Capability(language='go', dependency_manager='modules', application_framework=None)'
2025-08-04 23:55:26,994 | Registering workflow 'JavaGradleWorkflow' with capability 'Capability(language='java', dependency_manager='gradle', application_framework=None)'
2025-08-04 23:55:26,995 | Registering workflow 'JavaMavenWorkflow' with capability 'Capability(language='java', dependency_manager='maven', application_framework=None)'
2025-08-04 23:55:26,997 | Registering workflow 'NodejsNpmBuilder' with capability 'Capability(language='nodejs', dependency_manager='npm', application_framework=None)'
2025-08-04 23:55:26,998 | Registering workflow 'NodejsNpmEsbuildBuilder' with capability 'Capability(language='nodejs', dependency_manager='npm-esbuild', application_framework=None)'
2025-08-04 23:55:27,000 | Registering workflow 'PythonPipBuilder' with capability 'Capability(language='python', dependency_manager='pip', application_framework=None)'
2025-08-04 23:55:27,001 | Registering workflow 'RubyBundlerBuilder' with capability 'Capability(language='ruby', dependency_manager='bundler', application_framework=None)'
2025-08-04 23:55:27,002 | Registering workflow 'RustCargoLambdaBuilder' with capability 'Capability(language='rust', dependency_manager='cargo', application_framework=None)'
2025-08-04 23:55:27,002 | Found workflow 'JavaGradleWorkflow' to support capabilities 'Capability(language='java', dependency_manager='gradle', application_framework=None)'
2025-08-04 23:55:27,451 | Running workflow 'JavaGradleWorkflow'
2025-08-04 23:55:27,451 | Running JavaGradleWorkflow:GradleBuild
2025-08-04 23:55:28,082 | JavaGradleWorkflow:GradleBuild failed
Traceback (most recent call last):
File "/opt/homebrew/Cellar/aws-sam-cli/1.142.1/libexec/lib/python3.13/site-packages/aws_lambda_builders/workflows/java_gradle/actions.py", line 50, in _build_project
self.subprocess_gradle.build(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self.source_dir,
^^^^^^^^^^^^^^^^
...<3 lines>...
{self.SCRATCH_DIR_PROPERTY: os.path.abspath(self.scratch_dir)},
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/homebrew/Cellar/aws-sam-cli/1.142.1/libexec/lib/python3.13/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:
Problem configuring task :hello-world:build from command line.
> Unknown command-line option '--build-file'.
* Try:
> Run gradlew help --task :hello-world:build to get task usage details.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to generate a Build Scan (Powered by Develocity).
> Get more help at https://help.gradle.org.
BUILD FAILED in 467ms
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/aws-sam-cli/1.142.1/libexec/lib/python3.13/site-packages/aws_lambda_builders/workflow.py", line 374, in run
action.execute()
~~~~~~~~~~~~~~^^
File "/opt/homebrew/Cellar/aws-sam-cli/1.142.1/libexec/lib/python3.13/site-packages/aws_lambda_builders/workflows/java_gradle/actions.py", line 32, in execute
self._build_project(init_script_file)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/aws-sam-cli/1.142.1/libexec/lib/python3.13/site-packages/aws_lambda_builders/workflows/java_gradle/actions.py", line 58, in _build_project
raise ActionFailedError(str(ex))
aws_lambda_builders.actions.ActionFailedError: Gradle Failed: FAILURE: Build failed with an exception.
* What went wrong:
Problem configuring task :hello-world:build from command line.
> Unknown command-line option '--build-file'.
* Try:
> Run gradlew help --task :hello-world:build to get task usage details.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to generate a Build Scan (Powered by Develocity).
> Get more help at https://help.gradle.org.
BUILD FAILED in 467ms
Build Failed
2025-08-04 23:55:28,088 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2025-08-04 23:55:28,275 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2025-08-04 23:55:28,276 | Unable to find Click Context for getting session_id.
2025-08-04 23:55:28,276 | Sending Telemetry: {'metrics': [{'commandRun': {'requestId': 'fb017be5-3092-4703-bbff-832f6e4e9a40', 'installationId': 'b6652ac2-569d-4148-b1aa-3b6bc322cd49', 'sessionId': '468b406c-a19c-4d11-81cc-0889f9d0f747', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.13.5', 'samcliVersion': '1.142.1', 'awsProfileProvided': False, 'debugFlagProvided': True, 'region': '', 'commandName': 'sam build', 'metricSpecificAttributes': {'projectType': 'CFN', 'gitOrigin': None, 'projectName': 'cfd7654f66ae60308a0477726ba2ff53892cb5f9084d3096531920fc7d90c667', 'initialCommit': None}, 'duration': 1156, 'exitReason': 'WorkflowFailedError', 'exitCode': 1}}]}
2025-08-04 23:55:28,276 | Sending Telemetry: {'metrics': [{'events': {'requestId': '3216953c-9faf-4e68-8433-7b2005f541db', 'installationId': 'b6652ac2-569d-4148-b1aa-3b6bc322cd49', 'sessionId': '468b406c-a19c-4d11-81cc-0889f9d0f747', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.13.5', 'samcliVersion': '1.142.1', 'commandName': 'sam build', 'metricSpecificAttributes': {'events': [{'event_name': 'SamConfigFileExtension', 'event_value': '.toml', 'thread_id': '5d19f7bdc2754e229fb0f0c5c87b7cef', 'time_stamp': '2025-08-04 23:55:26.915', 'exception_name': None}, {'event_name': 'SamConfigFileExtension', 'event_value': '.toml', 'thread_id': 'e4aa7e4b27154bf2a580ed41f4ce4d51', 'time_stamp': '2025-08-04 23:55:26.931', 'exception_name': None}, {'event_name': 'BuildFunctionRuntime', 'event_value': 'java21', 'thread_id': '6634ce38bd474db7b465048df3d0d5ba', 'time_stamp': '2025-08-04 23:55:26.985', 'exception_name': None}, {'event_name': 'BuildWorkflowUsed', 'event_value': 'java-gradle', 'thread_id': 'f35edc754f86436b9f23d901f39a7a5a', 'time_stamp': '2025-08-04 23:55:26.987', 'exception_name': None}]}}}]}
2025-08-04 23:55:28,463 | Telemetry response: 200
2025-08-04 23:55:28,464 | Telemetry response: 200
Error: JavaGradleWorkflow:GradleBuild - Gradle Failed: FAILURE: Build failed with an exception.
* What went wrong:
Problem configuring task :hello-world:build from command line.
> Unknown command-line option '--build-file'.
* Try:
> Run gradlew help --task :hello-world:build to get task usage details.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to generate a Build Scan (Powered by Develocity).
> Get more help at https://help.gradle.org.
BUILD FAILED in 467ms
Expected result:
2025-08-04 23:56:27,974 | No config file found in this directory.
2025-08-04 23:56:27,974 | OSError occurred while reading TOML file: [Errno 2] No such file or directory: '/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/samconfig.toml'
2025-08-04 23:56:27,974 | Config file location: /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/samconfig.toml
2025-08-04 23:56:27,974 | Config file '/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/samconfig.toml' does not exist
2025-08-04 23:56:27,975 | Using SAM Template at /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/template.yaml
2025-08-04 23:56:27,989 | OSError occurred while reading TOML file: [Errno 2] No such file or directory: '/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/samconfig.toml'
2025-08-04 23:56:27,990 | Using config file: samconfig.toml, config environment: default
2025-08-04 23:56:27,990 | Expand command line arguments to:
2025-08-04 23:56:27,990 | --template_file=/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/template.yaml --mount_with=READ --build_dir=.aws-sam/build --cache_dir=.aws-sam/cache
2025-08-04 23:56:28,022 | 'build' command is called
2025-08-04 23:56:28,023 | No Parameters detected in the template
2025-08-04 23:56:28,033 | There is no customer defined id or cdk path defined for resource HelloWorld, so we will use the resource logical id as the resource id
2025-08-04 23:56:28,033 | There is no customer defined id or cdk path defined for resource ServerlessRestApi, so we will use the resource logical id as the resource id
2025-08-04 23:56:28,034 | 0 stacks found in the template
2025-08-04 23:56:28,034 | No Parameters detected in the template
2025-08-04 23:56:28,041 | There is no customer defined id or cdk path defined for resource HelloWorld, so we will use the resource logical id as the resource id
2025-08-04 23:56:28,041 | There is no customer defined id or cdk path defined for resource ServerlessRestApi, so we will use the resource logical id as the resource id
2025-08-04 23:56:28,041 | 2 resources found in the stack
2025-08-04 23:56:28,041 | Found Serverless function with name='HelloWorld' and CodeUri='hello-world'
2025-08-04 23:56:28,041 | --base-dir is not presented, adjusting uri hello-world relative to /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/template.yaml
2025-08-04 23:56:28,043 | 2 resources found in the stack
2025-08-04 23:56:28,043 | Found Serverless function with name='HelloWorld' and CodeUri='hello-world'
2025-08-04 23:56:28,043 | Instantiating build definitions
2025-08-04 23:56:28,044 | Same function build definition found, adding function (Previous: BuildDefinition(java21, /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/hello-world, Zip, fcb99b0b20679cf24ddae59d677936831f972768d072f19259886ad60bd30655, 852a6ccb-ad1b-4dff-8d8f-8fb39793b71e, {}, {}, x86_64, []), Current: BuildDefinition(java21, /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/hello-world, Zip, , 63683178-866e-4931-af71-35fd15bff8d5, {}, {}, x86_64, []), Function: Function({'function_id': 'HelloWorld', 'name': 'HelloWorld', 'functionname': 'HelloWorld', 'runtime': 'java21', 'memory': 256, 'timeout': 60, 'handler': 'org.churchofjesuschrist.demo.Handler::handleRequest', 'imageuri': None, 'packagetype': 'Zip', 'imageconfig': None, 'codeuri': '/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/hello-world', 'environment': None, 'rolearn': None, 'layers': [], 'events': {'Hello': {'Type': 'Api', 'Properties': {'Path': '/hello-world', 'Method': 'GET', 'RestApiId': 'ServerlessRestApi'}}}, 'metadata': {'SamResourceId': 'HelloWorld'}, 'inlinecode': None, 'codesign_config_arn': None, 'architectures': None, 'function_url_config': None, 'function_build_info': <FunctionBuildInfo.BuildableZip: ('BuildableZip', 'Regular ZIP function which can be build with SAM CLI')>, 'stack_path': '', 'runtime_management_config': None, 'logging_config': None}))
2025-08-04 23:56:28,045 | Building codeuri: /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/hello-world runtime: java21 architecture: x86_64 functions: HelloWorld
2025-08-04 23:56:28,045 | Building to following folder /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld
2025-08-04 23:56:28,045 | Looking for a supported build workflow in following directories: ['/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/hello-world', '/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi']
2025-08-04 23:56:28,046 | Loading workflow module 'aws_lambda_builders.workflows'
2025-08-04 23:56:28,048 | Registering workflow 'CustomMakeBuilder' with capability 'Capability(language='provided', dependency_manager=None, application_framework=None)'
2025-08-04 23:56:28,049 | Registering workflow 'DotnetCliPackageBuilder' with capability 'Capability(language='dotnet', dependency_manager='cli-package', application_framework=None)'
2025-08-04 23:56:28,050 | Registering workflow 'GoModulesBuilder' with capability 'Capability(language='go', dependency_manager='modules', application_framework=None)'
2025-08-04 23:56:28,051 | Registering workflow 'JavaGradleWorkflow' with capability 'Capability(language='java', dependency_manager='gradle', application_framework=None)'
2025-08-04 23:56:28,052 | Registering workflow 'JavaMavenWorkflow' with capability 'Capability(language='java', dependency_manager='maven', application_framework=None)'
2025-08-04 23:56:28,054 | Registering workflow 'NodejsNpmBuilder' with capability 'Capability(language='nodejs', dependency_manager='npm', application_framework=None)'
2025-08-04 23:56:28,055 | Registering workflow 'NodejsNpmEsbuildBuilder' with capability 'Capability(language='nodejs', dependency_manager='npm-esbuild', application_framework=None)'
2025-08-04 23:56:28,056 | Registering workflow 'PythonPipBuilder' with capability 'Capability(language='python', dependency_manager='pip', application_framework=None)'
2025-08-04 23:56:28,057 | Registering workflow 'RubyBundlerBuilder' with capability 'Capability(language='ruby', dependency_manager='bundler', application_framework=None)'
2025-08-04 23:56:28,058 | Registering workflow 'RustCargoLambdaBuilder' with capability 'Capability(language='rust', dependency_manager='cargo', application_framework=None)'
2025-08-04 23:56:28,059 | Found workflow 'JavaGradleWorkflow' to support capabilities 'Capability(language='java', dependency_manager='gradle', application_framework=None)'
2025-08-04 23:56:28,459 | Running workflow 'JavaGradleWorkflow'
2025-08-04 23:56:28,459 | Running JavaGradleWorkflow:GradleBuild
2025-08-04 23:56:30,271 | JavaGradleWorkflow:GradleBuild succeeded
2025-08-04 23:56:30,271 | Running JavaGradleWorkflow:JavaGradleCopyArtifacts
2025-08-04 23:56:30,271 | Creating target folders at /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/org
2025-08-04 23:56:30,272 | Copying directory metadata from source (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/org) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/org)
2025-08-04 23:56:30,272 | Creating target folders at /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/org/churchofjesuschrist
2025-08-04 23:56:30,272 | Copying directory metadata from source (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/org/churchofjesuschrist) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/org/churchofjesuschrist)
2025-08-04 23:56:30,272 | Creating target folders at /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/org/churchofjesuschrist/demo
2025-08-04 23:56:30,272 | Copying directory metadata from source (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/org/churchofjesuschrist/demo) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/org/churchofjesuschrist/demo)
2025-08-04 23:56:30,273 | Copying source file (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/org/churchofjesuschrist/demo/Handler.class) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/org/churchofjesuschrist/demo/Handler.class)
2025-08-04 23:56:30,274 | Creating target folders at /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/META-INF
2025-08-04 23:56:30,274 | Copying directory metadata from source (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/META-INF) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/META-INF)
2025-08-04 23:56:30,274 | Copying source file (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/META-INF/MANIFEST.MF) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/META-INF/MANIFEST.MF)
2025-08-04 23:56:30,275 | Creating target folders at /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/hello-world
2025-08-04 23:56:30,275 | Copying directory metadata from source (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/hello-world) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/hello-world)
2025-08-04 23:56:30,275 | Creating target folders at /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/hello-world/bin
2025-08-04 23:56:30,275 | Copying directory metadata from source (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/hello-world/bin) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/hello-world/bin)
2025-08-04 23:56:30,275 | Copying source file (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/hello-world/bin/hello-world) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/hello-world/bin/hello-world)
2025-08-04 23:56:30,276 | Copying source file (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/hello-world/bin/hello-world.bat) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/hello-world/bin/hello-world.bat)
2025-08-04 23:56:30,277 | Creating target folders at /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/hello-world/lib
2025-08-04 23:56:30,277 | Copying directory metadata from source (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/hello-world/lib) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/hello-world/lib)
2025-08-04 23:56:30,277 | Copying source file (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/hello-world/lib/joda-time-2.10.8.jar) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/hello-world/lib/joda-time-2.10.8.jar)
2025-08-04 23:56:30,278 | Copying source file (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/hello-world/lib/aws-lambda-java-core-1.2.3.jar) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/hello-world/lib/aws-lambda-java-core-1.2.3.jar)
2025-08-04 23:56:30,278 | Copying source file (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/hello-world/lib/hello-world.jar) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/hello-world/lib/hello-world.jar)
2025-08-04 23:56:30,279 | Copying source file (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/hello-world/lib/aws-lambda-java-events-3.11.4.jar) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/hello-world/lib/aws-lambda-java-events-3.11.4.jar)
2025-08-04 23:56:30,280 | Creating target folders at /Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/lib
2025-08-04 23:56:30,280 | Copying directory metadata from source (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/lib) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/lib)
2025-08-04 23:56:30,280 | Copying source file (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/lib/joda-time-2.10.8.jar) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/lib/joda-time-2.10.8.jar)
2025-08-04 23:56:30,281 | Copying source file (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/lib/aws-lambda-java-core-1.2.3.jar) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/lib/aws-lambda-java-core-1.2.3.jar)
2025-08-04 23:56:30,283 | Copying source file (/var/folders/h2/cvwqycg51ysg8jby4hd1j6hm0000gq/T/tmpjhg4gh_u/ba8c343974aed56845db874629ca6042558c6d81/build/distributions/lambda-build/lib/aws-lambda-java-events-3.11.4.jar) to destination (/Users/ThorntonRP/Code/JavaStack/java-stack-gradle-plugin/build/tmp/functionalTest/sam-multi/.aws-sam/build/HelloWorld/lib/aws-lambda-java-events-3.11.4.jar)
2025-08-04 23:56:30,284 | JavaGradleWorkflow:JavaGradleCopyArtifacts succeeded
2025-08-04 23:56:30,299 | There is no customer defined id or cdk path defined for resource HelloWorld, so we will use the resource logical id as the resource id
2025-08-04 23:56:30,299 | 2 resources found in the stack
2025-08-04 23:56:30,299 | Found Serverless function with name='HelloWorld' and CodeUri='hello-world'
Build Succeeded
Built Artifacts : .aws-sam/build
Built Template : .aws-sam/build/template.yaml
Commands you can use next
=========================
[*] Validate SAM template: sam validate
[*] Invoke Function: sam local invoke
[*] Test Function in the Cloud: sam sync --stack-name {{stack-name}} --watch
[*] Deploy: sam deploy --guided
2025-08-04 23:56:30,302 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2025-08-04 23:56:30,537 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2025-08-04 23:56:30,537 | Unable to find Click Context for getting session_id.
2025-08-04 23:56:30,538 | Sending Telemetry: {'metrics': [{'commandRun': {'requestId': '7c9cb427-64c0-4508-93c3-ec28ddc669d2', 'installationId': 'b6652ac2-569d-4148-b1aa-3b6bc322cd49', 'sessionId': '3114668e-0422-4ec3-b20c-791f7e43b44a', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.13.5', 'samcliVersion': '1.142.1', 'awsProfileProvided': False, 'debugFlagProvided': True, 'region': '', 'commandName': 'sam build', 'metricSpecificAttributes': {'projectType': 'CFN', 'gitOrigin': None, 'projectName': 'cfd7654f66ae60308a0477726ba2ff53892cb5f9084d3096531920fc7d90c667', 'initialCommit': None}, 'duration': 2312, 'exitReason': 'success', 'exitCode': 0}}]}
2025-08-04 23:56:30,538 | Sending Telemetry: {'metrics': [{'events': {'requestId': '34f24664-1af2-4739-a20b-805450432e5b', 'installationId': 'b6652ac2-569d-4148-b1aa-3b6bc322cd49', 'sessionId': '3114668e-0422-4ec3-b20c-791f7e43b44a', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.13.5', 'samcliVersion': '1.142.1', 'commandName': 'sam build', 'metricSpecificAttributes': {'events': [{'event_name': 'SamConfigFileExtension', 'event_value': '.toml', 'thread_id': '40c39a45fe2b4e66bbcc2b026fcbb49f', 'time_stamp': '2025-08-04 23:56:27.974', 'exception_name': None}, {'event_name': 'SamConfigFileExtension', 'event_value': '.toml', 'thread_id': 'cde72801e8ce4f9eabb9bd64a9072a6d', 'time_stamp': '2025-08-04 23:56:27.990', 'exception_name': None}, {'event_name': 'BuildFunctionRuntime', 'event_value': 'java21', 'thread_id': '51f1cffcab6349f98cd220eb19b8d0b0', 'time_stamp': '2025-08-04 23:56:28.043', 'exception_name': None}, {'event_name': 'BuildWorkflowUsed', 'event_value': 'java-gradle', 'thread_id': '44af58219f7945e0a1ab603462d33228', 'time_stamp': '2025-08-04 23:56:28.045', 'exception_name': None}]}}}]}
2025-08-04 23:56:30,790 | Telemetry response: 200
2025-08-04 23:56:30,791 | Telemetry response: 200
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
- OS: macOS
sam --version: SAM CLI, version 1.142.1- AWS region: US-EAST-1
{
"version": "1.142.1",
"system": {
"python": "3.13.5",
"os": "macOS-15.6-arm64-arm-64bit-Mach-O"
},
"additional_dependencies": {
"docker_engine": "24.0.7",
"aws_cdk": "2.1017.0 (build f227c9b)",
"terraform": "1.7.5"
},
"available_beta_feature_env_vars": [
"SAM_CLI_BETA_FEATURES",
"SAM_CLI_BETA_BUILD_PERFORMANCE",
"SAM_CLI_BETA_TERRAFORM_SUPPORT",
"SAM_CLI_BETA_PACKAGE_PERFORMANCE",
"SAM_CLI_BETA_RUST_CARGO_LAMBDA"
]
}
Metadata
Metadata
Assignees
Labels
area/buildsam build commandsam build commandarea/javastage/needs-triageAutomatically applied to new issues and PRs, indicating they haven't been looked at.Automatically applied to new issues and PRs, indicating they haven't been looked at.