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 8ff8e39
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 40 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: ci

on:
workflow_dispatch:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Build with Maven
run: mvn clean package

release:
runs-on: ubuntu-latest
needs: [build]
if: github.ref == 'refs/heads/main'
steps:
- name: Publish package [on main]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn deploy -DskipTests -Drevision=1.0.${{ github.run_number }} -Denv=mysql
- uses: actions/delete-package-versions@v4
with:
package-name: 'com.github.binpastes.app'
package-type: 'maven'
min-versions-to-keep: 10
- uses: actions/delete-package-versions@v4
with:
package-name: 'com.github.binpastes.frontend'
package-type: 'maven'
min-versions-to-keep: 10
- uses: actions/delete-package-versions@v4
with:
package-name: 'com.github.binpastes.backend'
package-type: 'maven'
min-versions-to-keep: 10
34 changes: 0 additions & 34 deletions .github/workflows/main.yml

This file was deleted.

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 8ff8e39

Please sign in to comment.