Skip to content

Commit e7845c6

Browse files
author
Alexander Smirnov
committed
Add target to publish dev snapshots to a maven repository
1 parent 3527af5 commit e7845c6

File tree

4 files changed

+48
-2
lines changed

4 files changed

+48
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
compile-flags.txt
2+
ric-dev-environment/dev-maven-repo.mk

aws-lambda-java-runtime-interface-client/Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ ARCHITECTURE := $(shell arch)
44
ARCHITECTURE_ALIAS := $($(shell echo "$(ARCHITECTURE)_ALIAS"))
55
ARCHITECTURE_ALIAS := $(or $(ARCHITECTURE_ALIAS),amd64) # on any other archs defaulting to amd64
66

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+
711
.PHONY: target
812
target:
913
$(info ${HELP_MESSAGE})
@@ -42,6 +46,10 @@ pr: test test-smoke
4246
build:
4347
mvn clean install
4448

49+
.PHONY: publish
50+
publish:
51+
mvn deploy --settings ric-dev-environment/settings.xml
52+
4553
define HELP_MESSAGE
4654

4755
Usage: $ make [TARGETS]

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

+14-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
3737
<maven.compiler.source>1.8</maven.compiler.source>
3838
<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>
4040
<!--
4141
The test/integration/codebuild/buildspec.*.yml files will set -DmultiArch=false
4242
as a workaround for executing within Github Actions. At time of writing (2022-04-08) the
@@ -115,7 +115,7 @@
115115
<plugin>
116116
<groupId>org.apache.maven.plugins</groupId>
117117
<artifactId>maven-compiler-plugin</artifactId>
118-
<version>3.8.1</version>
118+
<version>3.10.1</version>
119119
<configuration>
120120
<encoding>UTF-8</encoding>
121121
<source>${maven.compiler.source}</source>
@@ -125,6 +125,7 @@
125125
<plugin>
126126
<groupId>org.apache.maven.plugins</groupId>
127127
<artifactId>maven-jar-plugin</artifactId>
128+
<version>3.3.0</version>
128129
<configuration>
129130
<archive>
130131
<manifest>
@@ -183,6 +184,17 @@
183184
<profiles>
184185
<profile>
185186
<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>
186198
<build>
187199
<plugins>
188200
<plugin>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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>

0 commit comments

Comments
 (0)