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 a997dc7
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 10 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI

on: [push]
on:
workflow_dispatch:
push:

jobs:
build:
Expand All @@ -23,12 +25,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
5 changes: 3 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 All @@ -17,6 +17,7 @@
<dependency>
<groupId>com.github.binpastes</groupId>
<artifactId>frontend</artifactId>
<version>${revision}</version>
</dependency>

<dependency>
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 a997dc7

Please sign in to comment.