Skip to content

Commit

Permalink
update maven assembly to include deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Kadams35 committed Oct 25, 2022
1 parent fee77e3 commit 11afdb9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ jobs:
- uses: actions/checkout@v3

- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn clean compile assembly:single -Dmaven.skip.test=true

buildRestAPI:
runs-on: [ self-hosted ]
defaults:
run:
working-directory: "DeFi-Data-Engine/Rest Application/"
# buildRestAPI:
# runs-on: [ self-hosted ]
# defaults:
# run:
# working-directory: "DeFi-Data-Engine/Rest Application/"

steps:
- uses: actions/checkout@v3
# steps:
# - uses: actions/checkout@v3

- name: Build with Maven
run: mvn -B package --file pom.xml
# - name: Build with Maven
# run: mvn -B package --file pom.xml

14 changes: 14 additions & 0 deletions DeFi-Data-Engine/DeFi Data Engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,20 @@
</systemPropertyVariables>
</configuration>
</plugin>

<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>org.main.Main</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 11afdb9

Please sign in to comment.