Skip to content

Commit

Permalink
#983: deploy quarter_lib to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
clean-coder committed Sep 25, 2024
1 parent d59f128 commit dea8817
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
- name: Build backend with Maven
run: mvn -B clean package --file pom.xml -P build-for-docker

- name: Deploy quarter_lib with Maven
run: mvn deploy --file quarter_lib/pom.xml

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ frontend/node_modules
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/backend/target/
/backend/local_repo/
/quarter_lib/target/
/.idea/
parent.iml
Expand Down
Binary file not shown.
7 changes: 7 additions & 0 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<repositories>
<repository>
<id>local-repo</id>
<url>file://${project.basedir}/backend/local_repo</url>
</repository>
</repositories>

<parent>
<groupId>ch.puzzle.okr</groupId>
<artifactId>parent</artifactId>
Expand Down
7 changes: 0 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@
<artifactId>parent</artifactId>
<version>2.0.136-SNAPSHOT</version>

<repositories>
<repository>
<id>local-repo</id>
<url>file://${project.basedir}/local_repo</url>
</repository>
</repositories>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
Expand Down
8 changes: 8 additions & 0 deletions quarter_lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<junit.jupiter.version>5.10.2</junit.jupiter.version>
<parent.project.dir>${project.basedir}/..</parent.project.dir>
</properties>

<dependencies>
Expand All @@ -35,6 +36,7 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
Expand All @@ -49,4 +51,10 @@
</plugins>
</build>

<distributionManagement>
<repository>
<id>local-repo</id>
<url>file://${parent.project.dir}/backend/local_repo</url>
</repository>
</distributionManagement>
</project>

0 comments on commit dea8817

Please sign in to comment.