diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..b125dc0 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,21 @@ +name: Java CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Build with Maven + run: mvn -B package --file pom.xml + - run: mkdir staging && cp cellar-app/target/*-with-dependencies.jar staging + - uses: actions/upload-artifact@v2 + with: + name: Package + path: staging \ No newline at end of file diff --git a/cellar-app/pom.xml b/cellar-app/pom.xml index d695b6b..c88cba4 100644 --- a/cellar-app/pom.xml +++ b/cellar-app/pom.xml @@ -30,6 +30,7 @@ nl.lengrand cellar-app ${project.artifactId} + 1.1-SNAPSHOT nl.lengrand.Main @@ -89,6 +90,28 @@ + + maven-assembly-plugin + + + + nl.lengrand.Main + + + + jar-with-dependencies + + + + + make-assembly + package + + single + + + + diff --git a/pom.xml b/pom.xml index 52466da..7e78cf0 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ nl.lengrand cellar pom - 1.0-SNAPSHOT + 1.1-SNAPSHOT 11