Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions .github/workflows/on_push_build.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: Build & Deploy (Master & Develop)
name: Build & Deploy (Master)

on:
push:
branches:
- master
Comment thread
prasanthkv marked this conversation as resolved.
- develop

permissions:
contents: read

contents: write
jobs:
build:

runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -39,11 +36,7 @@ jobs:

- name: Build & Deploy
run: |
if [[ "${{ github.ref_name }}" == "master" ]]; then
mvn clean deploy -s settings.xml --batch-mode -P release -Dchangelist=
else
mvn clean deploy -s settings.xml --batch-mode -P snapshot -Dchangelist=-SNAPSHOT
fi
mvn clean deploy -s settings.xml --batch-mode -P release -Dchangelist=-
env:
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
36 changes: 36 additions & 0 deletions .github/workflows/on_push_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build & Deploy (Develop)

on:
push:
branches:
- develop

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-

Comment thread
prasanthkv marked this conversation as resolved.
- name: Build & Deploy
Comment thread
prasanthkv marked this conversation as resolved.
run: |
mvn clean deploy -s settings.xml --batch-mode -P snapshot -Dchangelist=-SNAPSHOT
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,14 +377,14 @@ Alternatively you can pull it from the central Maven repositories:
<dependency>
<groupId>com.ebay.ejmask</groupId>
<artifactId>ejmask-bom</artifactId>
<version>2.0.3</version>
<version>2.0.4-RELEASE</version>
</dependency>
```

### Using in your Gradle Project.

```groovy
compile group: 'com.ebay.ejmask', name: 'ejmask-bom', version: '2.0.3'
compile group: 'com.ebay.ejmask', name: 'ejmask-bom', version: '2.0.4-RELEASE'
Comment thread
RandySun228 marked this conversation as resolved.
```

## Roadmap
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<revision>2.0.4</revision>
<changelist>-SNAPSHOT</changelist>
<changelist>-RELEASE</changelist>
</properties>

<scm>
Expand Down
Loading