Skip to content

Commit 351ac20

Browse files
Merge branch 'develop'
2 parents 6db0dce + daafd33 commit 351ac20

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

aws_lambda_builders/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
# Changing version will trigger a new release!
66
# Please make the version change as the last step of your development.
77

8-
__version__ = "1.56.0"
8+
__version__ = "1.57.0"
99
RPC_PROTOCOL_VERSION = "0.3"

aws_lambda_builders/workflows/java_gradle/gradle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ def __init__(self, gradle_binary, os_utils=None):
3030
self.os_utils = os_utils
3131

3232
def build(self, source_dir, build_file, cache_dir=None, init_script_path=None, properties=None):
33+
## Note: build_file parameter is not supported anymore, but kept for backward compatibility
3334
if not self.os_utils.exists(build_file):
3435
raise BuildFileNotFoundError(build_file)
35-
36-
args = ["build", "--build-file", build_file]
36+
args = ["build"]
3737
if cache_dir is not None:
3838
args.extend(["--project-cache-dir", cache_dir])
3939
if properties is not None:

aws_lambda_builders/workflows/java_gradle/resources/lambda-build-init.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def assertExpectedBuildDir(p) {
5454
}
5555

5656
def createArtifactDir(project) {
57-
def distsDir = project.buildDir.toPath().resolve(project.distsDirName).resolve('lambda-build')
57+
// In Gradle 9, distsDirName was removed. Use 'distributions' as the default directory name
58+
def distsDir = project.buildDir.toPath().resolve('distributions').resolve('lambda-build')
5859
return makeDirs(distsDir)
5960
}
6061

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
coverage==7.9.2; python_version>="3.9"
22
coverage==7.6.1; python_version<"3.9"
33
flake8==3.8.4
4-
pytest-cov==6.1.1; python_version>="3.9"
4+
pytest-cov==6.2.1; python_version>="3.9"
55
pytest-cov==5.0.0; python_version<"3.9"
66

77
# Test requirements
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

tests/unit/workflows/java_gradle/test_gradle.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test_build_no_init_script(self):
6060
gradle = SubprocessGradle(gradle_binary=self.gradle_binary, os_utils=self.os_utils)
6161
gradle.build(self.source_dir, self.manifest_path)
6262
self.os_utils.popen.assert_called_with(
63-
[self.gradle_path, "build", "--build-file", self.manifest_path],
63+
[self.gradle_path, "build"],
6464
cwd=self.source_dir,
6565
stderr=subprocess.PIPE,
6666
stdout=subprocess.PIPE,
@@ -70,7 +70,7 @@ def test_gradlew_path_is_dummy_uses_gradle_binary(self):
7070
gradle = SubprocessGradle(gradle_binary=self.gradle_binary, os_utils=self.os_utils)
7171
gradle.build(self.source_dir, self.manifest_path)
7272
self.os_utils.popen.assert_called_with(
73-
[self.gradle_path, "build", "--build-file", self.manifest_path],
73+
[self.gradle_path, "build"],
7474
cwd=self.source_dir,
7575
stderr=subprocess.PIPE,
7676
stdout=subprocess.PIPE,
@@ -80,7 +80,7 @@ def test_build_with_init_script(self):
8080
gradle = SubprocessGradle(gradle_binary=self.gradle_binary, os_utils=self.os_utils)
8181
gradle.build(self.source_dir, self.manifest_path, init_script_path=self.init_script)
8282
self.os_utils.popen.assert_called_with(
83-
[self.gradle_path, "build", "--build-file", self.manifest_path, "--init-script", self.init_script],
83+
[self.gradle_path, "build", "--init-script", self.init_script],
8484
cwd=self.source_dir,
8585
stderr=subprocess.PIPE,
8686
stdout=subprocess.PIPE,
@@ -101,8 +101,6 @@ def test_includes_build_properties_in_command(self):
101101
[
102102
self.gradle_path,
103103
"build",
104-
"--build-file",
105-
self.manifest_path,
106104
"-Dfoo=bar",
107105
"--init-script",
108106
self.init_script,

0 commit comments

Comments
 (0)