Skip to content

Commit 080ca89

Browse files
authored
Merge pull request #366 from aws/develop
chore: merge develop to master
2 parents fffe6e4 + 3cfd5e1 commit 080ca89

File tree

18 files changed

+92
-76
lines changed

18 files changed

+92
-76
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Bug report
3+
about: Create an issue to report a bug for AWS Lambda Builders
4+
title: "Bug: TITLE"
5+
labels: ['type/bug', 'stage/needs-triage']
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Make sure we don't have an existing Issue that reports the bug you are seeing (both open and closed).
11+
If you do find an existing Issue, re-open or add a comment to that Issue instead of creating a new one. -->
12+
13+
### Description:
14+
<!-- Briefly describe the bug you are facing.-->
15+
16+
17+
18+
### Steps to reproduce:
19+
<!-- Provide detailed steps to replicate the bug, including steps from third party tools (CDK, etc.) -->
20+
21+
22+
23+
### Observed result:
24+
<!-- Please provide command output with `--debug` flag set.-->
25+
26+
27+
28+
### Expected result:
29+
<!-- Describe what you expected.-->
30+
31+
32+
33+
### Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
34+
35+
1. OS:
36+
2. If using SAM CLI, `sam --version`:
37+
3. AWS region:
38+
39+
`Add --debug flag to any SAM CLI commands you are running`

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea/feature/enhancement for AWS Lambda Builders
4+
title: "Feature request: TITLE"
5+
labels: ['type/feature', 'stage/needs-triage']
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Make sure we don't have an existing Issue for that feature request (open or closed). -->
11+
12+
### Describe your idea/feature/enhancement
13+
14+
Provide a clear description.
15+
16+
Ex: I wish the AWS Lambda Builders would [...]
17+
18+
### Proposal
19+
20+
Add details on how to add this to the product.
21+
22+
### Additional Details

.github/ISSUE_TEMPLATE/other.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: Other
3+
about: Choose if your issue doesn't apply to the other templates
4+
title: ''
5+
labels: ['stage/needs-triage']
6+
assignees: ''
7+
8+
---

.github/workflows/pr-labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
issue_number: context.issue.number,
3535
owner: context.repo.owner,
3636
repo: context.repo.repo,
37-
labels: ['pr/external']
37+
labels: ['pr/external', 'stage/needs-triage']
3838
})
3939
}

aws_lambda_builders/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
22
AWS Lambda Builder Library
33
"""
4-
__version__ = "1.16.0"
4+
__version__ = "1.17.0"
55
RPC_PROTOCOL_VERSION = "0.3"

aws_lambda_builders/workflows/java/utils.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
from aws_lambda_builders.utils import which, copytree
1010

1111

12-
EXPERIMENTAL_MAVEN_SCOPE_AND_LAYER_FLAG = "experimentalMavenScopeAndLayer"
13-
14-
1512
class OSUtils(object):
1613
"""
1714
Convenience wrapper around common system functions
@@ -63,10 +60,3 @@ def jar_file_filter(file_name):
6360
Name of the file that will be checked against if it ends with .jar or not
6461
"""
6562
return bool(file_name) and isinstance(file_name, str) and file_name.endswith(".jar")
66-
67-
68-
def is_experimental_maven_scope_and_layers_active(experimental_flags):
69-
"""
70-
A function which will determine if experimental maven scope and layer changes are active
71-
"""
72-
return bool(experimental_flags) and EXPERIMENTAL_MAVEN_SCOPE_AND_LAYER_FLAG in experimental_flags

aws_lambda_builders/workflows/java_gradle/workflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from aws_lambda_builders.actions import CleanUpAction
77
from aws_lambda_builders.workflow import BaseWorkflow, Capability
88
from aws_lambda_builders.workflows.java.actions import JavaCopyDependenciesAction, JavaMoveDependenciesAction
9-
from aws_lambda_builders.workflows.java.utils import OSUtils, is_experimental_maven_scope_and_layers_active
9+
from aws_lambda_builders.workflows.java.utils import OSUtils
1010

1111
from .actions import JavaGradleBuildAction, JavaGradleCopyArtifactsAction, JavaGradleCopyLayerArtifactsAction
1212
from .gradle import SubprocessGradle
@@ -36,7 +36,7 @@ def __init__(self, source_dir, artifacts_dir, scratch_dir, manifest_path, **kwar
3636
copy_artifacts_action = JavaGradleCopyArtifactsAction(
3737
source_dir, artifacts_dir, self.build_output_dir, self.os_utils
3838
)
39-
if self.is_building_layer and is_experimental_maven_scope_and_layers_active(self.experimental_flags):
39+
if self.is_building_layer:
4040
copy_artifacts_action = JavaGradleCopyLayerArtifactsAction(
4141
source_dir, artifacts_dir, self.build_output_dir, self.os_utils
4242
)

aws_lambda_builders/workflows/java_maven/maven.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ def __init__(self, **kwargs):
1616

1717

1818
class SubprocessMaven(object):
19-
def __init__(self, maven_binary, os_utils=None, is_experimental_maven_scope_enabled=False):
19+
def __init__(self, maven_binary, os_utils=None):
2020
if maven_binary is None:
2121
raise ValueError("Must provide Maven BinaryPath")
2222
self.maven_binary = maven_binary
2323
if os_utils is None:
2424
raise ValueError("Must provide OSUtils")
2525
self.os_utils = os_utils
26-
self.is_experimental_maven_scope_enabled = is_experimental_maven_scope_enabled
2726

2827
def build(self, scratch_dir):
2928
args = ["clean", "install"]
@@ -35,7 +34,7 @@ def build(self, scratch_dir):
3534
raise MavenExecutionError(message=stdout.decode("utf8").strip())
3635

3736
def copy_dependency(self, scratch_dir):
38-
include_scope = "runtime" if self.is_experimental_maven_scope_enabled else "compile"
37+
include_scope = "runtime"
3938
LOG.debug("Running copy_dependency with scope: %s", include_scope)
4039
args = ["dependency:copy-dependencies", f"-DincludeScope={include_scope}", "-Dmdep.prependGroupId=true"]
4140
ret_code, stdout, _ = self._run(args, scratch_dir)

0 commit comments

Comments
 (0)