File tree 6 files changed +60
-6
lines changed
aws-lambda-java-runtime-interface-client
test/integration/codebuild-local
6 files changed +60
-6
lines changed Original file line number Diff line number Diff line change 23
23
- name : Set up JDK 1.8
24
24
uses : actions/setup-java@v3
25
25
with :
26
- java-version : 1.8
26
+ java-version : 8
27
+ distribution : corretto
27
28
28
29
- name : Runtime Interface Client smoke tests - Run 'pr' target
29
30
working-directory : ./aws-lambda-java-runtime-interface-client
37
38
- name : Set up JDK 1.8
38
39
uses : actions/setup-java@v3
39
40
with :
40
- java-version : 1.8
41
+ java-version : 8
42
+ distribution : corretto
41
43
42
44
- name : Set up QEMU
43
45
uses : docker/setup-qemu-action@v2
58
60
uses : actions/upload-artifact@v3
59
61
with :
60
62
name : the-jar
61
- path : ./aws-lambda-java-runtime-interface-client/target/aws-lambda-java-runtime-interface-client-2.1.0 .jar
63
+ path : ./aws-lambda-java-runtime-interface-client/target/aws-lambda-java-runtime-interface-client-* .jar
62
64
Original file line number Diff line number Diff line change 1
1
compile-flags.txt
2
+ ric-dev-environment /dev-maven-repo.mk
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ ARCHITECTURE := $(shell arch)
4
4
ARCHITECTURE_ALIAS := $($(shell echo "$(ARCHITECTURE ) _ALIAS") )
5
5
ARCHITECTURE_ALIAS := $(or $(ARCHITECTURE_ALIAS ) ,amd64) # on any other archs defaulting to amd64
6
6
7
+ # This optional module exports MAVEN_REPO_URL, MAVEN_REPO_USERNAME and MAVEN_REPO_PASSWORD environment variables
8
+ # making it possible to publish resulting artifacts to a development maven repository
9
+ -include ric-dev-environment/dev-maven-repo.mk
10
+
7
11
.PHONY : target
8
12
target :
9
13
$(info ${HELP_MESSAGE})
@@ -42,6 +46,10 @@ pr: test test-smoke
42
46
build :
43
47
mvn clean install
44
48
49
+ .PHONY : publish
50
+ publish :
51
+ mvn deploy --settings ric-dev-environment/settings.xml
52
+
45
53
define HELP_MESSAGE
46
54
47
55
Usage: $ make [TARGETS]
Original file line number Diff line number Diff line change 36
36
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
37
37
<maven .compiler.source>1.8</maven .compiler.source>
38
38
<maven .compiler.target>1.8</maven .compiler.target>
39
- <jacoco .maven.plugin.version>0.8.7 </jacoco .maven.plugin.version>
39
+ <jacoco .maven.plugin.version>0.8.8 </jacoco .maven.plugin.version>
40
40
<!--
41
41
The test/integration/codebuild/buildspec.*.yml files will set -DmultiArch=false
42
42
as a workaround for executing within Github Actions. At time of writing (2022-04-08) the
115
115
<plugin >
116
116
<groupId >org.apache.maven.plugins</groupId >
117
117
<artifactId >maven-compiler-plugin</artifactId >
118
- <version >3.8 .1</version >
118
+ <version >3.10 .1</version >
119
119
<configuration >
120
120
<encoding >UTF-8</encoding >
121
121
<source >${maven.compiler.source} </source >
125
125
<plugin >
126
126
<groupId >org.apache.maven.plugins</groupId >
127
127
<artifactId >maven-jar-plugin</artifactId >
128
+ <version >3.3.0</version >
128
129
<configuration >
129
130
<archive >
130
131
<manifest >
183
184
<profiles >
184
185
<profile >
185
186
<id >dev</id >
187
+ <activation >
188
+ <file >
189
+ <exists >ric-dev-environment/dev-maven-repo.mk</exists >
190
+ </file >
191
+ </activation >
192
+ <distributionManagement >
193
+ <snapshotRepository >
194
+ <id >dev-snapshot-repo</id >
195
+ <url >${env.MAVEN_REPO_URL} </url >
196
+ </snapshotRepository >
197
+ </distributionManagement >
186
198
<build >
187
199
<plugins >
188
200
<plugin >
Original file line number Diff line number Diff line change
1
+ <settings >
2
+ <profiles >
3
+ <profile >
4
+ <id >dev</id >
5
+ <activation >
6
+ <file >
7
+ <exists >dev-maven-repo.mk</exists >
8
+ </file >
9
+ </activation >
10
+ <repositories >
11
+ <repository >
12
+ <id >dev-snapshot-repo</id >
13
+ <url >${env.MAVEN_REPO_URL}</url >
14
+ </repository >
15
+ </repositories >
16
+ </profile >
17
+ </profiles >
18
+ <servers >
19
+ <server >
20
+ <id >dev-snapshot-repo</id >
21
+ <username >${env.MAVEN_REPO_USERNAME}</username >
22
+ <password >${env.MAVEN_REPO_PASSWORD}</password >
23
+ </server >
24
+ </servers >
25
+ </settings >
Original file line number Diff line number Diff line change @@ -3,12 +3,18 @@ FROM public.ecr.aws/amazoncorretto/amazoncorretto:8
3
3
ARG ARCHITECTURE="amd64"
4
4
5
5
ENV DOCKER_CLI_PLUGIN_DIR="/root/.docker/cli-plugins"
6
+ ENV PATH="$PATH:/tmp/apache-maven-3.8.6/bin"
6
7
7
8
RUN amazon-linux-extras enable docker && \
8
9
yum clean metadata && \
9
- yum install -y docker tar maven unzip file wget
10
+ yum install -y docker tar gzip unzip file wget
11
+
10
12
RUN mkdir -p "${DOCKER_CLI_PLUGIN_DIR}"
11
13
RUN wget \
12
14
"$(curl https://api.github.com/repos/docker/buildx/releases/latest | grep browser_download_url | grep "linux-${ARCHITECTURE}" | cut -d '"' -f 4)" \
13
15
-O "${DOCKER_CLI_PLUGIN_DIR}"/docker-buildx
14
16
RUN chmod +x "${DOCKER_CLI_PLUGIN_DIR}"/docker-buildx
17
+
18
+ WORKDIR /tmp
19
+ RUN curl -O https://dlcdn.apache.org/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.tar.gz && \
20
+ tar xf apache-maven-3.8.6-bin.tar.gz
You can’t perform that action at this time.
0 commit comments