Skip to content

Commit

Permalink
feat: migrate from Gradle to Maven (#106)
Browse files Browse the repository at this point in the history
* feat: migrate from Gradle to Maven

* feat: delete gradle-ci.yml

* feat: disable comment checking
  • Loading branch information
liewstar authored Sep 30, 2024
1 parent b100f55 commit 5838e52
Show file tree
Hide file tree
Showing 14 changed files with 278 additions and 574 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/gradle-ci.yml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/maven-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: casbin_test
MYSQL_DATABASE: casbin
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
redis:
image: redis
ports:
- 6379:6379
options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: '0'

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
server-username: OSSRH_JIRA_USERNAME
server-password: OSSRH_JIRA_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE

- name: Build with Maven
run: mvn package -Dmaven.test.skip=true

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20

- name: Sematic Release
run: |
npm install -g @conveyal/maven-semantic-release semantic-release
semantic-release --prepare @conveyal/maven-semantic-release --publish @semantic-release/github,@conveyal/maven-semantic-release --verify-conditions @semantic-release/github,@conveyal/maven-semantic-release --verify-release @conveyal/maven-semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
OSSRH_JIRA_USERNAME: ${{ secrets.OSSRH_JIRA_USERNAME }}
OSSRH_JIRA_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }}
15 changes: 0 additions & 15 deletions .releaserc.json

This file was deleted.

58 changes: 0 additions & 58 deletions build.gradle

This file was deleted.

23 changes: 0 additions & 23 deletions gradle.properties

This file was deleted.

Binary file removed gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 0 additions & 5 deletions gradle/wrapper/gradle-wrapper.properties

This file was deleted.

Loading

0 comments on commit 5838e52

Please sign in to comment.