Skip to content

Commit

Permalink
Initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaldassari committed Jul 21, 2023
1 parent 444e3a3 commit aec148d
Show file tree
Hide file tree
Showing 26 changed files with 2,139 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# Linux start script should use lf
/gradlew text eol=lf

# These are Windows script files and should use crlf
*.bat text eol=crlf

45 changes: 45 additions & 0 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and publish artifacts
on:
push:
branches:
# Run on all branches (but not tags); branch builds publish snapshots
- '*'
jobs:
build-and-publish:
runs-on: ubuntu-22.04 # LTS EoL Apr 2025

env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SONATYPE_PGP_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SONATYPE_PGP_PASSWORD }}

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '8.x'
java-package: jdk
architecture: x64
distribution: temurin

- uses: actions/cache@v3
with:
path: ~/.gradle
key: ${{ runner.OS }}-gradle-${{ hashFiles('**/build.gradle') }}
restore-keys: |
${{ runner.OS }}-gradle-
${{ runner.OS }}
- name: Install Dependencies
run: |
./gradlew dependencies
- name: Show Versions
run: |
echo "java: $(java -version)"
- name: Build and test
run: ./gradlew test --console plain

- name: Publish artifacts
run: ./gradlew publish -Psonatype_username="${{ secrets.SONATYPE_PUBLISH_USERNAME }}" -Psonatype_password="${{ secrets.SONATYPE_PUBLISH_PASSWORD }}"

20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@
**/build/
!src/**/build/

# Temp files
**/*.tmp
**/*.swp

# Merge conflict resolution backup files
**/*.orig

# Eclipse
.classpath
.project
.settings/

# IDEA
.idea
.run
*.iml

# Ignore Gradle GUI config
gradle-app.setting

Expand All @@ -19,3 +36,6 @@ gradle-app.setting
.project
# JDT-specific (Eclipse Java Development Tools)
.classpath

# Ignore Gradle build output directory
build
Loading

0 comments on commit aec148d

Please sign in to comment.