Skip to content

Commit 7a1f954

Browse files
authored
Merge branch 'main' into tobixlea/headers
2 parents 8288764 + ff25990 commit 7a1f954

13 files changed

Lines changed: 216 additions & 188 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ jobs:
2020
- uses: actions/checkout@v3
2121
- name: Configure Git User # may be removed after https://github.com/actions/checkout/issues/13 is resolved
2222
run: |
23-
git config user.email "${{ github.actor }}@users.noreply.github.com"
24-
git config user.name "${{ github.actor }}"
23+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
24+
git config user.name "$GITHUB_ACTOR"
25+
env:
26+
GITHUB_ACTOR: ${{ github.actor }}
2527
- name: Set up Maven
2628
uses: actions/setup-java@v3
2729
with:
@@ -33,8 +35,18 @@ jobs:
3335
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }} # Value of the GPG private key to import
3436
gpg-passphrase: GPG_PASSPHRASE # env variable for GPG private key passphrase
3537
- name: Release and publish package
36-
run: mvn release:prepare release:perform -B -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }}
38+
run: mvn release:prepare release:perform -B -DreleaseVersion="$RELEASE_VERSION" -DdevelopmentVersion="$DEVELOPMENT_VERSION"
3739
env:
3840
MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
3941
MAVEN_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
4042
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
43+
RELEASE_VERSION: ${{ github.event.inputs.releaseVersion }}
44+
DEVELOPMENT_VERSION: ${{ github.event.inputs.developmentVersion }}
45+
- name: Upload to Central Publisher Portal
46+
run: |
47+
AUTH=$(echo -n "$CENTRAL_USERNAME:$CENTRAL_PASSWORD" | base64)
48+
curl --fail -X POST "https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/com.amazonaws.serverless" \
49+
-H "Authorization: Bearer $AUTH"
50+
env:
51+
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
52+
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}

aws-serverless-java-container-core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<name>AWS Serverless Java container support - Core</name>
77
<description>Allows Java applications written for a servlet container to run in AWS Lambda</description>
88
<url>https://aws.amazon.com/lambda</url>
9-
<version>3.0.1-SNAPSHOT</version>
9+
<version>3.0.2-SNAPSHOT</version>
1010

1111
<parent>
1212
<groupId>com.amazonaws.serverless</groupId>
1313
<artifactId>aws-serverless-java-container</artifactId>
14-
<version>3.0.1-SNAPSHOT</version>
14+
<version>3.0.2-SNAPSHOT</version>
1515
<relativePath>..</relativePath>
1616
</parent>
1717

aws-serverless-java-container-jersey/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<name>AWS Serverless Java container support - Jersey implementation</name>
77
<description>Allows Java applications written for Jersey to run in AWS Lambda</description>
88
<url>https://aws.amazon.com/lambda</url>
9-
<version>3.0.1-SNAPSHOT</version>
9+
<version>3.0.2-SNAPSHOT</version>
1010

1111
<parent>
1212
<groupId>com.amazonaws.serverless</groupId>
1313
<artifactId>aws-serverless-java-container</artifactId>
14-
<version>3.0.1-SNAPSHOT</version>
14+
<version>3.0.2-SNAPSHOT</version>
1515
<relativePath>..</relativePath>
1616
</parent>
1717

aws-serverless-java-container-spring/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<name>AWS Serverless Java container support - Spring implementation</name>
77
<description>Allows Java applications written for the Spring framework to run in AWS Lambda</description>
88
<url>https://aws.amazon.com/lambda</url>
9-
<version>3.0.1-SNAPSHOT</version>
9+
<version>3.0.2-SNAPSHOT</version>
1010

1111
<parent>
1212
<groupId>com.amazonaws.serverless</groupId>
1313
<artifactId>aws-serverless-java-container</artifactId>
14-
<version>3.0.1-SNAPSHOT</version>
14+
<version>3.0.2-SNAPSHOT</version>
1515
<relativePath>..</relativePath>
1616
</parent>
1717

aws-serverless-java-container-springboot4/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>aws-serverless-java-container</artifactId>
55
<groupId>com.amazonaws.serverless</groupId>
6-
<version>3.0.1-SNAPSHOT</version>
6+
<version>3.0.2-SNAPSHOT</version>
77
<relativePath>..</relativePath>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>

aws-serverless-java-container-springboot4/src/main/java/com/amazonaws/serverless/proxy/spring/AwsSpringWebCustomRuntimeEventLoop.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ private void eventLoop(ServletWebServerApplicationContext context) {
130130

131131
HttpServletRequest httpServletRequest = AwsSpringHttpProcessingUtils.generateHttpServletRequest(
132132
incomingEvent.getBody(), null, mvc.getServletContext(), mapper);
133-
httpServletRequest.startAsync();
134133
AwsProxyResponse awsResponse = AwsSpringHttpProcessingUtils.processRequest(
135134
httpServletRequest, mvc, responseWriter);
136135
if (logger.isDebugEnabled()) {

aws-serverless-java-container-springboot4/src/main/java/com/amazonaws/serverless/proxy/spring/SpringDelegatingLambdaContainerHandler.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public void handleRequest(InputStream input, OutputStream output, Context lambda
7878
ServerlessMVC mvc = initHandler.getMvc();
7979
HttpServletRequest httpServletRequest = AwsSpringHttpProcessingUtils
8080
.generateHttpServletRequest(input, lambdaContext, mvc.getServletContext(), this.mapper);
81-
httpServletRequest.startAsync();
8281
AwsProxyResponse awsProxyResponse = AwsSpringHttpProcessingUtils.processRequest(httpServletRequest, mvc, responseWriter);
8382
this.mapper.writeValue(output, awsProxyResponse);
8483
}

0 commit comments

Comments
 (0)