Skip to content

Commit

Permalink
rename parent package
Browse files Browse the repository at this point in the history
  • Loading branch information
querwurzel committed Oct 22, 2023
1 parent 21e19e0 commit ffcb631
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,23 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn deploy -DskipTests -Denv=mysql
mvn deploy -DskipTests -Drevision=1.0.${{ github.run_number }} -Denv=mysql
- uses: actions/delete-package-versions@v4
if: github.ref == 'refs/heads/main'
with:
package-name: 'com.github.binpastes.binpastes'
package-name: 'com.github.binpastes.app'
package-type: 'maven'
min-versions-to-keep: 10
- uses: actions/delete-package-versions@v4
if: github.ref == 'refs/heads/main'
with:
package-name: 'com.github.binpastes.frontend'
package-type: 'maven'
min-versions-to-keep: 10
- uses: actions/delete-package-versions@v4
if: github.ref == 'refs/heads/main'
with:
package-name: 'com.github.binpastes.backend'
package-type: 'maven'
min-versions-to-keep: 10
ignore-versions: '1.0.0-SNAPSHOT'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
pom.xml.versionsBackup

### STS ###
.apt_generated
Expand Down
4 changes: 2 additions & 2 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<parent>
<groupId>com.github.binpastes</groupId>
<artifactId>binpastes</artifactId>
<version>1.0.0-SNAPSHOT</version>
<artifactId>app</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions frontend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<parent>
<groupId>com.github.binpastes</groupId>
<artifactId>binpastes</artifactId>
<version>1.0.0-SNAPSHOT</version>
<artifactId>app</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
</parent>

<groupId>com.github.binpastes</groupId>
<artifactId>binpastes</artifactId>
<version>1.0.0-SNAPSHOT</version>
<artifactId>app</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
<name>BinPastes</name>

Expand All @@ -31,6 +31,7 @@
<properties>
<!-- maven property definition -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>1.0.0-SNAPSHOT</revision>

<!-- java version properties -->
<maven.compiler.target>17</maven.compiler.target>
Expand Down

0 comments on commit ffcb631

Please sign in to comment.