Skip to content

Commit

Permalink
Use ci-springboot-parent-pom
Browse files Browse the repository at this point in the history
  • Loading branch information
daveajlee committed Apr 19, 2023
1 parent 143500b commit f2cef7f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/server-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,11 @@ jobs:
with:
java-version: '17'
distribution: 'adopt'
server-id: github
server-username: GITHUB_USER_REF
server-password: GITHUB_TOKEN_REF
- name: Build with Maven
run: mvn -B package --file server/pom.xml
env:
GITHUB_USER_REF: ${{secrets.GH_PACKAGE_REPO_USERNAME}}
GITHUB_TOKEN_REF: ${{secrets.GH_PACKAGE_REPO_PASSWORD}}
27 changes: 24 additions & 3 deletions server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.5</version>
<groupId>de.davelee</groupId>
<artifactId>ci-springboot-parent-pom</artifactId>
<version>3.0.0</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>de.davelee.trams</groupId>
Expand Down Expand Up @@ -34,6 +34,27 @@
</repository>
</distributionManagement>

<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>github</id>
<name>GH ci-springboot-parent-pom</name>
<url>https://maven.pkg.github.com/daveajlee/ci-springboot-parent-pom</url>
<snapshots><enabled>true</enabled></snapshots>
<releases><enabled>true</enabled></releases>
</repository>
</repositories>
</profile>
</profiles>

<!-- Repository for qr code dependency -->
<repositories>
<repository>
Expand Down

0 comments on commit f2cef7f

Please sign in to comment.