Skip to content

Commit 80d8954

Browse files
committed
Change to dependency handling for Group & EDHOC apps and Deploy Action
Signed-off-by: Rikard Höglund <[email protected]>
1 parent ce88f34 commit 80d8954

File tree

4 files changed

+28
-8
lines changed

4 files changed

+28
-8
lines changed

.github/workflows/deploy.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99

10+
# Build executable Jar files and package as a Release
1011
deploy:
1112

1213
runs-on: ubuntu-latest
@@ -22,8 +23,8 @@ jobs:
2223

2324
- name: Build Jar files and prepare dependencies for applications
2425
run: |
25-
./build-edhoc-apps.sh
2626
./build-group-apps.sh
27+
./build-edhoc-apps.sh
2728
2829
- name: Get version
2930
id: tagName

build-edhoc-apps.sh

+9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
# Fail script with error if any command fails
1616
set -e
1717

18+
# Separately install this dependency (if needed)
19+
FILE=~/.m2/repository/com/github/peteroupc/numbers/1.4.3/numbers-1.4.3.jar
20+
if [ -f "$FILE" ]; then
21+
echo "$FILE exists."
22+
else
23+
echo "$FILE does not exist."
24+
mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -Dartifact=com.github.peteroupc:numbers:1.4.3
25+
fi
26+
1827
# Build Californium (if needed)
1928
FILE=californium-extended/cf-oscore/target/cf-oscore-3.1.0-SNAPSHOT.jar
2029
if [ -f "$FILE" ]; then

build-for-docker.sh

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ set -e
88

99
## Build the Jar files for the Group & EDHOC Applications if needed
1010

11-
# Separately install these two dependencies
12-
mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -Dartifact=org.slf4j:jul-to-slf4j:1.7.36
13-
mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -Dartifact=org.slf4j:slf4j-simple:1.7.36
14-
1511
# Group Applications
1612
FILE=group-applications/OscoreAsServer.jar
1713
if [ -f "$FILE" ]; then

build-group-apps.sh

+17-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,23 @@
99
# Fail script with error if any command fails
1010
set -e
1111

12+
# Separately install these two dependencies (if needed)
13+
FILE=~/.m2/repository/org/slf4j/jul-to-slf4j/1.7.36/jul-to-slf4j-1.7.36.jar
14+
if [ -f "$FILE" ]; then
15+
echo "$FILE exists."
16+
else
17+
echo "$FILE does not exist."
18+
mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -Dartifact=org.slf4j:jul-to-slf4j:1.7.36
19+
fi
20+
21+
FILE=~/.m2/repository/org/slf4j/slf4j-simple/1.7.36/slf4j-simple-1.7.36.jar
22+
if [ -f "$FILE" ]; then
23+
echo "$FILE exists."
24+
else
25+
echo "$FILE does not exist."
26+
mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get -Dartifact=org.slf4j:slf4j-simple:1.7.36
27+
fi
28+
1229
# Build Californium (if needed)
1330
FILE=californium-extended/cf-oscore/target/cf-oscore-3.1.0-SNAPSHOT.jar
1431
if [ -f "$FILE" ]; then
@@ -50,9 +67,6 @@ cp californium-extended/scandium-core/target/scandium-3.1.0-SNAPSHOT.jar group-a
5067

5168
cp californium-extended/element-connector/target/element-connector-3.1.0-SNAPSHOT.jar group-applications/lib
5269

53-
#Remove?
54-
#cp californium-extended/cf-edhoc/target/cf-edhoc-3.1.0-SNAPSHOT.jar group-applications/lib
55-
5670
cp ace/target/ace-0.0.1-SNAPSHOT.jar group-applications/lib
5771

5872
# Run Group Apps JUnit tests

0 commit comments

Comments
 (0)