Skip to content

Commit 3b7dd96

Browse files
committed
fix: snapshot upload (#60)
* fix: snapshot upload
1 parent 379fddd commit 3b7dd96

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

.github/workflows/runtime-interface-client_merge_to_main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
branches: [ main ]
1616
paths:
1717
- 'aws-lambda-java-runtime-interface-client/**'
18+
workflow_dispatch:
1819

1920
jobs:
2021

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ dependency-reduced-pom.xml
2424
.project
2525

2626
# OSX
27-
.DS_Store
27+
.DS_Store
28+
29+
# snapshot process
30+
aws-lambda-java-runtime-interface-client/pom.xml.versionsBackup

aws-lambda-java-runtime-interface-client/pom.xml

+12
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3636
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
3737
<jacoco.maven.plugin.version>0.8.8</jacoco.maven.plugin.version>
38+
<maven-install-plugin.version>2.4</maven-install-plugin.version>
39+
<maven-deploy-plugin.version>3.1.1</maven-deploy-plugin.version>
3840
<junit-jupiter.version>5.9.2</junit-jupiter.version>
3941
<!--
4042
The test/integration/codebuild/buildspec.*.yml files will set -DmultiArch=false
@@ -95,6 +97,16 @@
9597
</extension>
9698
</extensions>
9799
<plugins>
100+
<plugin>
101+
<artifactId>maven-install-plugin</artifactId>
102+
<groupId>org.apache.maven.plugins</groupId>
103+
<version>${maven-install-plugin.version}</version>
104+
</plugin>
105+
<plugin>
106+
<artifactId>maven-deploy-plugin</artifactId>
107+
<groupId>org.apache.maven.plugins</groupId>
108+
<version>${maven-deploy-plugin.version}</version>
109+
</plugin>
98110
<plugin>
99111
<artifactId>maven-surefire-plugin</artifactId>
100112
<version>3.0.0-M9</version>

aws-lambda-java-runtime-interface-client/ric-dev-environment/publish_snapshot.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ else
1818
echo "Already -SNAPSHOT version"
1919
fi
2020

21+
# get the updated project version
22+
snapshotProjectVersion=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
23+
echo "Updated project version is ${snapshotProjectVersion}"
24+
2125
CLASSIFIERS_ARRAY=("linux-x86_64" "linux_musl-x86_64" "linux-aarch_64" "linux_musl-aarch_64")
2226

2327
for str in "${CLASSIFIERS_ARRAY[@]}"; do
@@ -36,7 +40,7 @@ mvn -B -X -P ci-repo \
3640
-DgroupId=com.amazonaws \
3741
-DartifactId=aws-lambda-java-runtime-interface-client \
3842
-Dpackaging=jar \
39-
-Dversion=$projectVersion \
43+
-Dversion=$snapshotProjectVersion \
4044
-Dfile=./target/aws-lambda-java-runtime-interface-client-$projectVersion.jar \
4145
-Dfiles=$FILES \
4246
-Dclassifiers=$CLASSIFIERS \

0 commit comments

Comments
 (0)